Reflective planet water

This commit is contained in:
Anuken
2020-04-02 12:32:55 -04:00
parent 19239a6890
commit a26cd46a7e
7 changed files with 22 additions and 5 deletions

View File

@@ -60,8 +60,7 @@ public class TODOPlanetGenerator extends PlanetGenerator{
Block block = getBlock(position);
//replace salt with sand color
if(block == Blocks.salt) return Blocks.sand.mapColor;
//return block.asFloor().isLiquid ? Tmp.c1.set(block.mapColor).a(0.5f) : block.mapColor;
return block.mapColor;
return Tmp.c1.set(block.mapColor).a(1f - block.albedo);
}
@Override