Returns
voidA shadow filtering function for point lights using Vogel disk sampling and IGN.
Uses 5 samples distributed via Vogel disk pattern in tangent space around the sample direction, rotated per-pixel using Interleaved Gradient Noise (IGN).
| Parameter | Type | Default Value |
|---|---|---|
| inputs | Object | — |
| inputs.depthTexture | CubeDepthTexture | — |
| inputs.bd3D | Node<vec3> | — |
| inputs.dp | Node<float> | — |
| inputs.shadow | LightShadow | — |
Returns
Node<float>Represents the shadow implementation for point light nodes.
Constructor
new PointShadowNode(light, shadow?)| Parameter | Type | Default Value |
|---|---|---|
| light | PointLight | — |
| shadow? | any | null |
Constructs a new point shadow node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
| Method | Type | |
|---|---|---|
| getShadowFilterFn | (type: number) => Function | |
| setupShadowCoord | (builder: NodeBuilder, shadowPosition: Node<…>) => any | |
| setupShadowFilter | (builder: NodeBuilder, { filterFn, depthTexture, shadowCoord, shadow }: { filterFn: Function; depthTexture: DepthTexture; shadowCoord: Node<…>; shadow: LightShadow; }) => any | |
| setupRenderTarget | (shadow: LightShadow, builder: NodeBuilder) => Object | |
| renderShadow | (frame: NodeFrame) => void | |
Extends
ShadowNodeTSL function for creating an instance of PointShadowNode.
| Parameter | Type | Default Value |
|---|---|---|
| light | PointLight | — |
| shadow? | any | null |
Returns
PointShadowNode