UNPKG

@takram/three-atmosphere

Version:
28 lines (27 loc) 957 B
import { LightProbe, Matrix4, Vector3, DataTexture } from 'three'; import { Ellipsoid } from '@takram/three-geospatial'; import { AtmosphereParameters } from './AtmosphereParameters'; export interface SkyLightProbeParameters { irradianceTexture?: DataTexture | null; ellipsoid?: Ellipsoid; correctAltitude?: boolean; photometric?: boolean; sunDirection?: Vector3; } export declare const skyLightProbeParametersDefaults: { ellipsoid: Ellipsoid; correctAltitude: true; photometric: true; }; export declare class SkyLightProbe extends LightProbe { private readonly atmosphere; irradianceTexture: DataTexture | null; ellipsoid: Ellipsoid; readonly ellipsoidCenter: Vector3; readonly ellipsoidMatrix: Matrix4; correctAltitude: boolean; photometric: boolean; readonly sunDirection: Vector3; constructor(params?: SkyLightProbeParameters, atmosphere?: AtmosphereParameters); update(): void; }