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

@@ -394,6 +394,13 @@ namespace OpenRA.Traits
[RequireExplicitImplementation]
public interface IRenderTerrain { void RenderTerrain(WorldRenderer wr, Viewport viewport); }
[RequireExplicitImplementation]
public interface ITerrainLighting
{
event Action<MPos> CellChanged;
float3 TintAt(WPos pos);
}
public interface IRenderAboveShroud
{
IEnumerable<IRenderable> RenderAboveShroud(Actor self, WorldRenderer wr);