Automap (client) [VS plugin mod]
Revisión | 9c9a3ab6f9674b2aae267da5d9350f17a25602c0 (tree) |
---|---|
Tiempo | 2020-12-11 10:11:46 |
Autor | melchior <melchior@user...> |
Commiter | melchior |
Inelegant workaround for Slop-shading issue
@@ -103,7 +103,7 @@ namespace Automap | ||
103 | 103 | //continue; |
104 | 104 | //} |
105 | 105 | |
106 | - float slopeBoost = 1; | |
106 | + float slopeBoost = 1f; | |
107 | 107 | int leftTop, rightTop, leftBot; |
108 | 108 | |
109 | 109 | ColumnMeta leftTopMapChunk = targetColMeta; |
@@ -142,8 +142,12 @@ namespace Automap | ||
142 | 142 | |
143 | 143 | if (slopeness > 0) slopeBoost = 1.2f; |
144 | 144 | 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 | |
145 | 147 | |
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; | |
147 | 151 | |
148 | 152 | int blockId = chunksColumn[localChunkY].MaybeBlocks[MapUtil.Index3d(localX, (localY % chunkSize), localZ, chunkSize, chunkSize)]; |
149 | 153 |
@@ -7,7 +7,7 @@ | ||
7 | 7 | "version": "0.1.5", |
8 | 8 | "side":"Client", |
9 | 9 | "dependencies": { |
10 | - "game": "1.13.4" | |
10 | + "game": "1.14.0" | |
11 | 11 | }, |
12 | 12 | "website": "http://nowebsite.nope" |
13 | 13 | } |
\ No newline at end of file |