Skip to content

shadowSoft2D(position, lightPos, occluderTex, occluderSize, lightRadius?, shadowStrength?): Node <"float">

Defined in: packages/nodes/src/lighting/shadows.ts:157

Calculate soft 2D shadow with penumbra. Samples multiple rays for a softer shadow edge.

Vec2Input

World/screen position of the surface

Vec2Input

Position of the light source

Texture 

Texture containing occluder data

Vec2Input

Size of the occluder texture in world units

FloatInput = 10

Radius of the light source for soft shadows

FloatInput = 0.7

Shadow intensity

Node <"float">

Soft shadow factor