HTML 5 Canvas 3D Library

mapRelative Library Method

Short Description: Map texture relative to current HTML element

Signature: t.mapRelative (s,t[,w,h])
Group: Texture
Class: transition Class

Maps a rectangular portion of the Texture Canvas as texture of the material. (s,t) specify the coordinates of the top left point of the portion relative to the currently mapped texture. w is the with and h the height.

mapReleative is very similar to map with the difference that the coordinates (s,t) are relative to the currently mapped portion.

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:taccglMaterial.mapClip - Clip mapped texture
Previous Page: taccglMaterial.mapMirrorX - Mirror texture in X direction