Constructor
new VaryingNode( node : Node, name : string )
Constructs a new varying node.
| node |
The node for which a varying should be created. |
| name |
The name of the varying in the shader. Default is |
Properties
.interpolationSampling : string
The interpolation sampling type of varying data.
Default is null.
.interpolationType : string
The interpolation type of the varying data.
Default is null.
.isVaryingNode : boolean (readonly)
This flag can be used for type testing.
Default is true.
.name : string
The name of the varying in the shader. If no name is defined, the node system auto-generates one.
Default is null.
- Overrides: Node#name
Methods
.setInterpolation( type : string, sampling : string ) : VaryingNode
Defines the interpolation type of the varying.
| type |
The interpolation type. |
| sampling |
The interpolation sampling type Default is |
- Returns: A reference to this node.
.setupVarying( builder : NodeBuilder ) : NodeVarying
This method performs the setup of a varying node with the current node builder.
| builder |
The current node builder. |
- Returns: The node varying from the node builder.