remappable resource types

This commit is contained in:
Matthias Mailänder
2014-05-03 08:18:56 +02:00
parent fd4cb59799
commit 8b3f15155e
5 changed files with 60 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Graphics
for (var i = 15; i > 0; i--)
remapRamp = ramp.Select(r => r - ramp[15]).ToArray();
}
remapColors = remapRamp.Select((x, i) => Pair.New(baseIndex + i, Exts.ColorLerp(x / 16f, c1, c2)))
.ToDictionary(u => u.First, u => u.Second);
}