Creates a function to render shadow objects in a scene.
| Parameter | Type | Default Value |
|---|---|---|
| renderer | Renderer | — |
| shadow | LightShadow | — |
| shadowType | number | — |
| useVelocity | boolean | — |
Returns
shadowRenderObjectFunctionRepresents the default shadow implementation for lighting nodes.
Constructor
new ShadowNode(light, shadow?)| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
| shadow? | any | null |
Constructs a new shadow node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| shadow | any | — | |
| shadowMap | any | — | |
| vsmShadowMapVertical | any | — | |
| vsmShadowMapHorizontal | any | — | |
| vsmMaterialVertical | null | NodeMaterial | — | |
| vsmMaterialHorizontal | null | NodeMaterial | — | |
| _node | null | Node | — | |
| _currentShadowType | null | number | — | |
| _cameraFrameId | WeakMap<Camera, number> | — | |
| isShadowNode | boolean | — | |
| depthLayer | number | — | |
| _depthVersionCached | any | — | |
| Method | Type | |
|---|---|---|
| setupShadowFilter | (builder: NodeBuilder, { filterFn, depthTexture, shadowCoord, shadow, depthLayer }: { filterFn: Function; depthTexture: DepthTexture; shadowCoord: Node<…>; shadow: LightShadow; }) => any | |
| setupShadowCoord | (builder: NodeBuilder, shadowPosition: Node<…>) => any | |
| getShadowFilterFn | (type: number) => Function | |
| setupRenderTarget | (shadow: any, builder: any) => { shadowMap: any; depthTexture: DepthTexture; } | |
| setupShadow | (builder: NodeBuilder) => any | |
| setup | (builder: NodeBuilder) => ShaderCallNodeInternal | |
| renderShadow | (frame: NodeFrame) => void | |
| updateShadow | (frame: NodeFrame) => void | |
| vsmPass | (renderer: Renderer) => void | |
| dispose | () => void | |
| _reset | () => void | |
| updateBefore | (frame: NodeFrame) => void | |
Extends
ShadowBaseNodeShadow Render Object Function.
TSL function for creating an instance of ShadowNode.
| Parameter | Type | Default Value |
|---|---|---|
| light | Light | — |
| shadow? | any | — |
Returns
ShadowNode