Sampling Mode
Sampling options on the Fog Of War World component. See Fog Sample Modes for a conceptual overview.
Sample Mode
| Property | Type | Default | Description |
|---|---|---|---|
| FOW Sampling Mode | enum | Pixel-Perfect | How fog is sampled in the full-screen shader: Pixel-Perfect (per-pixel, unlimited world size), Texture (render-texture backed, enables regrow), or Both. |
Texture Sampling Options
These apply when using Texture or Both sampling mode (or when hiders sample the fog texture).
| Property | Type | Default | Description |
|---|---|---|---|
| Hiders Use Fog Texture | bool | true | When true, hiders are revealed by sampling the fog texture instead of a revealer's direct line of sight. |
| Hider Seen Threshold | float (0–1) | 0.5 | The fog-texture value at which a hider counts as seen. |
| Async Readback Fog Data To Cpu | bool | false | Reads the fog texture back to the CPU asynchronously, making CPU fog sampling much faster (at the cost of always computing it). Keep this on if you sample the fog texture from code frequently. Implicitly true when Hiders Use Fog Texture is enabled. |
| Use Constant Blur | bool | true | Applies a constant blur when sampling the fog texture, smoothing out grid cells. |
| Constant Texture Blur Quality | int | 2 | Blur quality for the constant blur. |
| Constant Texture Blur Amount | float | 0.75 | Blur amount for the constant blur. |
Fog Texture Resolution
| Property | Type | Default | Description |
|---|---|---|---|
| Use Mini Map | bool | false | Enables the minimap fog texture. See Minimap Generation. |
| Fow Res X | int | 512 | Fog texture width. |
| Fow Res Y | int | 512 | Fog texture height. |
Note
Texture sampling and the minimap require World Bounds to be defined.