three
Version:
JavaScript 3D library
26 lines (19 loc) • 540 B
TypeScript
import { Scene } from '../../scenes/Scene';
import { Camera } from '../../cameras/Camera';
import { Light } from '../../lights/Light';
import { WebGLLights } from './WebGLLights';
interface WebGLRenderState {
init(): void;
state: {
lightsArray: Light[];
shadowsArray: Light[];
lights: WebGLLights;
};
setupLights( camera: Camera ): void;
pushLight( light: Light ): void;
pushShadow( shadowLight: Light ): void;
}
export class WebGLRenderStates {
get( scene: Scene, camera: Camera ): WebGLRenderState;
dispose(): void;
}