Capítulo 472 de 859
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
| Signature |
|---|
new ShadowBaseNode( light : Light ) |
Properties
| Property | Description |
|---|---|
.isShadowBaseNode : boolean (readonly) | This flag can be used for type testing. |
.light : Light | The shadow casting light. |
.updateBeforeType : string | Overwritten since shadows are updated by default per render. |
Methods
| Method | Description |
|---|---|
.setupShadowPosition( object : NodeBuilder ) | Setups the shadow position node which is by default the predefined TSL node object shadowPositionWorld. |