File size: 864 Bytes
6cd9596
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { WebGLRenderer } from './../WebGLRenderer';
import { WebGLProgram } from './WebGLProgram';
import { WebGLCapabilities } from './WebGLCapabilities';
import { WebGLExtensions } from './WebGLExtensions';
import { WebGLTextures } from './WebGLTextures';
import { ShaderMaterial } from './../../materials/ShaderMaterial';

export class WebGLPrograms {
  constructor(renderer: WebGLRenderer, extensions: WebGLExtensions, capabilities: WebGLCapabilities, textures: WebGLTextures);

  programs: WebGLProgram[];

  getParameters(
    material: ShaderMaterial,
    lights: any,
    fog: any,
    nClipPlanes: number,
    object: any
  ): any;
  getProgramCode(material: ShaderMaterial, parameters: any): string;
  acquireProgram(
    material: ShaderMaterial,
    parameters: any,
    code: string
  ): WebGLProgram;
  releaseProgram(program: WebGLProgram): void;
}