avgCol = block.GetColor(ClientAPI, tmpPos);
rndCol = block.GetRandomColor(ClientAPI, tmpPos, BlockFacing.UP);
col = ColorUtil.ColorOverlay(avgCol, rndCol, 0.125f);
- packedFormat = ColorUtil.ColorMultiply3Clamped(col, slopeBoost);
-
- red = ColorUtil.ColorB(packedFormat);
- green = ColorUtil.ColorG(packedFormat);
- blue = ColorUtil.ColorR(packedFormat);
}
else {
col = block.GetColorWithoutTint(ClientAPI, tmpPos);
- //How to set as Eternal-Summer...perhaps if block is plant, dirt...
- if (block.BlockMaterial == EnumBlockMaterial.Leaves ||
- block.BlockMaterial == EnumBlockMaterial.Plant ||
- block.BlockMaterial == EnumBlockMaterial.Soil
- ) {
- col = ClientAPI.World.ApplyColorMapOnRgba(block.ClimateColorMapForMap, block.SeasonColorMapForMap, col, tmpPos.X, tmpPos.Y, tmpPos.Z);
- int greenAmp = ColorUtil.ColorG(127);
- col = ColorUtil.ColorOverlay(col, greenAmp, 0.25f);
+ col = ClientAPI.World.ApplyColorMapOnRgba(block.ClimateColorMapForMap, null, col, tmpPos.X, tmpPos.Y, tmpPos.Z, false);
}
packedFormat = ColorUtil.ColorMultiply3Clamped(col, slopeBoost);
green = ColorUtil.ColorG(packedFormat);
blue = ColorUtil.ColorR(packedFormat);
}
-
- }
}
}