We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e2e566 commit 364cf61Copy full SHA for 364cf61
examples/assets/scripts/shadow-catcher.mjs
@@ -98,8 +98,8 @@ export class ShadowCatcher extends Script {
98
camera.layers = camera.layers.concat([this.layer.id]);
99
});
100
101
- this.entity.findComponents('render').forEach((render) => {
102
- render.layers = render.layers.concat([this.layer.id]);
+ this.entity.findComponents('render').forEach((component) => {
+ this.layer.shadowCasters = this.layer.shadowCasters.concat(component.meshInstances);
103
104
}
105
0 commit comments