Automap (client) [VS plugin mod]
修訂 | 209d0405a1e6410a9383efc47af2ee30abf0cced (tree) |
---|---|
時間 | 2021-06-20 09:34:47 |
作者 | Alia <alex.h@me.c...> |
Commiter | Alia |
fix to seasonal color map! should be working now
@@ -75,22 +75,10 @@ namespace Automap | ||
75 | 75 | avgCol = block.GetColor(ClientAPI, tmpPos); |
76 | 76 | rndCol = block.GetRandomColor(ClientAPI, tmpPos, BlockFacing.UP); |
77 | 77 | col = ColorUtil.ColorOverlay(avgCol, rndCol, 0.125f); |
78 | - packedFormat = ColorUtil.ColorMultiply3Clamped(col, slopeBoost); | |
79 | - | |
80 | - red = ColorUtil.ColorB(packedFormat); | |
81 | - green = ColorUtil.ColorG(packedFormat); | |
82 | - blue = ColorUtil.ColorR(packedFormat); | |
83 | 78 | } |
84 | 79 | else { |
85 | 80 | col = block.GetColorWithoutTint(ClientAPI, tmpPos); |
86 | - //How to set as Eternal-Summer...perhaps if block is plant, dirt... | |
87 | - if (block.BlockMaterial == EnumBlockMaterial.Leaves || | |
88 | - block.BlockMaterial == EnumBlockMaterial.Plant || | |
89 | - block.BlockMaterial == EnumBlockMaterial.Soil | |
90 | - ) { | |
91 | - col = ClientAPI.World.ApplyColorMapOnRgba(block.ClimateColorMapForMap, block.SeasonColorMapForMap, col, tmpPos.X, tmpPos.Y, tmpPos.Z); | |
92 | - int greenAmp = ColorUtil.ColorG(127); | |
93 | - col = ColorUtil.ColorOverlay(col, greenAmp, 0.25f); | |
81 | + col = ClientAPI.World.ApplyColorMapOnRgba(block.ClimateColorMapForMap, null, col, tmpPos.X, tmpPos.Y, tmpPos.Z, false); | |
94 | 82 | } |
95 | 83 | packedFormat = ColorUtil.ColorMultiply3Clamped(col, slopeBoost); |
96 | 84 |
@@ -98,8 +86,6 @@ namespace Automap | ||
98 | 86 | green = ColorUtil.ColorG(packedFormat); |
99 | 87 | blue = ColorUtil.ColorR(packedFormat); |
100 | 88 | } |
101 | - | |
102 | - } | |
103 | 89 | } |
104 | 90 | } |
105 | 91 |