GearVRf icon indicating copy to clipboard operation
GearVRf copied to clipboard

Point Lights don't cast shadows

Open PapiyaNath opened this issue 8 years ago • 2 comments

Currently only directional light and spot lights cast shadows. Point lights don't cast shadows.

PapiyaNath avatar Jul 14 '16 23:07 PapiyaNath

Point lights do not have a projection matrix if I am right, the shadow map needs something different that of a directional light or spot light.

danke-sra avatar Aug 04 '16 04:08 danke-sra

In this case you have to use cascaded shadow maps. These are cube maps from the viewpoint of the light (so they cover all directions). But you need more than one because the light is infinitely far. Typically games with a lot of scenery would use 4 levels of shadow map each with a different projection matrix focusing on a different distance.

NolaDonato avatar Aug 04 '16 21:08 NolaDonato