File: CubeTextureNode.md | Updated: 11/15/2025
This type of uniform node represents a cube texture.
Constructs a new cube texture node.
value | The cube texture.
---|---
uvNode | The uv node. Default is null.
levelNode | The level node. Default is null.
biasNode | The bias node. Default is null.
This flag can be used for type testing.
Default is true.
Generates the uv code snippet.
builder | The current node builder.
---|---
cubeUV | The uv node to generate code for.
Overrides: TextureNode#generateUV
Returns: The generated code snippet.
Returns a default uvs based on the mapping type of the cube texture.
Overrides: TextureNode#getDefaultUV
Returns: The default uv attribute.
Overwrites the default implementation to return a fixed value 'cubeTexture'.
builder | The current node builder.
---|---
Overrides: TextureNode#getInputType
Returns: The input type.
Overwritten with an empty implementation since the updateMatrix flag is ignored for cube textures. The uv transformation matrix is not applied to cube textures.
value | The update toggle.
---|---
Overrides: TextureNode#setUpdateMatrix
Setups the uv node. Depending on the backend as well as the texture type, it might be necessary to modify the uv node for correct sampling.
builder | The current node builder.
---|---
uvNode | The uv node to setup.
Overrides: TextureNode#setupUV
Returns: The updated uv node.