Implement TS-style terrain lighting.

This commit is contained in:
Paul Chote
2020-07-10 12:46:45 +01:00
committed by abcdefg30
parent fdb66c769c
commit 01e955ca37
11 changed files with 300 additions and 14 deletions

View File

@@ -292,8 +292,8 @@ namespace OpenRA.Mods.Common.Traits
if (fogSprite != null)
fogPos += fogSprite.Offset - 0.5f * fogSprite.Size;
shroudLayer.Update(uv, shroudSprite, shroudPos);
fogLayer.Update(uv, fogSprite, fogPos);
shroudLayer.Update(uv, shroudSprite, shroudPos, true);
fogLayer.Update(uv, fogSprite, fogPos, true);
}
}