From 90cc612b64559c5fca1a5c8c16093ca406e5dabf Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 22 Aug 2017 08:59:22 +0800 Subject: [PATCH] Add Class and --- types/three/three-core.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 18557bd19c..533a29a7ea 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -4983,6 +4983,7 @@ export class WebGLRenderer implements Renderer { capabilities: WebGLCapabilities; properties: WebGLProperties; + renderLists: WebGLRenderLists; state: WebGLState; allocTextureUnit: any; @@ -5107,6 +5108,26 @@ export class WebGLRenderer implements Renderer { export interface RenderTarget {} // not defined in the code, used in LightShadow and WebGRenderer classes +export class WebGLRenderList +{ + opaque: Array; + transparent: Array; + init(): void; + push(object, geometry, material, z, group): void; + + sort(): void; +} + +export class WebGLRenderLists{ + dispose(): void; + /** + * + * returns { : } + */ + get(scene: Scene, camera: Camera): WebGLRenderList; +} + + export interface WebGLRenderTargetOptions { wrapS?: Wrapping; wrapT?: Wrapping;