|
@@ -4,6 +4,7 @@ import {
|
|
CustomBlending,
|
|
CustomBlending,
|
|
DataTexture,
|
|
DataTexture,
|
|
DepthTexture,
|
|
DepthTexture,
|
|
|
|
+ DepthStencilFormat,
|
|
DstAlphaFactor,
|
|
DstAlphaFactor,
|
|
DstColorFactor,
|
|
DstColorFactor,
|
|
HalfFloatType,
|
|
HalfFloatType,
|
|
@@ -15,6 +16,7 @@ import {
|
|
ShaderMaterial,
|
|
ShaderMaterial,
|
|
UniformsUtils,
|
|
UniformsUtils,
|
|
UnsignedByteType,
|
|
UnsignedByteType,
|
|
|
|
+ UnsignedInt248Type,
|
|
WebGLRenderTarget,
|
|
WebGLRenderTarget,
|
|
ZeroFactor
|
|
ZeroFactor
|
|
} from 'three';
|
|
} from 'three';
|
|
@@ -171,6 +173,8 @@ class GTAOPass extends Pass {
|
|
} else {
|
|
} else {
|
|
|
|
|
|
this.depthTexture = new DepthTexture();
|
|
this.depthTexture = new DepthTexture();
|
|
|
|
+ this.depthTexture.format = DepthStencilFormat;
|
|
|
|
+ this.depthTexture.type = UnsignedInt248Type;
|
|
this.normalRenderTarget = new WebGLRenderTarget( this.width, this.height, {
|
|
this.normalRenderTarget = new WebGLRenderTarget( this.width, this.height, {
|
|
minFilter: NearestFilter,
|
|
minFilter: NearestFilter,
|
|
magFilter: NearestFilter,
|
|
magFilter: NearestFilter,
|