Table of Contents

Shader Config


The FOW_ShaderConfig is an editor-only ScriptableObject that controls Fog Of War's shaders at build time. It does two things: it lets you write a Custom Fog Shader, and it lets you strip unused shader variants from your builds.

The Config Asset

  • Auto-created at Assets/FogOfWar/FOW_ShaderConfig.asset — select it in the Project window to edit.
  • Editor-only. It lives in the editor assembly and never ships in a build, so it doesn't need to be a preloaded asset.
  • One active at a time. Toggle Is Active Asset; the active config is the one the shader stripper reads at build time. Enabling it on one asset automatically disables it on the others.

Subsections

Custom Fog Shader

Write your own full-screen fog look in HLSL (the Custom appearance), via the config's Custom Effect Hlsl field.

Shader Stripping

Strip the appearance looks and feature variants you don't use from builds, to cut build size and shader compile time.