Skip to main content

Type Alias: RampGradient

type RampGradient =
| SkyGradient
| IblGradient;

Defined in: threejs-environment/src/sky-texture.ts:37

A gradient with or without a horizon stop, from either slot.

The sky and the environment map take the same colours and differ only in what they are hung on, so one generator serves both. horizon and exponent shape the sky's ramp and have no meaning for an environment map, which is why they are optional here rather than duplicated.