Inheritance: EventDispatcher → Node → InputNode → UniformNode → TextureNode →
This type of uniform node represents a 3D texture.
Constructs a new 3D texture node.
value
The 3D texture.
uvNode
The uv node.
Default is null.
levelNode
The level node.
Default is null.
This flag can be used for type testing.
Default is true.
Generates the offset code snippet.
builder
The current node builder.
offsetNode
The offset node to generate code for.
Overrides: TextureNode#generateOffset
Returns: The generated code snippet.
Generates the uv code snippet.
builder
The current node builder.
uvNode
The uv node to generate code for.
Overrides: TextureNode#generateUV
Returns: The generated code snippet.
Returns a default uv node which is in context of 3D textures a three-dimensional uv node.
Overrides: TextureNode#getDefaultUV
Returns: The default uv node.
Overwrites the default implementation to return a fixed value 'texture3D'.
builder
The current node builder.
Overrides: TextureNode#getInputType
Returns: The input type.
Computes the normal for the given uv. These texture coordiantes represent a position inside the 3D texture. Unlike geometric normals, this normal represents a slope or gradient of scalar data inside the 3D texture.
uvNode
The uv node that defines a position in the 3D texture.
Returns: The normal representing the slope/gradient in the data.
Overwritten with an empty implementation since the updateMatrix flag is ignored for 3D textures. The uv transformation matrix is not applied to 3D textures.
value
The update toggle.
Overrides: TextureNode#setUpdateMatrix