Table of Contents

Namespace Map.Rendering.FogOfWar

Classes

DefaultFogOfWarRenderer

ENGINE: Default fog of war renderer using GPU compute shader.

Features:

  • GPU-accelerated fog texture generation via compute shader
  • Three visibility states: unexplored (0.0), explored (0.5), visible (1.0)
  • Owned provinces and adjacents marked as visible
  • Previous visible areas demoted to explored when lost

Pattern 20: Pluggable Implementation (Interface + Registry)

FogOfWarRendererBase

ENGINE: Abstract base class for fog of war renderer implementations. Provides common utilities and state management.

Pattern 20: Pluggable Implementation (Interface + Registry)

Structs

FogOfWarRendererContext

Context provided during renderer initialization

FogOfWarStyleParams

Style parameters for fog of war rendering (from VisualStyleConfiguration)

Interfaces

IFogOfWarRenderer

ENGINE: Interface for pluggable fog of war rendering implementations.

ENGINE provides default compute-shader based implementation. GAME can register custom implementations for different fog styles:

  • Different visual effects (animated fog, stylized clouds)
  • Alternative visibility rules
  • Performance optimizations for specific use cases

Pattern 20: Pluggable Implementation (Interface + Registry)

Enums

VisibilityState

Visibility state for provinces