MotionScript

@motion-script/core


@motion-script/core / GodRaysOptions

Interface: GodRaysOptions

Defined in: attributes/shape/effects/chain.ts:366

Light streaming from a point. Scalar shorthand sets intensity.

Extends

Properties

center?

optional center?: Vector2

Defined in: attributes/shape/effects/chain.ts:374

Light source in 0–1 layer coords (default middle).


decay?

optional decay?: number

Defined in: attributes/shape/effects/chain.ts:376

Per-step falloff; below 1 the rays fade with distance (default 0.96).


intensity?

optional intensity?: number

Defined in: attributes/shape/effects/chain.ts:368

Additive multiplier for the ray pass (default 1).


length?

optional length?: number

Defined in: attributes/shape/effects/chain.ts:372

Ray reach as a fraction of the distance to center (default 0.6).


mode?

optional mode?: EffectMode

Defined in: attributes/shape/effects/effect-data.ts:83

Inherited from

EffectOptions.mode


samples?

optional samples?: number

Defined in: attributes/shape/effects/chain.ts:378

Taps marched per pixel, 4–48 (default 32).


threshold?

optional threshold?: number

Defined in: attributes/shape/effects/chain.ts:370

0–1 luminance cutoff (default 0.6).