X3D TextureTransform

TextureTransform • Example

Applies a 2D transformation to a texture.

Texturing

center

Field Type: SFVec2f
Access Type: inputOutput
Default Value: 0, 0
Value Range: -∞, ∞
Description: Sets a translation offset in texture coordinate space about which rotation and scale are applied.

rotation

Field Type: SFFloat
Access Type: inputOutput
Default Value: 0
Value Range: -∞, ∞
Description: Sets a rotation (radians) of the texture coordinates about the center after scale has been applied.

scale

Field Type: SFVec2f
Access Type: inputOutput
Default Value: 1, 1
Value Range: -∞, ∞
Description: Sets a scaling factor in the S and T direction of texture coordinates about the center point.

translation

Field Type: SFVec2f
Access Type: inputOutput
Default Value: 0, 0
Value Range: -∞, ∞
Description: Sets a translation of the texture coordinates.

metadata

Field Type: SFNode
Access Type: inputOutput
Default Value: NULL
Value Range: X3DMetadataObject
Description: Information about this node.