@takram/three-atmosphere
Version:
A Three.js and R3F implementation of Precomputed Atmospheric Scattering
11 lines (10 loc) • 512 B
TypeScript
import { DirectionalLight } from 'three';
export type AtmosphereLightBody = 'sun' | 'moon';
export declare class AtmosphereLight extends DirectionalLight {
readonly type = "AtmosphereLight";
distance: number;
body: AtmosphereLightBody;
direct: import('three/webgpu').UniformNode<false> | import('three/webgpu').UniformNode<true>;
indirect: import('three/webgpu').UniformNode<false> | import('three/webgpu').UniformNode<true>;
constructor(distance?: number, body?: AtmosphereLightBody);
}