We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41ffe02 commit 4297896Copy full SHA for 4297896
src/EffectComposer.tsx
@@ -141,11 +141,13 @@ export const EffectComposer = React.memo(
141
if (child instanceof Effect) {
142
const effects: Effect[] = [child]
143
144
- let next: unknown = null
145
- while ((next = children[i + 1]) instanceof Effect) {
146
- if (isConvolution(next)) break
147
- effects.push(next)
148
- i++
+ if (!isConvolution(child)) {
+ let next: unknown = null
+ while ((next = children[i + 1]) instanceof Effect) {
+ if (isConvolution(next)) break
+ effects.push(next)
149
+ i++
150
+ }
151
}
152
153
const pass = new EffectPass(camera, ...effects)
0 commit comments