Node: SurfaceShaderTexture

Component: Shaders

Quick Links

➨ Fields

A texture reference that can be used as a child of SurfaceShader.

HTML Encoding and Default Values

<SurfaceShaderTexture channelMask='"DEFAULT"' crossOrigin='""' isSRGB='false' metadata='X3DMetadataObject' origChannelCount='0' repeatS='true' repeatT='true' scale='true' texture='x3dom.nodeTypes.X3DTextureNode' textureCoordinatesId='0' textureProperties='x3dom.nodeTypes.TextureProperties' textureTransform='x3dom.nodeTypes.X3DTextureTransformNode' url='[]' ></SurfaceShaderTexture>



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
channelMask SFString "DEFAULT" [rgb,abgr,a,..] Texture channels to use for this texture in the form of a glsl swizzle (e.g. "rgb", "abgr", "a"). "DEFAULT" will use the default channels for the slot ("rgb" for colors and normals, "a" for alpha, shininess, ...).
crossOrigin SFString "" Texturing/X3DTextureNode Cross Origin Mode
isSRGB SFBool false Whether texture contains sRGB content and need to be linearized (NOT IMPLEMENTED!).
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
origChannelCount SFInt32 0 [0, inf] Texturing/X3DTextureNode Specifies the channel count of the texture. 0 means the system should figure out the count automatically.
repeatS SFBool true Texturing/X3DTextureNode Specifies whether the texture is repeated in s direction.
repeatT SFBool true Texturing/X3DTextureNode Specifies whether the texture is repeated in t direction.
scale SFBool true Texturing/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)
texture SFNode Texturing/X3DTextureNode The texture to use.
textureCoordinatesId SFInt32 0 Texture coordinate channel to use for this texture.
textureProperties SFNode Texturing/TextureProperties Texturing/X3DTextureNode Sets a TextureProperty node.
textureTransform SFNode Texturing/X3DTextureTransformNode An optional texture transform.
url MFString [] Texturing/X3DTextureNode Sets the url to a resource.