GearVRf
GearVRf copied to clipboard
Point Lights don't cast shadows
Currently only directional light and spot lights cast shadows. Point lights don't cast shadows.
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.
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.