I have a problem. I’m trying to use Distance fields in shaders to make some interaction of my effects with surfaces of level.
Also I used collisions with distance fields for GPU particles.
And everything was perfect, before I tried to change quality settings. And it broke everything. They just stops working. But I need scalability!
Therefore, I already done a number of effects that’s purely rely on distance fields. Some of my effects can’t be done without them at all.
The worst part of the story, that distance fields is controlled by shadow quality setting to which I can’t access form material nodes like quality switch or feature level switch.
Also, when distance fields is off, nodes that samples them like distance to nearest surface e.t.c., returns 0, and if I use them as mask the whole effect disappears.
So I can’t even check that there is no distance fields and pass there something else.
But even if I could, particle collisions still will be broken, and there is no way to fallback on depth collision.
Do anyone knows a solution to this problems?