• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Automap (client) [VS plugin mod]


Commit MetaInfo

Revisión9c9a3ab6f9674b2aae267da5d9350f17a25602c0 (tree)
Tiempo2020-12-11 10:11:46
Autormelchior <melchior@user...>
Commitermelchior

Log Message

Inelegant workaround for Slop-shading issue

Cambiar Resumen

Diferencia incremental

--- a/Automap/Renderers/StandardRenderer.cs
+++ b/Automap/Renderers/StandardRenderer.cs
@@ -103,7 +103,7 @@ namespace Automap
103103 //continue;
104104 //}
105105
106- float slopeBoost = 1;
106+ float slopeBoost = 1f;
107107 int leftTop, rightTop, leftBot;
108108
109109 ColumnMeta leftTopMapChunk = targetColMeta;
@@ -142,8 +142,12 @@ namespace Automap
142142
143143 if (slopeness > 0) slopeBoost = 1.2f;
144144 if (slopeness < 0) slopeBoost = 0.8f;
145+ if (Math.Abs(slopeness) <= float.Epsilon) slopeBoost = 1.0f;//Same height
146+ //slopeBoost -= 0.15f; //Slope boost value
145147
146- slopeBoost -= 0.15f; //Slope boost value
148+ //FIXME: disable slopes on edges...for now
149+ if (localX == 0 || localX == 31) slopeBoost= 1.0f;
150+ if (localZ == 0 || localZ == 31) slopeBoost= 1.0f;
147151
148152 int blockId = chunksColumn[localChunkY].MaybeBlocks[MapUtil.Index3d(localX, (localY % chunkSize), localZ, chunkSize, chunkSize)];
149153
--- a/Automap/modinfo.json
+++ b/Automap/modinfo.json
@@ -7,7 +7,7 @@
77 "version": "0.1.5",
88 "side":"Client",
99 "dependencies": {
10- "game": "1.13.4"
10+ "game": "1.14.0"
1111 },
1212 "website": "http://nowebsite.nope"
1313 }
\ No newline at end of file