import { ConstructorProps, Component, ContextManager, Observable } from '@zcomponent/core'; import * as THREE from 'three'; import { Sky } from 'three/examples/jsm/objects/Sky'; /** * Represents the properties required to construct a SkyEnvironment. */ export interface SkyEnvironmentConstructorProps extends ConstructorProps { /** * If true, the sky environment will be shown at runtime. * @zprop * @zdefault false */ showAtRunTime: boolean; } /** * A sky environment component. * * It renders a sky environment map that can be used as the scene's environment map. * * @see https://threejs.org/docs/#api/en/scenes/Scene.environment * @zcomponent * @zgroup Environment * @zicon environment * @ztag three/Environment/SkyEnvironment * @zparents three/Object3D/Group/** */ export declare class SkyEnvironment extends Component { private target?; private skyScene; private pmrem; element: Sky; environmentMapSkyElement: Sky; private sun; private uniforms; useEnvironmentMap: Observable; /** * Whether to use the environment map in the scene. * @zprop * @zgroup Environment Map * @zgrouppriority 5 * @zdefault true */ setSceneEnvironmentMap: Observable; /** * The rayleigh of the sky. * @zprop * @zgroup Sky Appearance * @zgrouppriority 5 * @ztype proportion * @zdefault 0.75 */ rayleigh: Observable; /** * The mieCoefficient of the sky. * @zprop * @zgroup Sky Appearance * @zgrouppriority 5 * @ztype proportion * @zdefault 0.05 */ mieCoefficient: Observable; /** * The Sky mieDirectionalG of the sky. * @zprop * @zgroup Sky Appearance * @zgrouppriority 5 * @ztype proportion * @zdefault 0.7 */ mieDirectionalG: Observable; /** * The elevation of the sun. * @zprop * @zgroup Sky Appearance * @zgrouppriority 5 * @ztype proportion * @zdefault 0.022 */ elevation: Observable; /** * The azimuth of the sun. * @zprop * @zgroup Sky Appearance * @zgrouppriority 5 * @ztype proportion * @zdefault 0.5 */ azimuth: Observable; /** * Sets the visibility of the sky. * This does not affect the environment map. * @zprop * @zgroup Appearance * @zgrouppriority 5 * @zdefault true */ visible: Observable; /** * Constructs a new SkyEnvironment. * @param contextManager - The context manager. * @param props - The properties required to construct a SkyEnvironment. */ constructor(contextManager: ContextManager, props: SkyEnvironmentConstructorProps); /** * The environment map. */ get environmentMap(): THREE.Texture | undefined; private updateSky; /** * Disposes the SkyEnvironment. */ dispose(): never; }