Simple shadow mapping example

I’m studying your original example now and I have some questions.

Is it cheaply possible to improve the quality of shadows like this? Smoothing the shadow or something?

Percentage-closer filtering as mentioned here?

LearnOpenGL - Shadow Mapping

What is the best way to allow some objects to cast shadows but not to receive shadows? So in the below it would be nice looking to allow the voxel character to cast a shadow but to be shaded in its own way.

Would it be possible to check if an object is inside of a shadow (a point is “standing” on top of a shadow) to change its shading? So like from lit to more shaded. Some games do this. I can imagine how this is done but I don’t know how it would probably be done.

1 Like