Capítulo 233 de 859

Chapter 233: Texture3DNode

Core Idea

This type of uniform node represents a 3D texture.

Key Concepts

  • isTexture3DNode : boolean (readonly): This flag can be used for type testing.

Reference Tables

Constructor

Signature
`new Texture3DNode( value : Data3DTexture, uvNode : Node.<(vec2

Properties

PropertyDescription
.isTexture3DNode : boolean (readonly)This flag can be used for type testing.

Methods

MethodDescription
.generateOffset( builder : NodeBuilder, offsetNode : Node ) : stringGenerates the offset code snippet.
.generateUV( builder : NodeBuilder, uvNode : Node ) : stringGenerates the uv code snippet.
.getDefaultUV() : Node.<vec3>Returns a default uv node which is in context of 3D textures a three-dimensional uv node.
.getInputType( builder : NodeBuilder ) : stringOverwrites the default implementation to return a fixed value 'texture3D'.
.normal( uvNode : Node.<vec3> ) : Node.<vec3>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 …
.setUpdateMatrix( value : boolean )Overwritten with an empty implementation since the updateMatrix flag is ignored for 3D textures. The uv transformation matrix is not applied to 3D textures.

Key Takeaways

  1. Texture3DNode extends: EventDispatcher → Node → InputNode → UniformNode → TextureNode
  2. Most relevant properties: isTexture3DNode.
  3. Key methods: generateOffset, generateUV, getDefaultUV, getInputType.

Connects To