|
@@ -1,5 +1,6 @@
|
|
import { Vector4 } from './../math/Vector4';
|
|
import { Vector4 } from './../math/Vector4';
|
|
import { Texture } from './../textures/Texture';
|
|
import { Texture } from './../textures/Texture';
|
|
|
|
+import { DepthTexture } from './../textures/DepthTexture';
|
|
import { EventDispatcher } from './../core/EventDispatcher';
|
|
import { EventDispatcher } from './../core/EventDispatcher';
|
|
import { Wrapping, TextureFilter, TextureDataType } from '../constants';
|
|
import { Wrapping, TextureFilter, TextureDataType } from '../constants';
|
|
|
|
|
|
@@ -14,6 +15,7 @@ export interface WebGLRenderTargetOptions {
|
|
depthBuffer?: boolean; // true;
|
|
depthBuffer?: boolean; // true;
|
|
stencilBuffer?: boolean; // true;
|
|
stencilBuffer?: boolean; // true;
|
|
generateMipmaps?: boolean; // true;
|
|
generateMipmaps?: boolean; // true;
|
|
|
|
+ depthTexture?: DepthTexture;
|
|
}
|
|
}
|
|
|
|
|
|
export class WebGLRenderTarget extends EventDispatcher {
|
|
export class WebGLRenderTarget extends EventDispatcher {
|
|
@@ -33,7 +35,7 @@ export class WebGLRenderTarget extends EventDispatcher {
|
|
texture: Texture;
|
|
texture: Texture;
|
|
depthBuffer: boolean;
|
|
depthBuffer: boolean;
|
|
stencilBuffer: boolean;
|
|
stencilBuffer: boolean;
|
|
- depthTexture: Texture;
|
|
|
|
|
|
+ depthTexture: DepthTexture;
|
|
/**
|
|
/**
|
|
* @deprecated Use {@link Texture#wrapS texture.wrapS} instead.
|
|
* @deprecated Use {@link Texture#wrapS texture.wrapS} instead.
|
|
*/
|
|
*/
|