FAQ

beginner faq

Dynamic Fog & Mist 2 (Built-in) · Troubleshooting & FAQ

How can I render the fog behind particles?

Edit DynamicFog.cs and add the [ImageEffectOpaque] attribute before the OnRenderImage method. This makes the fog render before transparent objects (including particles).

How can I make the fog react to ambient light / day-night cycles?

Assign a directional light (or the Sun GameObject from your time-of-day plugin) to the Sun property in the DynamicFog inspector. The fog will automatically lerp between the fog color and black based on the light's Y-axis angle.

What is the difference between DynamicFog and DynamicFogExclusive?
ScriptUse CaseKey Difference
DynamicFogMost projectsFull-quality fog with all features.
DynamicFogExclusivePerformance-sensitive (mobile)Adds a Downsampling parameter that renders fog at reduced resolution for better performance.
Fog renders incorrectly when exporting to WebGL

Set the Quality level to Medium or higher in Project Settings > Quality. Lower quality levels may lack the depth buffer precision needed for correct fog rendering.

Can I use Dynamic Fog with Post-Processing Stack v2?

Yes. Import the PostProcessingSupport.unitypackage included in the DynamicFog folder. The fog effects will then appear as pluggable effects in Post-Processing Profiles and Volumes. Do not also add the camera script — use one method only.

When should I use fog materials instead of the image effect?

Use fog materials when you need maximum performance on older mobile devices. They integrate fog directly into the object shader, avoiding the full-screen blit pass. However, they require replacing your existing materials with DFM/DFR variants.

Which fog-of-war method should I use?
MethodPerspectivePerformance
Image-effect fog of warAny perspectiveStandard (uses full-screen pass)
FogOfWarLayer prefabTop-down onlyFaster (mesh-based, no image effect)
Is this asset compatible with Unity 6?

Yes. All Kronnect assets are fully compatible with Unity 6. The minimum supported version is Unity 2022.3 LTS, and this includes Unity 6 and any newer releases.


I have a question not covered here

Please visit the Support Center and use our AI Support Assistant to get answers. If the issue persists, submit a reproduction project so we can investigate further and help you.

Was this page helpful?