WebGLPrograms.d.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. import { WebGLRenderer } from './../WebGLRenderer';
  2. import { WebGLProgram } from './WebGLProgram';
  3. import { WebGLCapabilities } from './WebGLCapabilities';
  4. import { WebGLCubeMaps } from './WebGLCubeMaps';
  5. import { WebGLExtensions } from './WebGLExtensions';
  6. import { WebGLClipping } from './WebGLClipping';
  7. import { WebGLBindingStates } from './WebGLBindingStates';
  8. import { Material } from './../../materials/Material';
  9. import { Scene } from './../../scenes/Scene';
  10. export class WebGLPrograms {
  11. constructor( renderer: WebGLRenderer, cubemaps: WebGLCubeMaps, extensions: WebGLExtensions, capabilities: WebGLCapabilities, bindingStates: WebGLBindingStates, clipping: WebGLClipping );
  12. programs: WebGLProgram[];
  13. getParameters(
  14. material: Material,
  15. lights: any,
  16. shadows: object[],
  17. scene: Scene,
  18. object: any
  19. ): any;
  20. getProgramCacheKey( parameters: any ): string;
  21. getUniforms( material: Material ): object;
  22. acquireProgram(
  23. parameters: any,
  24. cacheKey: string
  25. ): WebGLProgram;
  26. releaseProgram( program: WebGLProgram ): void;
  27. }