Public Member Functions
|X3DEnvironmentTextureNode (Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0)|
|Get the OpenGL texture id that is used for this texture. |
|Get the OpenGL texture unit that is used for this texture. |
|The OpenGL texture unit that is used to render this texture. |
Cubic environment maps support reflection and specular highlighting in a simple way. A collection of 2D texture maps define each side of the cube. All source images shall be square and provide source data in powers of two numbers of pixels. Source images in a cubic environment map shall have identical sizes. Providing differently sized images or rectangular images shall be an error.
For each texture, the three-dimensional texture coordinates (s,t,r) are treated as a direction vector from the local origin. Each texel drawn onto the geometry is treated as the texel in the environment map that is "seen" from this direction vector.
Cubic environment maps define a single texture as consisting of six separate images, one for each side of a cube. This component defines the six sides as front, back, left, right, top and bottom.