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.