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.
Parameters
Section titled “Parameters”spriteTex
Section titled “spriteTex”Source sprite texture
Node <"vec2">
Current UV coordinates
shadowOffset?
Section titled “shadowOffset?”Vec2Input = ...
Shadow offset in UV space
shadowColor?
Section titled “shadowColor?”Vec3Input = ...
Shadow color
shadowAlpha?
Section titled “shadowAlpha?”FloatInput = 0.5
Shadow opacity
softness?
Section titled “softness?”FloatInput = 0.01
Blur amount in UV space (default: 0.01)
samples?
Section titled “samples?”number = 4
Number of blur samples (default: 4)
Returns
Section titled “Returns”Node <"vec4">
Soft shadow color with alpha