Table of Contents

Shader Stripping


Pixel-Perfect Fog Of War compiles its full-screen fog into many shader variants — one combination per appearance look and feature keyword. Shader stripping lets you remove the variants you don't use from your builds, reducing build size and shader compile time.

Stripping is controlled by the FOW_ShaderConfig asset. Enable a toggle to strip variants matching that feature or look from builds.

What You Can Strip

Appearance Looks — strip any appearance you never use:

  • Solid Color, Gray Scale, Blur, Texture Sample, Outline, Custom

Feature Variants:

  • No Spatial Hashing, Pixelate, Dithering, Arc Leaking (Bleeding), Texture Blur, Realtime Sampling, 2D, Hard Fog, Soft Fog, Regrow

Example

If your game only ever uses Soft fog with the Solid Color look, you can strip the Hard Fog variant and every other appearance (Gray Scale, Blur, Texture, Outline, Custom) to trim the build.

Warning

Only strip variants you are certain you will never use at runtime. If you switch fog appearance or toggle features at runtime (for example via SetFowAppearance), do not strip those variants — a stripped variant will fail to render in the player build.