This node can be used to evaluate whether a primitive is front or back facing.
Constructor
new FrontFacingNode()Constructs a new front facing node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| isFrontFacingNode | boolean | — | |
| Method | Type | |
|---|---|---|
| generate | (builder: any) => any | |
Extends
NodeTSL object that represents whether a primitive is front or back facing
Type
FrontFacingNode<bool>TSL object that represents the front facing status as a number instead of a bool.
1 means front facing, -1 means back facing.
Type
Node<float>Converts a direction vector to a face direction vector based on the material’s side.
If the material is set to BackSide, the direction is inverted.
If the material is set to DoubleSide, the direction is multiplied by faceDirection.
| Parameter | Type | Default Value |
|---|---|---|
| direction | Node<vec3> | — |
Returns
Node<vec3>