Base class for all shadow nodes.
Shadow nodes encapsulate shadow related logic and are always coupled to lighting nodes. Lighting nodes might share the same shadow node type or use specific ones depending on their requirements.
Constructor
new ShadowBaseNode(light)| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
Constructs a new shadow base node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| light | Light | — | |
| isShadowBaseNode | boolean | — | |
| Method | Type | |
|---|---|---|
| setupShadowPosition | ({ context, material }: NodeBuilder) => void | |
Extends
NodeTSL object that represents the vertex position in world space during the shadow pass.
Type
Node<vec3>