Skip to content

shadowDropSoft

shadowDropSoft(spriteTex, uv, shadowOffset?, shadowColor?, shadowAlpha?, softness?, samples?): Node <"vec4">

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

Create a soft drop shadow with blur. Samples multiple offset positions to create a softer shadow.

Texture 

Source sprite texture

Node <"vec2">

Current UV coordinates

Vec2Input = ...

Shadow offset in UV space

Vec3Input = ...

Shadow color

FloatInput = 0.5

Shadow opacity

FloatInput = 0.01

Blur amount in UV space (default: 0.01)

number = 4

Number of blur samples (default: 4)

Node <"vec4">

Soft shadow color with alpha