OSDN Git Service

fix to seasonal color map! should be working now
authorAlia <alex.h@me.com>
Sun, 20 Jun 2021 00:34:47 +0000 (20:34 -0400)
committerAlia <alex.h@me.com>
Sun, 20 Jun 2021 00:34:47 +0000 (20:34 -0400)
Automap/Renderers/AChunkRenderer.cs

index 01661e2..aea3f1e 100644 (file)
@@ -75,22 +75,10 @@ namespace Automap
                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);
 
@@ -98,8 +86,6 @@ namespace Automap
                green = ColorUtil.ColorG(packedFormat);
                blue = ColorUtil.ColorR(packedFormat);
                }
-
-               }
     }
 }