|
@@ -34,6 +34,7 @@ class RenderTarget extends EventDispatcher {
|
|
minFilter: LinearFilter,
|
|
minFilter: LinearFilter,
|
|
depthBuffer: true,
|
|
depthBuffer: true,
|
|
stencilBuffer: false,
|
|
stencilBuffer: false,
|
|
|
|
+ resolveStencilBuffer: true,
|
|
depthTexture: null,
|
|
depthTexture: null,
|
|
samples: 0,
|
|
samples: 0,
|
|
count: 1
|
|
count: 1
|
|
@@ -58,6 +59,8 @@ class RenderTarget extends EventDispatcher {
|
|
this.depthBuffer = options.depthBuffer;
|
|
this.depthBuffer = options.depthBuffer;
|
|
this.stencilBuffer = options.stencilBuffer;
|
|
this.stencilBuffer = options.stencilBuffer;
|
|
|
|
|
|
|
|
+ this.resolveStencilBuffer = options.resolveStencilBuffer;
|
|
|
|
+
|
|
this.depthTexture = options.depthTexture;
|
|
this.depthTexture = options.depthTexture;
|
|
|
|
|
|
this.samples = options.samples;
|
|
this.samples = options.samples;
|
|
@@ -135,6 +138,8 @@ class RenderTarget extends EventDispatcher {
|
|
this.depthBuffer = source.depthBuffer;
|
|
this.depthBuffer = source.depthBuffer;
|
|
this.stencilBuffer = source.stencilBuffer;
|
|
this.stencilBuffer = source.stencilBuffer;
|
|
|
|
|
|
|
|
+ this.resolveStencilBuffer = source.resolveStencilBuffer;
|
|
|
|
+
|
|
if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
|
|
if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
|
|
|
|
|
|
this.samples = source.samples;
|
|
this.samples = source.samples;
|