API / geotoolkit3d / scene / surface / TextureConstants / TextureCoordinateMode
surface.TextureConstants.TextureCoordinateMode
The texture coordinate mapping types.
Define if the Texture offset and rotation should be relative to the Surface's own offset and rotation, or should be 'absolute'.
Enumeration Members
Enumeration Members
• OriginRelative = "OriginRelative"
The texture size, offset and rotation will be relative to the scene origin.
This mode is recommended if the texture need specific coordinate mapping.
The surface transformation WILL NOT affect the texture mapping.
(ex: rotating/translating the surface will not affect the texture world position and orientation)
• SurfaceRelative = "SurfaceRelative"
The texture size, offset and rotation will be relative to the surface transformation.
If the Surface and texture have the same dimensions, it is recommended to use this mode.
The surface transformation WILL affect the texture mapping.
(ex: rotating/translating the surface will rotate/translate the texture as well, they will move together)