forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
three-effectcomposer.d.ts
28 lines (24 loc) · 966 Bytes
/
three-effectcomposer.d.ts
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
// Type definitions for three.js (EffectComposer.js)
// Project: https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/EffectComposer.js
// Definitions by: Satoru Kimura <https://github.com/gyohk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="./three.d.ts" />
/// <reference path="./three-shaderpass.d.ts" />
/// <reference path="./three-copyshader.d.ts" />
declare namespace THREE {
export class EffectComposer {
constructor( renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget);
renderTarget1: WebGLRenderTarget;
renderTarget2: WebGLRenderTarget;
writeBuffer: WebGLRenderTarget;
readBuffer: WebGLRenderTarget;
passes: any[];
copyPass: ShaderPass;
swapBuffers(): void;
addPass(pass: any): void;
insertPass(pass: any, index: number): void;
render(delta?: number): void;
reset(renderTarget?: WebGLRenderTarget): void;
setSize( width: number, height: number ): void;
}
}