Skip to content

Commit b708ed3

Browse files
committed
set opaque blend mode for secondary MRT targets
1 parent f367f20 commit b708ed3

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/renderers/webgpu/utils/WebGPUPipelineUtils.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,22 @@ class WebGPUPipelineUtils {
152152

153153
const colorFormat = utils.getTextureFormatGPU( textures[ i ] );
154154

155-
targets.push( {
156-
format: colorFormat,
157-
blend: blending,
158-
writeMask: colorWriteMask
159-
} );
155+
if ( i === 0 ) {
156+
157+
targets.push( {
158+
format: colorFormat,
159+
blend: blending,
160+
writeMask: colorWriteMask
161+
} );
162+
163+
} else {
164+
165+
targets.push( {
166+
format: colorFormat,
167+
writeMask: colorWriteMask
168+
} );
169+
170+
}
160171

161172
}
162173

0 commit comments

Comments
 (0)