Hello. Is there any way to save ONLY shadow maps (not light maps and other GI stuff) in Unity? All baked lighting options that I saw is not suited for me, because they work in “per object” mode, but not “per light”.
What I want to achive. I have a scene with a lot of objects (really big number). And there are 10-20 STATIC light sources in this scene. All I want is to bake 10-20 shadow maps for this light sources. Only static scene objects should be draw in this shadow maps.
All dynamic scene objects should be rendered in real time in another 10-20 shadow maps. Then, on the final desicion on “is pixel in shadow” we check both: baked and real time shadow maps. If at least one test is “in shadow” then the pixel in shadow, otherwise not.
Why I need exactly THIS approach?
Because I don’t want to bake a lot of GI textures, and shadow mask textures for my scene. It is about 100+ textures and about 1 hour of time to bake this (with progressive GPU lightmapper).
So, as a short resume about what I want.
Bake shadow maps for every static light in a scene. Draw only static objects in this shadow maps.
In real time draw shadow maps for every non static objects in scene, and for every non static light.
Use both baked and real time shadow maps to deside is pixel in shadow.
It there any way to achive this in unity? (preferrably from the box).