Skip to content

Commit 0686901

Browse files
committed
Change default depth texture type to FloatType
1 parent ba4321a commit 0686901

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/passes/GeometryPass.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import {
1818
TextureDataType,
1919
UnsignedByteType,
2020
UnsignedInt248Type,
21-
UnsignedIntType,
2221
WebGLProgramParametersWithUniforms,
2322
WebGLRenderTarget,
2423
WebGLRenderer
@@ -526,7 +525,7 @@ export class GeometryPass extends Pass implements GeometryPassOptions, Selective
526525
const depthTexture = new DepthTexture(1, 1);
527526
depthTexture.name = GBuffer.DEPTH;
528527
depthTexture.format = this.stencilBuffer ? DepthStencilFormat : DepthFormat;
529-
depthTexture.type = this.stencilBuffer ? UnsignedInt248Type : UnsignedIntType;
528+
depthTexture.type = this.stencilBuffer ? UnsignedInt248Type : FloatType;
530529
outputBuffer.depthTexture?.dispose();
531530
outputBuffer.depthTexture = depthTexture;
532531

0 commit comments

Comments
 (0)