HTML Encoding and Default Values⤴
<TextureTransform
center='0,0'
metadata='X3DMetadataObject'
rotation='0'
scale='1,1'
translation='0,0'
></TextureTransform>
Inheritance⤴
- X3DNode(18)
- X3DAppearanceChildNode(9)
- X3DTextureTransformNode(3)
- TextureTransform
Constructor⤴
-
TextureTransform(ctx)⤴
-
Constructor for TextureTransform
Parameters:
Name Type Argument Default Description ctxObject <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. |
documentation