VaryingNode

Last modified: Jun 30, 2024

Class for representing shader varyings as nodes. Varyings are create from existing nodes like the following:

const positionLocal = positionGeometry.toVarying( 'vPositionLocal' );
export {}

Constructor

new VaryingNode(node, name?)
ParameterTypeDefault Value
nodeNode
name?null | stringnull

Constructs a new varying node.

AccessorType

Properties

PropertyTypeDefault Value
nodeNode
isVaryingNodeboolean
interpolationTypenull | string
interpolationSamplingnull | string
MethodType

Extends

Node

varying

TSL function for creating a varying node.

ParameterTypeDefault Value
nodeNode
namestring

Returns

VaryingNode

vertexStage

Computes a node in the vertex stage.

ParameterTypeDefault Value
nodeNode

Returns

VaryingNode