Skip to content

Commit f8c46ae

Browse files
author
Tino Koch
committed
added workaround for type issue
1 parent 63dc8e6 commit f8c46ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/pmndrs/SMAAPmndrs.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ const createDebugPass = (type: 'edges' | 'weights') => {
9191
const texture = type === 'edges' ? effect.value.edgesTexture : effect.value.weightsTexture
9292
const pass = new EffectPass(camera.value, effect.value, new TextureEffect({ texture }))
9393
pass.renderToScreen = false
94-
pass.enabled = false
95-
pass.fullscreenMaterial.encodeOutput = false
94+
pass.enabled = false;
95+
96+
(pass.fullscreenMaterial as any /* fix for broken type in postprocessing */).encodeOutput = false
9697
9798
return pass
9899
}

0 commit comments

Comments
 (0)