WebGLPrograms.d.ts 815 B

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