📄 threejs/Core/Nodes/ShadowBaseNode

File: ShadowBaseNode.md | Updated: 11/15/2025


title: ShadowBaseNode category: Core layout: docs

ShadowBaseNode

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 : Light )

Constructs a new shadow base node.

light | The shadow casting light.
---|---

Properties

.isShadowBaseNode : boolean (readonly)

This flag can be used for type testing.

Default is true.

.light : Light

The shadow casting light.

.updateBeforeType : string

Overwritten since shadows are updated by default per render.

Default is 'render'.

Overrides: Node#updateBeforeType

Methods

.setupShadowPosition( object : NodeBuilder )

Setups the shadow position node which is by default the predefined TSL node object shadowPositionWorld.

object | A configuration object that must at least hold a material reference.
---|---

Source

src/nodes/lighting/ShadowBaseNode.js