@motion-script/core / GodRaysEffect
Interface: GodRaysEffect
Defined in: attributes/shape/effects/implementations/god-rays.ts:15
Crepuscular rays — bright areas smeared outward from a point and added back over the source, so light appears to stream past whatever occludes it.
Related to radialBlur in 'zoom' style, but not the same effect and not
expressible as one: radial blur smears everything, which softens the image.
This smears only what is brighter than threshold and screens the result on
top, so the occluder stays sharp and only the light travels.
Extends
Properties
center
center:
Vector2
Defined in: attributes/shape/effects/implementations/god-rays.ts:24
Light source in 0–1 layer coords (default middle).
decay
decay:
number
Defined in: attributes/shape/effects/implementations/god-rays.ts:26
Per-step falloff; below 1 the rays fade with distance.
intensity
intensity:
number
Defined in: attributes/shape/effects/implementations/god-rays.ts:18
Additive multiplier for the ray pass. 0 = off.
length
length:
number
Defined in: attributes/shape/effects/implementations/god-rays.ts:22
How far the rays reach, as a fraction of the distance to center.
mode?
optionalmode?:EffectMode
Defined in: attributes/shape/effects/effect-data.ts:83
Inherited from
samples
samples:
number
Defined in: attributes/shape/effects/implementations/god-rays.ts:28
Taps marched per pixel; higher is smoother and slower.
threshold
threshold:
number
Defined in: attributes/shape/effects/implementations/god-rays.ts:20
0–1 luminance cutoff — only pixels brighter than this cast rays.
type
type:
"godRays"
Defined in: attributes/shape/effects/implementations/god-rays.ts:16