mapspinner 0.1.22 → 0.1.24

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.22",
3
+ "version": "0.1.24",
4
4
  "description": "WebGL2 Earth-scale terrain rendering SDK for interactive globe applications",
5
5
  "main": "src/index.js",
6
6
  "exports": {
package/src/gl-render.js CHANGED
@@ -827,7 +827,7 @@ export async function initMapspinnerRender(gl, opts = {}) {
827
827
  const eh=C('bandEdgesHi',[3500.0,6500.0]); gl.uniform2f(U('bandEdgesHi'), eh[0],eh[1]); // [1600,3200]->[3500,6500] (2026-06-10 'rockface everywhere': tuned pre-4x; with 11.6km peaks everything above 3200m was height-rock -- rescale the treeline)
828
828
  const sn=C('snowEdges',[6000.0,8500.0]); gl.uniform2f(U('snowEdges'), sn[0],sn[1]); // 8000/10500->6000/8500 (user 2026-06-11 'all the snowy mountains have disappeared': only ~1% of land tops 8km (probe 3000-dir sweep, over7k 1.3%), so the whiteout-era snowline left virtually every massif bare; the whiteout's other sources (pre-rescale rock gates, alpine ice bias, tundra grey) are fixed independently, so 6km onset re-caps the real mountains without re-whitening the terrain)
829
829
  gl.uniform1f(U('seaDepthM'), C('seaDepthM',3000.0));
830
- const sr=C('slopeRock',[0.25,0.5]); gl.uniform2f(U('slopeRock'), sr[0],sr[1]); } // [0.25,0.5] USER-SET 2026-06-11 (matches terrain-gen-controls persisted default)
830
+ const sr=C('slopeRock',[0.25,0.55]); gl.uniform2f(U('slopeRock'), sr[0],sr[1]); } // [0.25,0.55] USER-SET 2026-06-12 (matches terrain-gen-controls persisted default)
831
831
  gl.uniform3f(U('sunDir'), sunDir[0],sunDir[1],sunDir[2]);
832
832
  gl.uniform1i(U('displayMode'), cam.displayMode||0);
833
833
  // ---- animated ocean uniforms. time advances the Gerstner waves; amp/choppy read
@@ -628,7 +628,7 @@ highp float composeHeight(vec3 dir0, highp vec2 faceLocal, float tileM){ // W7
628
628
  // anchorpoints (low reliefMul = flat plains, non-mtn, non-wet, non-cold). Fades to zero
629
629
  // by reliefMul ~0.5 so mountains are unaffected.
630
630
  float flatGate = max(0.0, 1.0 - reliefMul * 2.0);
631
- h += snoise3(dir0 * 800.0) * flatGate * uDetailOverlay * 8.0;
631
+ h += snoise3(dir0 * 1200.0) * flatGate * uDetailOverlay * 20.0;
632
632
  // LAKE CARVE + flat-water plane
633
633
  float lakeWetV; float lakeCarveRaw = lakeCarveM(dir0, lakeWetV);
634
634
  // uCarveWide=1 widens the carve CLIMATE gates so the gorge/lake/dune depth fades in over a wide
@@ -37,7 +37,7 @@ const DEFAULTS = {
37
37
  bcLowland: [0.20,0.34,0.15], bcGrass: [0.26,0.40,0.17], bcRock: [0.52,0.43,0.34], // bcRock -> a clearly WARMER TAN-GREY (R>G>B) so it reads as ROCK when lit, not olive-green (the [0.46,0.42,0.37] near-grey read green next to the biome). state.biome OVERRIDES gl-render defaults via window.__gen.
38
38
  bcSnow: [0.92,0.94,0.97],
39
39
  bandEdgesLo: [150.0,1200.0], bandEdgesHi: [3500.0,6500.0], snowEdges: [6000.0,8500.0], // 8000/10500->6000/8500 (user 2026-06-11 'snowy mountains disappeared' -- see gl-render snowEdges note) // snowEdges 5200/7000->8000/10500 (user 2026-06-10 'entire terrain white': the rock-by-height fix unmasked snow gates tuned pre-4x; full snow from 5.2km whitened the 11.6km massifs; coldSnow onset = snowEdges.x*0.5 follows) // bandEdgesHi 1600/3200->3500/6500 (user 2026-06-10 'rockface everywhere'): tuned on the pre-4x terrain; with 11.6km peaks everything above 3200m read rock BY HEIGHT alone -- rescale the treeline to the new elevation range
40
- seaDepthM: 3000.0, slopeRock: [-0.1,0.1], // [-0.1,0.1] USER-SET 2026-06-12
40
+ seaDepthM: 3000.0, slopeRock: [0.25,0.55], // [0.25,0.55] USER-SET 2026-06-12
41
41
  },
42
42
  // REAL-WORLD LOOK overhaul (terraformable lighting/shading levers; applyShaderGlobals sets window
43
43
  // globals; gl-render reads them via _g()). Beer-Lambert ocean, biome sat, mottle, sky-fill relief,