*Inheritance: NodeVar →* # NodeVarying [NodeBuilder](NodeBuilder.html) is going to create instances of this class during the build process of nodes. They represent the final shader varyings that are going to be generated by the builder. An array of node varyings is maintained in [NodeBuilder#varyings](NodeBuilder.html#varyings) for this purpose. ## Constructor ### new NodeVarying( name : string, type : string, interpolationType : string, interpolationSampling : string ) Constructs a new node varying. **name** The name of the varying. **type** The type of the varying. **interpolationType** The interpolation type of the varying. Default is `null`. **interpolationSampling** The interpolation sampling type of the varying. Default is `null`. ## 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`. ### .isNodeVarying : boolean (readonly) This flag can be used for type testing. Default is `true`. ### .needsInterpolation : boolean Whether this varying requires interpolation or not. This property can be used to check if the varying can be optimized for a variable. Default is `false`. ## Source [src/nodes/core/NodeVarying.js](https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeVarying.js)