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?)| Parameter | Type | Default Value |
|---|---|---|
| textureNode | TextureNode | — |
| levelNode? | any | null |
Constructs a new texture size node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| isTextureSizeNode | boolean | — | |
| textureNode | TextureNode | — | |
| levelNode | any | — | |
| Method | Type | |
|---|---|---|
| generate | (builder: any, output: any) => any | |
Extends
NodeTSL function for creating a texture size node.
| Parameter | Type | Default Value |
|---|---|---|
| textureNode | TextureNode | — |
| levelNode? | Node<int> | — |
Returns
TextureSizeNode