Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/EffectComposer.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -141,11 +141,13 @@ export const EffectComposer = React.memo(
if (child instanceof Effect) {
const effects: Effect[] = [child]

let next: unknown = null
while ((next = children[i + 1]) instanceof Effect) {
if (isConvolution(next)) break
effects.push(next)
i++
if (!isConvolution(child)) {
let next: unknown = null
while ((next = children[i + 1]) instanceof Effect) {
if (isConvolution(next)) break
effects.push(next)
i++
}
}

const pass = new EffectPass(camera, ...effects)
Expand Down