TextureSizeNode

Last modified: Jun 30, 2024

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().

Constructor

new TextureSizeNode(textureNode, levelNode?)
ParameterTypeDefault Value
textureNodeTextureNode
levelNode?anynull

Constructs a new texture size node.

AccessorType

Properties

PropertyTypeDefault Value
isTextureSizeNodeboolean
textureNodeTextureNode
levelNodeany
MethodType

Extends

Node

textureSize

TSL function for creating a texture size node.

ParameterTypeDefault Value
textureNodeTextureNode
levelNode?Node<int>

Returns

TextureSizeNode