I’m making a 90s FPS style game and using the shadowGenerator doesn’t produce sharp shadows (well it does but I have to increase the size of the shadow map and it kills performance for me with lots of shadows)
My question is would it be possible to do something like the BUILD engine (Duke Nukem, Blood etc), that is manually placing all of the shadows?
I had the idea of doing something like this -
Where I create a “shadow mesh” - that is if it mesh overlaps with another mesh it changes the color to its color (e.g. so you would set the shadow mesh to black with a transparency of 0.5) - this would give me the sharp angles for shadows I believe.
I’ve seen shaders written in Unity to do this, but before I start trying to figure how to do it in Babylon - I was wondering if anyone could give me feedback in terms of this being a good idea for performance?
(another example in blender)