Skip to content

Commit 364cf61

Browse files
authored
Revert "[FIX] Allow shadow catcher to handle model deletion (#98)" (#109)
This reverts commit 0912f21.
1 parent 4e2e566 commit 364cf61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/assets/scripts/shadow-catcher.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export class ShadowCatcher extends Script {
9898
camera.layers = camera.layers.concat([this.layer.id]);
9999
});
100100

101-
this.entity.findComponents('render').forEach((render) => {
102-
render.layers = render.layers.concat([this.layer.id]);
101+
this.entity.findComponents('render').forEach((component) => {
102+
this.layer.shadowCasters = this.layer.shadowCasters.concat(component.meshInstances);
103103
});
104104
}
105105
}

0 commit comments

Comments
 (0)