VSM Self Shadow Only Support (5.3.1)

Virtual Shadow Maps do not seem to support Self Shadow Only. Switching to CSM it works as expected with Directional Light, but not with VSM. Please add support for this, as it is critical for first person shooters. Even better would be an option for Actor Self Shadow Only, so mesh components can cast shadows on each other in the same actor, but I don’t know if that is possible.

In theory it is possible, it is just a matter of drawing the desired objects to the same depth buffer. Any objects drawn into the depth buffer will shadow. In order to self shadow only, the object(s) need its own separate depth buffer, and to be omitted from the regular buffer. This does increase the cost of drawing shadow depths for each light because it needs to be done for each object that self shadows only instead of just once for the whole light.

1 Like