MotionScript

@motion-script/core


@motion-script/core / Fog3D

Type Alias: Fog3D

Fog3D = { color?: Color; far?: number; near?: number; type: "linear"; } | { color?: Color; density?: number; type: "exponential"; }

Defined in: render3d/scene-settings.ts:8

Depth haze that fades distant geometry toward a colour.

Union Members

Type Literal

{ color?: Color; far?: number; near?: number; type: "linear"; }

Fades linearly between near and far. Predictable and easy to tune.


Type Literal

{ color?: Color; density?: number; type: "exponential"; }

Exponential-squared falloff. More natural, controlled by one density.