WebGLRenderStates.d.ts 618 B

12345678910111213141516171819202122232425262728
  1. import { Scene } from '../../scenes/Scene';
  2. import { Camera } from '../../cameras/Camera';
  3. import { Light } from '../../lights/Light';
  4. import { WebGLLights } from './WebGLLights';
  5. interface WebGLRenderState {
  6. init(): void;
  7. state: {
  8. lightsArray: Light[];
  9. shadowsArray: Light[];
  10. lights: WebGLLights;
  11. };
  12. setupLights(): void;
  13. setupLightsView( camera: Camera ): void;
  14. pushLight( light: Light ): void;
  15. pushShadow( shadowLight: Light ): void;
  16. }
  17. export class WebGLRenderStates {
  18. // renderCallDepth indexes start from 0.
  19. get( scene: Scene, renderCallDepth: number ): WebGLRenderState;
  20. dispose(): void;
  21. }
粤ICP备19079148号