Class: TextureTransform

X3D: 3.3
Component: Texturing
Status:
fully implemented

.nodeTypes. TextureTransform

The TextureTransform node defines a 2D transformation that is applied to texture coordinates. This node affects the way textures coordinates are applied to the geometric surface. The transformation consists of (in order): a translation; a rotation about the centre point; a non-uniform scale about the centre point.

HTML Encoding and Default Values

<TextureTransform center='0,0' metadata='X3DMetadataObject' rotation='0' scale='1,1' translation='0,0' ></TextureTransform>

Inheritance


Constructor

TextureTransform(ctx)

Constructor for TextureTransform

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
center SFVec2f 0,0 The center field specifies a translation offset in texture coordinate space about which the rotation and scale fields are applied.
metadata SFNode X3DMetadataObject X3DNode Field to add metadata information
rotation SFFloat 0 The rotation field specifies a rotation in angle base units of the texture coordinates about the center point after the scale has been applied. A positive rotation value makes the texture coordinates rotate counterclockwise about the centre, thereby rotating the appearance of the texture itself clockwise.
scale SFVec2f 1,1 The scale field specifies a scaling factor in S and T of the texture coordinates about the center point.
translation SFVec2f 0,0 The translation field specifies a translation of the texture coordinates.