Skip to content

Variable: DomeFade ​

const DomeFade: Component<{ end: { default: number; help: string; label: string; min: number; step: number; type: Float32; }; start: { default: number; help: string; label: string; min: number; step: number; type: Float32; }; }>

Defined in: packages/core/src/environment/dome-fade.ts:25

Fades a scene node's meshes into the level's DomeGradient sky with horizontal distance from the node's origin.

Remarks ​

  • Put it on a floor or terrain node so the surface has no visible edge.
  • Each faded mesh samples the live sky behind it from the camera, so the floor and the sky agree from every position.
  • Does nothing without a visible DomeGradient (also while a DomeTexture wins); the faded meshes are hidden with the sky during AR passthrough.
  • Supports MeshBasic, Lambert, Phong, Standard, Physical and Toon materials; other materials are left as they are and counted in render stats.

Privacy | Terms