mapspinner 0.1.6 → 0.1.7
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 +2 -3
package/package.json
CHANGED
package/src/shaders/terrain.glsl
CHANGED
|
@@ -961,9 +961,8 @@ void main() {
|
|
|
961
961
|
float dHdvN = float(hFD2 - h) / nStep;
|
|
962
962
|
vNrm = normalize(uxN * (-dHduN) + uyN * (-dHdvN) + uzN); // n = normalize([-dz/du,-dz/dv,1]) in the (ux,uy,uz) frame
|
|
963
963
|
}
|
|
964
|
-
// DIRECT per-vertex sphere projection (replaces the
|
|
965
|
-
|
|
966
|
-
// which bilinearly interpolated 4 deformed corners -> FLAT quad interior -> faceted at high GRID).
|
|
964
|
+
// DIRECT per-vertex sphere projection (replaces the old corner-blend deform, which
|
|
965
|
+
// bilinearly interpolated 4 deformed corners -> FLAT quad interior -> faceted at high GRID).
|
|
967
966
|
// dir0 is THIS vertex's world direction (faceWarp'd, defLocalToWorld-mapped); place it on the
|
|
968
967
|
// sphere at radius R+h and project. Every vertex curves -> round at any tessellation.
|
|
969
968
|
// SKIRT: outer-ring verts (vertex.z==1, xy clamped to the true edge) drop radially below the
|