mapspinner 0.1.27 → 0.1.29

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapspinner",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "WebGL2 Earth-scale terrain rendering SDK for interactive globe applications",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -461,7 +461,7 @@ export async function initMapspinnerPlanet(gl, opts = {}) {
461
461
  // so the L8 swap can land at 700km (the <boundary ramp begins below the lowest knot).
462
462
  // (the src/lab altSplitMul mirror was deleted 2026-06-12; this is the only copy now.)
463
463
  // knots [altKm, sf]; sf log-interpolated. Outside the range clamps to the end knot.
464
- const KN = [[700,0.865],[900,1.009],[1200,0.966],[1700,0.898],[2400,1.19],[3200,0.865],[5000,0.86],[7000,0.72],[13000,0.60],[40000,0.45]];
464
+ const KN = [[700,0.865],[900,1.009],[1200,0.966],[1700,0.898],[2400,1.19],[3200,0.865],[5000,0.86],[12000,0.72],[20000,0.60],[40000,0.45]];
465
465
  if (altKm <= KN[0][0]) { mul = KN[0][1]; }
466
466
  else if (altKm >= KN[KN.length-1][0]) { mul = KN[KN.length-1][1]; }
467
467
  else { for (let i = 1; i < KN.length; i++) { if (altKm <= KN[i][0]) {
@@ -1871,7 +1871,7 @@ void main() {
1871
1871
  // no extra sampling, seam-safe, zero FPS cost vs the old single-term version.
1872
1872
  float aoAmt = (uAoAmt > 0.0 ? uAoAmt : 1.0);
1873
1873
  float gorgeAO = 0.0; // canyon AO decoupled (user 2026-06-10: canyons impose ELEVATION only, no material/AO keying)
1874
- float slopeAO = smoothstep(0.20, 0.90, slope) * 0.35; // gentle-slope AO reveals midday relief (0.20->0.90 from 0.45->0.95, peak 0.35)
1874
+ float slopeAO = smoothstep(0.05, 0.55, slope) * 0.35; // gentle-slope AO reveals midday relief (0.20->0.90 from 0.45->0.95, peak 0.35)
1875
1875
  float cliffAO = 1.0 - min(gorgeAO + slopeAO, 0.75) * aoAmt; // cap so faces never go black
1876
1876
  // STRONGER NORMAL-DRIVEN SHADING (user 2026-06-03: 'normals arent affecting the lit view properly').
1877
1877
  // The lit relief was too subtle (witnessed litON SD 6.4 vs flat 5.9 = only ~8% contrast) because