Improve Heat mechanic, and get it rendering nicely.

Colour temperature algorithm adapted from http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ - thanks to Tanner Hellan for the useful post.
This commit is contained in:
Ben Spiers committed 2014-12-20 02:09:14 +00:00
1 parent 2bd2e94c7b
commit 4a404dfc78
9 files changed
+216 -6

No files matched your search

@@ -50,6 +50,7 @@ public class MekanismRenderer
public static IIcon[] colors = new IIcon[256];
public static IIcon energyIcon;
public static IIcon heatIcon;
private static float lightmapLastX;
private static float lightmapLastY;
@@ -73,6 +74,7 @@ public class MekanismRenderer
}
energyIcon = event.map.registerIcon("mekanism:LiquidEnergy");
heatIcon = event.map.registerIcon("mekanism:LiquidHeat");
GasRegistry.getGas("hydrogen").setIcon(event.map.registerIcon("mekanism:LiquidHydrogen"));
GasRegistry.getGas("oxygen").setIcon(event.map.registerIcon("mekanism:LiquidOxygen"));