• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Automap (client) [VS plugin mod]


コミットメタ情報

リビジョン209d0405a1e6410a9383efc47af2ee30abf0cced (tree)
日時2021-06-20 09:34:47
作者Alia <alex.h@me.c...>
コミッターAlia

ログメッセージ

fix to seasonal color map! should be working now

変更サマリ

差分

--- 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