added a TODO in data util

This commit is contained in:
Leonardo
2021-09-15 17:02:44 +02:00
parent 5ede5fa202
commit 0e4cf8e882
2 changed files with 2 additions and 7 deletions
@@ -68,7 +68,7 @@ public class CubicLodTemplate extends AbstractLodTemplate
boolean hasSkyLight = dimensionType.hasSkyLight();
boolean hasRoof = dimensionType.hasCeiling();
boolean isDay = MinecraftWrapper.INSTANCE.getPlayer().level.isDay();
boolean isDay = MinecraftWrapper.INSTANCE.getPlayer().level.getDayTime() < 13000;
color = DataPointUtil.getLightColor(data, (hasRoof || hasSkyLight), isDay);
//color = DataPointUtil.getColor(data);
@@ -175,8 +175,8 @@ public class DataPointUtil
{
int lightBlock = getLightBlock(dataPoint);
int lightSky = getLightSky(dataPoint);
int lightTint = 0;
/**TODO ALL of this should be dimension dependent and lightMap dependent*/
int red;
int green;
int blue;
@@ -196,11 +196,6 @@ public class DataPointUtil
blue = LodUtil.clamp(0, getBlue(dataPoint) + -30 + lightBlock*2,255);
}
}
/*
red = LodUtil.clamp(0, getRed(dataPoint) + red, 255);
green = LodUtil.clamp(0, getGreen(dataPoint) + green, 255);
blue = LodUtil.clamp(0, getBlue(dataPoint) + blue, 255);*/
return ColorUtil.rgbToInt(red, green, blue);
}