Skip to content

fix: fog of war visibility filtering and disable volumetric fog#1259

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/fix-fog-of-war-positioning-0VptG
Feb 3, 2026
Merged

fix: fog of war visibility filtering and disable volumetric fog#1259
braedonsaunders merged 1 commit into
mainfrom
claude/fix-fog-of-war-positioning-0VptG

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  1. Filter enemy units/buildings in worker mode based on fog of war:

    • Enemy units only sent to renderer if visible to local player
    • Enemy buildings only sent if area has been explored
    • Fixes enemy entities being visible under fog when they shouldn't be
  2. Disable volumetric fog raymarching in fog of war effect:

    • Volumetric fog caused 20% position shift due to camera angle bias
    • AAA RTS games use texture-based fog of war, not volumetric raymarching
    • Surface-based effects (desaturation, darkening, clouds) work correctly

https://claude.ai/code/session_01EapnCYk6fojgAW339F4Dfh

1. Filter enemy units/buildings in worker mode based on fog of war:
   - Enemy units only sent to renderer if visible to local player
   - Enemy buildings only sent if area has been explored
   - Fixes enemy entities being visible under fog when they shouldn't be

2. Disable volumetric fog raymarching in fog of war effect:
   - Volumetric fog caused 20% position shift due to camera angle bias
   - AAA RTS games use texture-based fog of war, not volumetric raymarching
   - Surface-based effects (desaturation, darkening, clouds) work correctly

https://claude.ai/code/session_01EapnCYk6fojgAW339F4Dfh
@braedonsaunders braedonsaunders merged commit e1e3b96 into main Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants