mapspinner 0.1.77 → 0.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/shaders/terrain.glsl +6 -1
package/package.json
CHANGED
package/src/shaders/terrain.glsl
CHANGED
|
@@ -1023,7 +1023,12 @@ void main() {
|
|
|
1023
1023
|
dPV * (defRadius + hPV) - dMV * (defRadius + hMV)));
|
|
1024
1024
|
if (dot(vN, dir0) < 0.0) vN = -vN;
|
|
1025
1025
|
} else if (uIsWater < 0.5) {
|
|
1026
|
-
|
|
1026
|
+
// DEDUP (2026-06-15 caching rearch): vH (computed inline 832-962) IS composeHeight(dir0,faceLocal,defOffset.z)
|
|
1027
|
+
// -- the identical carve cascade in the identical order. Reuse it for the geometry-height center instead of a
|
|
1028
|
+
// 2nd full eval/vertex. The 4 OFFSET taps below stay their own single composeHeight instance (the FXC
|
|
1029
|
+
// normal-divergence fix is about the taps agreeing with EACH OTHER; the center only feeds scalar h, not the
|
|
1030
|
+
// normal cross-difference 1056-1058, so reusing vH cannot reintroduce the per-callsite normal triad).
|
|
1031
|
+
hN0 = vH; // center = the geometry height h (== composeHeight, dedup)
|
|
1027
1032
|
// VERTEX NORMAL = CENTRAL DIFFERENCE in PARAMETRIC MESH SPACE over the FULL composeHeight (2026-06-14
|
|
1028
1033
|
// jagged-normal fix). Two earlier methods both jagged: (a) interior FORWARD mesh-cell cross product
|
|
1029
1034
|
// = each vertex got its forward triangle's FACE normal (faceted) at a vertex-spacing step (noisy);
|