• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Automap (client) [VS plugin mod]


Commit MetaInfo

Revision209d0405a1e6410a9383efc47af2ee30abf0cced (tree)
Time2021-06-20 09:34:47
AuthorAlia <alex.h@me.c...>
CommiterAlia

Log Message

fix to seasonal color map! should be working now

Change Summary

Incremental Difference

--- a/Automap/Renderers/AChunkRenderer.cs
+++ b/Automap/Renderers/AChunkRenderer.cs
@@ -75,22 +75,10 @@ namespace Automap
7575 avgCol = block.GetColor(ClientAPI, tmpPos);
7676 rndCol = block.GetRandomColor(ClientAPI, tmpPos, BlockFacing.UP);
7777 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);
8378 }
8479 else {
8580 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);
9482 }
9583 packedFormat = ColorUtil.ColorMultiply3Clamped(col, slopeBoost);
9684
@@ -98,8 +86,6 @@ namespace Automap
9886 green = ColorUtil.ColorG(packedFormat);
9987 blue = ColorUtil.ColorR(packedFormat);
10088 }
101-
102- }
10389 }
10490 }
10591