Capítulo 237 de 859

Chapter 237: TextureSizeNode

Core Idea

A node that represents the dimensions of a texture. The texture size is retrieved in the shader via built-in shader functions like textureDimensions() or textureSize().

Key Concepts

  • isTextureSizeNode : boolean (readonly): This flag can be used for type testing.
  • levelNode : Node.<int>: A level node which defines the requested mip.
  • textureNode : TextureNode: A texture node which size should be retrieved.

Reference Tables

Constructor

Signature
new TextureSizeNode( textureNode : TextureNode, levelNode : Node.<int> )

Properties

PropertyDescription
.isTextureSizeNode : boolean (readonly)This flag can be used for type testing.
.levelNode : Node.<int>A level node which defines the requested mip.
.textureNode : TextureNodeA texture node which size should be retrieved.

Key Takeaways

  1. TextureSizeNode extends: EventDispatcher → Node
  2. Most relevant properties: isTextureSizeNode, levelNode, textureNode.

Connects To