UNPKG

1.13 kBTypeScriptView Raw
1import { WebGLExtensions } from "./WebGLExtensions.js";
2
3export interface WebGLLightsState {
4 version: number;
5
6 hash: {
7 directionalLength: number;
8 pointLength: number;
9 spotLength: number;
10 rectAreaLength: number;
11 hemiLength: number;
12
13 numDirectionalShadows: number;
14 numPointShadows: number;
15 numSpotShadows: number;
16 numSpotMaps: number;
17
18 numLightProbes: number;
19 };
20
21 ambient: number[];
22 probe: any[];
23 directional: any[];
24 directionalShadow: any[];
25 directionalShadowMap: any[];
26 directionalShadowMatrix: any[];
27 spot: any[];
28 spotShadow: any[];
29 spotShadowMap: any[];
30 spotShadowMatrix: any[];
31 rectArea: any[];
32 point: any[];
33 pointShadow: any[];
34 pointShadowMap: any[];
35 pointShadowMatrix: any[];
36 hemi: any[];
37 numSpotLightShadowsWithMaps: number;
38 numLightProbes: number;
39}
40
41export class WebGLLights {
42 constructor(extensions: WebGLExtensions);
43
44 state: WebGLLightsState;
45
46 get(light: any): any;
47 setup(lights: any): void;
48 setupView(lights: any, camera: any): void;
49}