- Home /
Detonator Framework and Fog
I am using the detonator framework in a project I'm developing. I was hoping I could get some guidance.
I've created a scene that uses fog to simulate a sandstorm. The fog interferes with the explosions and I get rectangular shapes appearing which look like the transparent background of the textures.
I've created custom shaders for the particles/additive and particles/alpha blend shaders. I've removed the fog with the following line.
Cull Off Lighting Off ZWrite Off Fog { Mode Off }
Then I built materials that use these shaders, and everything on the material is configure the same as the detonator materials, except for the shader. But this gives me a clean background on the textures (the clear background, instead of a foggy background), so the effect is similar but in reverse.
I've tried this as well to match the fog color, but that doesn't work either.
Cull Off Lighting Off ZWrite Off Fog { Color(0.357, 0.3, 0.22, 0.02) }
So my explosions look bad. What does one do to solve a problem like this? They look fine in the scene with no fog.