Projection texture and instances

Projection textures apply to the base object and NOT to instances. Here is an example:

In line 38
light.includedOnlyMeshes = [box, box3]; the instance (box3) is simply ignored for the texture. To make it work one has to use its original object box3. Then it works even though that one is invisible.

You have to use clones, because instances are rendered by same draw call / share material with their original.

While every clone can have an individual material and transformation, but shares geometry.

Your PG with clone:

1 Like