From 8d215f69161e5009172c6e3f02bf1c360fa8ae2e Mon Sep 17 00:00:00 2001 From: vis-prime Date: Wed, 16 Aug 2023 21:25:01 +0530 Subject: [PATCH] fix: blurpass encoding --- src/materials/BlurPass.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/materials/BlurPass.ts b/src/materials/BlurPass.ts index 3170a61..c37a1b9 100644 --- a/src/materials/BlurPass.ts +++ b/src/materials/BlurPass.ts @@ -8,6 +8,7 @@ import { WebGLRenderer, Camera, Vector2, + HalfFloatType, } from 'three' import { ConvolutionMaterial } from './ConvolutionMaterial' @@ -47,7 +48,7 @@ export class BlurPass { magFilter: LinearFilter, stencilBuffer: false, depthBuffer: false, - encoding: gl.outputEncoding, + type: HalfFloatType, }) this.renderTargetB = this.renderTargetA.clone() this.convolutionMaterial = new ConvolutionMaterial()