Node: ImageTexture

X3D: 3.3
Component: Texturing
Status:
fully implemented

Quick Links

➨ Fields

ImageTexture maps a 2D-image file onto a geometric shape. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image.

HTML Encoding and Default Values

<ImageTexture crossOrigin='""' hideChildren='true' metadata='X3DMetadataObject' origChannelCount='0' repeatS='true' repeatT='true' scale='true' textureProperties='x3dom.nodeTypes.TextureProperties' url='[]' ></ImageTexture>

Inheritance


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
crossOrigin SFString "" X3DTextureNode Cross Origin Mode
hideChildren SFBool true Texture Specifies whether the children are shown or hidden outside the texture.
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
origChannelCount SFInt32 0 [0, inf] X3DTextureNode Specifies the channel count of the texture. 0 means the system should figure out the count automatically.
repeatS SFBool true X3DTextureNode Specifies whether the texture is repeated in s direction.
repeatT SFBool true X3DTextureNode Specifies whether the texture is repeated in t direction.
scale SFBool true X3DTextureNode Specifies whether the texture is scaled to the next highest power of two. (Needed, when texture repeat is enabled and texture size is non power of two)
textureProperties SFNode TextureProperties X3DTextureNode Sets a TextureProperty node.
url MFString [] X3DTextureNode Sets the url to a resource.