12 lines
324 B
C#

using Godot;
public class NoOverlay : Overlay
{
// in this view we want to draw tiles with their normal colour
public override void Apply(Tile tile, ShaderMaterial material)
{
var type = tile.type;
material.SetShaderParam("lowColor", type.Color);
material.SetShaderParam("t", 0);
}
}