Modern Apps git

← Modern-Apps.git

map: fix globe/moon/terrain shader bugs and Adreno moon crash

Commit
524a2a749390f2756f044e67bea41a98e1af430c
Author
vayun-mathur <[email protected]>
When
2026-10-24 21:41 UTC (1 month ago)
Parents
c7e0670

Diff

library/map/src/main/rust/shaders/fill_globe.vert
diff --git a/library/map/src/main/rust/shaders/fill_globe.vert b/library/map/src/main/rust/shaders/fill_globe.vertindex bc5e259200..42388199a7 100644--- a/library/map/src/main/rust/shaders/fill_globe.vert+++ b/library/map/src/main/rust/shaders/fill_globe.vert@@ -15,13 +15,11 @@ // `misc.y`, tile fade in `morph.x`, draped-z scale in `morph.z`; `morph.y` // keeps the dash phase speed the line fragment reads) — the limb discard is // the only fragment difference from `fill.frag`, so opacity, fade and coverage-// match the flat map exactly. Vertices on the far side (z < 0) are pulled-// are pulled behind the near plane so the triangle clips away; straddling-// triangles clip at the limb per-fragment via the varying. Depth is `1 - z`-// mapped into [0, 1): the sub-sphere centre is deepest, the limb is nearest —-// coarser ancestor tiles drawn first lose the depth test to finer descendants-// drawn over them, which is the same coarsest-first order the flat loop relies-// on. Screen y follows the CPU anchor convention (`halfH - y`, north up).+// match the flat map exactly. Far-side vertices (z < 0) are emitted at the far+// plane and the fragment stage discards wherever the interpolated z is negative,+// so straddling triangles cut cleanly at the limb. Depth is `1 - z`: the+// sub-camera point is nearest (0), the limb farthest (1). Screen y follows the+// CPU anchor convention (`halfH - y`, north up).  layout(location = 0) in vec3 inPosition; @@ -37,13 +35,13 @@ layout(location = 0) out float outZ;  const float PI = 3.141592653589793; -// `tileToClip[2]` third row: (ox, oy, span) packed by `globe_tile_to_clip`.-// Column-major: m[2] = row0-col2, m[6] = row1-col2, m[10] = row2-col2.+// `globe_tile_to_clip` packs (ox, oy, span) into m[2], m[6], m[10]: row 2 of+// columns 0..2, i.e. `tileToClip[0][2]`, `[1][2]`, `[2][2]` in GLSL. // Translation column (m[12]/m[13]): centre lon/lat in degrees.  void main() {-    float ox = push.tileToClip[2][0];-    float oy = push.tileToClip[2][1];+    float ox = push.tileToClip[0][2];+    float oy = push.tileToClip[1][2];     float span = push.tileToClip[2][2];     // Tile-local (u, v) -> normalised world (0..1 across the planet).     float wx = ox + inPosition.x * span;@@ -59,19 +57,16 @@ void main() {     float latR = radians(lat);     float dLon = radians(lon - cLon);     float cLatR = radians(cLat);-    float x1 = cos(latR) * cos(dLon);-    float z1 = -cos(latR) * sin(dLon);-    float y1 = sin(latR);+    // Must match `camera::globe_point`.     float sy = sin(cLatR);     float cy = cos(cLatR);-    float x = x1;-    float y = y1 * cy - z1 * sy;-    float z = y1 * sy + z1 * cy;-    // Globe radius (Dp) from the matrix scale: m[0] = kx * r with kx = 2/width;-    // half-viewport (Dp) rides in `morph.xy` on the globe branch exactly as the-    // record path pushes it (see the globe branch in `record.rs`).-    float hw = push.morph.x;-    float hh = push.morph.y;+    float x = cos(latR) * sin(dLon);+    float y = cy * sin(latR) - sy * cos(latR) * cos(dLon);+    float z = sy * sin(latR) + cy * cos(latR) * cos(dLon);+    // Globe radius (Dp) from the matrix scale: m[0] = kx * r with kx = 2/width.+    // The record path pushes morph = (fade, halfW, r, halfH) on the globe branch.+    float hw = push.morph.y;+    float hh = push.morph.w;     float r = push.morph.z;     float kx = push.tileToClip[0][0] / max(r, 1e-6);     float ky = push.tileToClip[1][1] / max(r, 1e-6);@@ -81,8 +76,7 @@ void main() {     float sy2 = y * r;     float cx = kx * sx + (kx * hw - 1.0);     float cyy = -(ky * sy2) + (ky * hh - 1.0);-    // Depth: limb (z=0) -> 0, sub-camera point (z=1) -> ~1. Nearer (larger z)-    // wins LESS: depth = 1 - z mapped in.+    // Depth: sub-camera point (z=1) -> 0, limb (z=0) -> 1, so nearer wins LESS.     float depth = clamp(1.0 - z, 0.0, 1.0);     outZ = z;     if (z < 0.0) {
library/map/src/main/rust/shaders/line_globe.vert
diff --git a/library/map/src/main/rust/shaders/line_globe.vert b/library/map/src/main/rust/shaders/line_globe.vertindex ca1557ee30..b434708e44 100644--- a/library/map/src/main/rust/shaders/line_globe.vert+++ b/library/map/src/main/rust/shaders/line_globe.vert@@ -9,15 +9,10 @@ // height (`inZ`) is ignored on the globe: relief at globe zoom is sub-pixel. // // Push layout: identical block to the flat path. `tileToClip` is the globe-// matrix (2x2 = globe scale, third row = tile ox/oy/span, translation column =+// matrix (2x2 = globe scale, row 2 = tile ox/oy/span, translation column = // centre lon/lat degrees), `misc.xyzw` keep their flat meaning (tile px,-// edge AA, lateral shift, clock), and `morph` keeps its flat meaning too-// (fade in x, dash phase speed in y, draped-z scale in z). The half-viewport-// (Dp) rides in `morph.xy` on the globe branch exactly as `record.rs` pushes-// it — note the shaders read the radius from `morph.z`, not from `.xy`.-// edge AA, lateral shift, clock), and `morph` keeps its flat meaning too-// (fade in x, draped-z scale in z). The half-viewport (Dp) rides in-// `morph.xy` on the globe branch exactly as `record.rs` pushes it.+// edge AA, lateral shift, clock). `morph` is (fade, halfW, radius, halfH) on+// the globe branch, as `record.rs` pushes it. layout(location = 0) in vec2 inPosition; layout(location = 1) in vec2 inNormal; layout(location = 2) in vec2 inExtrude;@@ -49,8 +44,8 @@ void main() {     vec2 offsetTile = inNormal * (offsetPx / tilePx);     vec2 bent = inPosition + offsetTile; -    float ox = push.tileToClip[2][0];-    float oy = push.tileToClip[2][1];+    float ox = push.tileToClip[0][2];+    float oy = push.tileToClip[1][2];     float span = push.tileToClip[2][2];     float wx = ox + bent.x * span;     float wy = oy + bent.y * span;@@ -63,19 +58,17 @@ void main() {     float latR = radians(lat);     float dLon = radians(lon - cLon);     float cLatR = radians(cLat);-    float x1 = cos(latR) * cos(dLon);-    float z1 = -cos(latR) * sin(dLon);-    float y1 = sin(latR);+    // Must match `camera::globe_point`.     float sy = sin(cLatR);     float cy = cos(cLatR);-    float x = x1;-    float y = y1 * cy - z1 * sy;-    float z = y1 * sy + z1 * cy;+    float x = cos(latR) * sin(dLon);+    float y = cy * sin(latR) - sy * cos(latR) * cos(dLon);+    float z = sy * sin(latR) + cy * cos(latR) * cos(dLon);     float r = push.morph.z;     float kx = push.tileToClip[0][0] / max(r, 1e-6);     float ky = push.tileToClip[1][1] / max(r, 1e-6);-    float hw = push.morph.x;-    float hh = push.morph.y;+    float hw = push.morph.y;+    float hh = push.morph.w;     // Screen point y-up like the CPU anchor math (`halfH - y`): north renders up.     float cx = kx * (x * r) + (kx * hw - 1.0);     float cyy = -(ky * (y * r)) + (ky * hh - 1.0);
library/map/src/main/rust/shaders/moon.frag
diff --git a/library/map/src/main/rust/shaders/moon.frag b/library/map/src/main/rust/shaders/moon.fragindex f0bafff3c8..d4c19ec1e1 100644--- a/library/map/src/main/rust/shaders/moon.frag+++ b/library/map/src/main/rust/shaders/moon.frag@@ -3,15 +3,13 @@ // Moon fragment: LROC color textured by selenographic lon/lat, shaded by the // LDEM-derived normal with a fixed sun direction. //-// `inDisc` (0..1 across the disc) maps to the visible hemisphere around the-// camera centre (`color.xy` = centre lon/lat degrees): the hemisphere is the-// set of selenographic points within 90° of the centre, so disc offset (dx, dy)-// is an orthographic projection of the unit-sphere east/north components and-// the lon/lat inverts through the same east/north/up basis the globe math uses+// `inDisc` is -1..1 across the disc's bounding square (y down, Vulkan clip).+// Outside the unit circle is discarded; inside, the orthographic hemisphere z+// and the sphere normal are recovered per fragment, and the lon/lat inverts+// through the same east/north/up basis the globe math uses // (`globe_point`/`globe_lonlat`). The color texture is equirectangular-// -180..180/-90..90, sampled directly. The DEM texture (same layout, RG-packed-// uint16 half-metres + 20000) perturbs the normal for relief shading; large-// structure comes from the geometry-side displacement, fine grain from here.+// -180..180/-90..90. The DEM (same layout, RG-packed uint16 half-metres ++// 20000) perturbs the normal for relief shading. // // Lighting is a single fixed sun from the east-equatorial direction: enough to // read relief, deliberately not a day/night terminator (no sun-position input@@ -19,8 +17,6 @@ // flat texture lacks.  layout(location = 0) in vec2 inDisc;-layout(location = 1) in float inZ;-layout(location = 2) in vec3 inNormal; layout(location = 0) out vec4 outColor;  layout(push_constant) uniform Push {@@ -28,50 +24,61 @@ layout(push_constant) uniform Push {     // xy: camera centre lon/lat (degrees) — the visible-hemisphere centre.     vec4 color;     vec4 line;-    // x: unused (radius implied by the quad); z: DEM relief strength.+    // z: DEM relief strength (normal nudge per metre).     vec4 misc;     vec4 morph; } push; layout(set = 0, binding = 0) uniform sampler2D moonColor;-layout(set = 1, binding = 1) uniform sampler2D moonDem;+layout(set = 0, binding = 1) uniform sampler2D moonDem;  const float PI = 3.141592653589793; +// The height bytes are split across R and G, so filtering would blend the high+// byte of one texel with another's and spike at every byte rollover. Fetch the+// exact texel instead: longitude wraps, latitude clamps at the poles.+float demMetres(vec2 uv) {+    ivec2 size = textureSize(moonDem, 0);+    ivec2 p = ivec2(+        int(fract(uv.x) * float(size.x)) % size.x,+        clamp(int(uv.y * float(size.y)), 0, size.y - 1));+    vec4 t = texelFetch(moonDem, p, 0);+    return (round(t.r * 255.0) * 256.0 + round(t.g * 255.0) - 20000.0) * 0.5;+}+ void main() {-    if (inZ < 0.0) discard;-    // Disc -> unit-sphere east/north (orthographic): disc spans -1..1.-    vec2 en = (inDisc * 2.0 - 1.0);-    en.y = -en.y; // disc y-down to north-up.-    float z = inZ;-    // Invert the east/north/up basis (mirrors `globe_lonlat`): recover ECEF.+    // Disc y-down to north-up.+    vec2 en = vec2(inDisc.x, -inDisc.y);+    float r2 = dot(en, en);+    if (r2 > 1.0) discard;+    float z = sqrt(1.0 - r2);+    vec3 sphereNormal = vec3(en, z);+    // Nearer (larger z) wins LESS, matching the globe tiles' depth regime.+    gl_FragDepth = 1.0 - z * 0.5;++    // Invert the east/north/up basis (mirrors `globe_lonlat`).     float cLatR = radians(push.color.y);     float sy = sin(cLatR);     float cy = cos(cLatR);-    float x = en.x;-    float y = en.y;-    // Unit-sphere point in basis: (x, y, z). ECEF: ex = x; ey = cy*y + sy*z; ez = -sy*y + cy*z.-    float ey = cy * y + sy * z;-    float ez = -sy * y + cy * z;+    float ey = cy * en.y + sy * z;+    float ez = -sy * en.y + cy * z;     float lat = asin(clamp(ey, -1.0, 1.0)) * 180.0 / PI;-    float lon = push.color.x + atan(x, ez) * 180.0 / PI;+    float lon = push.color.x + atan(en.x, ez) * 180.0 / PI;     lon = mod(lon + 180.0, 360.0) - 180.0;-    // Equirectangular sample.     vec2 uv = vec2((lon + 180.0) / 360.0, (90.0 - lat) / 180.0);     vec3 albedo = texture(moonColor, uv).rgb;-    // DEM relief: RG-packed uint16, metres = (v - 20000) / 2. Central-    // differences for a gradient in texture space, scaled to a normal nudge.-    vec2 texel = 1.0 / vec2(textureSize(moonColor, 0));-    float hC = (texture(moonDem, uv).r * 255.0 * 256.0 + texture(moonDem, uv).g * 255.0 - 20000.0) / 2.0;-    float hX = (texture(moonDem, uv + vec2(texel.x, 0.0)).r * 255.0 * 256.0 + texture(moonDem, uv + vec2(texel.x, 0.0)).g * 255.0 - 20000.0) / 2.0;-    float hY = (texture(moonDem, uv + vec2(0.0, texel.y)).r * 255.0 * 256.0 + texture(moonDem, uv + vec2(0.0, texel.y)).g * 255.0 - 20000.0) / 2.0;++    // Forward differences one DEM texel east and south. Equirectangular texels+    // span equal angles on both axes, so the two gradients share one scale.+    vec2 texel = 1.0 / vec2(textureSize(moonDem, 0));+    float hC = demMetres(uv);+    float hX = demMetres(uv + vec2(texel.x, 0.0));+    float hY = demMetres(uv + vec2(0.0, texel.y));     float relief = push.misc.z;-    vec3 n = normalize(inNormal + vec3(-(hX - hC) * relief * texel.y / max(texel.x, 1e-9), (hY - hC) * relief, 0.0));-    // Fixed sun from the east, slightly above equatorial: reads relief without-    // needing a sun-position input on this path.+    // Rising east tilts the normal west; rising south (uv.y grows southward)+    // tilts it north.+    vec3 n = normalize(sphereNormal + vec3(-(hX - hC), hY - hC, 0.0) * relief);     vec3 sun = normalize(vec3(0.8, 0.25, 0.55));     float diff = clamp(dot(n, sun), 0.0, 1.0);-    // Limb darkening: the texture has no spherical falloff baked in.-    float limb = clamp(z, 0.0, 1.0);-    float shade = (0.25 + 0.75 * diff) * (0.35 + 0.65 * limb);+    float shade = (0.25 + 0.75 * diff) * (0.35 + 0.65 * z);     outColor = vec4(albedo * shade, 1.0); }
library/map/src/main/rust/shaders/moon.vert
diff --git a/library/map/src/main/rust/shaders/moon.vert b/library/map/src/main/rust/shaders/moon.vertindex 716e43cc3d..a0285128e9 100644--- a/library/map/src/main/rust/shaders/moon.vert+++ b/library/map/src/main/rust/shaders/moon.vert@@ -1,27 +1,19 @@ #version 450 -// Moon vertex: a full-screen disc quad bent onto the lunar sphere.+// Moon vertex: the shared unit quad, scaled to the globe disc. //-// The quad arrives in clip space already (the record path pushes an identity-// matrix); this shader interprets its local -1..1 as disc coordinates, keeps-// the inside of the unit disc, and bends it onto the orthographic sphere with-// LDEM relief: the DEM sample displaces the radius outward before projection,-// so craters and maria rims read as relief under the terminator shading in the-// fragment stage. Outside the disc is clipped away.+// The record path pushes a matrix that maps the quad's -1..1 to the disc's+// bounding square (radius in clip units, centred on the viewport). Everything+// spherical — the limb cut, the hemisphere z, the normal, the depth — is done+// per fragment in `moon.frag`: the quad has only four corners, all outside the+// unit disc, so a per-vertex disc test would discard the whole moon. // // Push layout (the stock `Push` block):-//   `tileToClip` is IDENTITY (unused; positions derive from `inLocal` + push).-//   `color` carries the camera centre lon/lat (degrees) in xy (the sphere basis)-//     — the Moon has no "camera target moves the texture": the texture is fixed-//     to selenographic lon/lat, and the camera centre only sets the basis.-//   `line` is unused (zeros).-//   `misc.xy` is the globe radius in Dp; `misc.z` the DEM relief scale-//     (Dp per unit-packed-height); `misc.w` the frame clock (unused here).-//   `morph.xy` is the half-viewport in Dp; `morph.zw` unused.-layout(location = 0) in vec2 inLocal;+//   `tileToClip` the disc matrix described above.+//   `color.xy` the camera centre lon/lat (degrees), read by the fragment stage.+//   `misc.z` the DEM relief strength, read by the fragment stage.+layout(location = 0) in vec3 inLocal; layout(location = 0) out vec2 outDisc;-layout(location = 1) out float outZ;-layout(location = 2) out vec3 outNormal; layout(push_constant) uniform Push {     mat4 tileToClip;     vec4 color;@@ -31,20 +23,6 @@ layout(push_constant) uniform Push { } push;  void main() {-    // Disc coords: -1..1, y down (Vulkan clip). Radius 1 is the limb.-    float r2 = dot(inLocal, inLocal);-    outDisc = inLocal * 0.5 + 0.5;-    if (r2 > 1.0) {-        // Outside the disc: clip away.-        gl_Position = vec4(2.0, 2.0, 1.0, 1.0);-        outZ = -1.0;-        outNormal = vec3(0.0, 0.0, -1.0);-        return;-    }-    float z = sqrt(max(0.0, 1.0 - r2));-    outZ = z;-    // Sphere normal in view space (viewer looks down -z at the +z hemisphere;-    // Vulkan y-down, so flip y to keep normals right-handed with the texture).-    outNormal = normalize(vec3(inLocal.x, -inLocal.y, z));-    gl_Position = vec4(inLocal, 1.0 - z * 0.5, 1.0);+    outDisc = inLocal.xy;+    gl_Position = push.tileToClip * vec4(inLocal.xy, 0.0, 1.0); }
library/map/src/main/rust/shaders/road_surface_globe.vert
diff --git a/library/map/src/main/rust/shaders/road_surface_globe.vert b/library/map/src/main/rust/shaders/road_surface_globe.vertindex 080f29882b..c47d6de1da 100644--- a/library/map/src/main/rust/shaders/road_surface_globe.vert+++ b/library/map/src/main/rust/shaders/road_surface_globe.vert@@ -8,8 +8,7 @@ // untouched — `road_surface.frag` logic is shared with the limb discard added // (see `road_surface_globe.frag`). `misc`/`morph` keep their flat meaning: // tile px in `misc.x`, edge AA in `misc.y`, yellow-centre flag in `misc.z`,-// fade in `morph.x`, draped-z scale in `morph.z`; half-viewport (Dp) rides in-// `morph.xy` on the globe branch (radius in `morph.z`, not `.xy`).+// and `morph` is (fade, halfW, radius, halfH) on the globe branch. layout(location = 0) in vec2 inPosition; layout(location = 1) in vec2 inNormal; layout(location = 2) in float inT;@@ -36,8 +35,8 @@ void main() {     vec2 offsetTile = inNormal * (inT * halfWidthPx / tilePx);     vec2 bent = inPosition + offsetTile; -    float ox = push.tileToClip[2][0];-    float oy = push.tileToClip[2][1];+    float ox = push.tileToClip[0][2];+    float oy = push.tileToClip[1][2];     float span = push.tileToClip[2][2];     float wx = ox + bent.x * span;     float wy = oy + bent.y * span;@@ -50,19 +49,17 @@ void main() {     float latR = radians(lat);     float dLon = radians(lon - cLon);     float cLatR = radians(cLat);-    float x1 = cos(latR) * cos(dLon);-    float z1 = -cos(latR) * sin(dLon);-    float y1 = sin(latR);+    // Must match `camera::globe_point`.     float sy = sin(cLatR);     float cy = cos(cLatR);-    float x = x1;-    float y = y1 * cy - z1 * sy;-    float z = y1 * sy + z1 * cy;+    float x = cos(latR) * sin(dLon);+    float y = cy * sin(latR) - sy * cos(latR) * cos(dLon);+    float z = sy * sin(latR) + cy * cos(latR) * cos(dLon);     float r = push.morph.z;     float kx = push.tileToClip[0][0] / max(r, 1e-6);     float ky = push.tileToClip[1][1] / max(r, 1e-6);-    float hw = push.morph.x;-    float hh = push.morph.y;+    float hw = push.morph.y;+    float hh = push.morph.w;     // Screen point y-up like the CPU anchor math (`halfH - y`): north renders up.     float cx = kx * (x * r) + (kx * hw - 1.0);     float cyy = -(ky * (y * r)) + (ky * hh - 1.0);
library/map/src/main/rust/shaders/symbol_globe.vert
diff --git a/library/map/src/main/rust/shaders/symbol_globe.vert b/library/map/src/main/rust/shaders/symbol_globe.vertindex 32a44fc5ac..af74104eaa 100644--- a/library/map/src/main/rust/shaders/symbol_globe.vert+++ b/library/map/src/main/rust/shaders/symbol_globe.vert@@ -29,22 +29,23 @@ layout(push_constant) uniform Push {  const float PI = 3.141592653589793; +// Must match `camera::globe_point`. vec3 globeOf(float lon, float lat, float cLon, float cLat) {     float latR = radians(lat);     float dLon = radians(lon - cLon);     float cLatR = radians(cLat);-    float x1 = cos(latR) * cos(dLon);-    float z1 = -cos(latR) * sin(dLon);-    float y1 = sin(latR);     float sy = sin(cLatR);     float cy = cos(cLatR);-    return vec3(x1, y1 * cy - z1 * sy, y1 * sy + z1 * cy);+    return vec3(+        cos(latR) * sin(dLon),+        cy * sin(latR) - sy * cos(latR) * cos(dLon),+        sy * sin(latR) + cy * cos(latR) * cos(dLon)); }  void main() {     outUv = inUv;-    float ox = push.tileToClip[2][0];-    float oy = push.tileToClip[2][1];+    float ox = push.tileToClip[0][2];+    float oy = push.tileToClip[1][2];     float span = push.tileToClip[2][2];     // Anchor tile-local -> lon/lat.     float awx = ox + inAnchor.x * span;@@ -61,18 +62,14 @@ void main() {     float ky = push.tileToClip[1][1] / max(r, 1e-6);     float hw = push.morph.x;     float hh = push.morph.y;-    // Screen offset of this corner from its anchor: tile-local delta scaled by-    // the matrix's flat 2x2. The flat linear part maps tile units to clip; on-    // the globe branch that 2x2 is the globe scale (kx*r per tile-span unit),-    // so reuse it directly: off_clip = flat2x2 * delta_tile.+    // Screen offset of this corner from its anchor. Labels are shaped in flat tile-local+    // units, where one unit is `tile_span_dp = span * world_size = span * 2r` Dp; the globe+    // 2x2 is `k * r`, so the delta is scaled by `2 * span` to keep the flat screen size.     float m00 = push.tileToClip[0][0];     float m01 = push.tileToClip[0][1];     float m10 = push.tileToClip[1][0];     float m11 = push.tileToClip[1][1];-    // The 2x2 maps normalised-world delta (span-scaled tile delta) to clip:-    // delta_world = delta_tile * span, clip = 2x2 * delta_world. With the globe-    // matrix the 2x2 already includes r, so scale by span only.-    vec2 dTile = (inPosition - inAnchor) * span;+    vec2 dTile = (inPosition - inAnchor) * (2.0 * span);     vec2 off = vec2(m00 * dTile.x + m10 * dTile.y, m01 * dTile.x + m11 * dTile.y);     float ax = kx * (a.x * r) + (kx * hw - 1.0);     float ay = -(ky * (a.y * r)) + (ky * hh - 1.0);@@ -81,6 +78,7 @@ void main() {     if (a.z < 0.0) {         gl_Position = vec4(ax, ay, 1.0, 1.0);     } else {-        gl_Position = vec4(ax + off.x, ay - off.y, depth, 1.0);+        // Tile +y and clip +y both point down the screen, so the offset adds unflipped.+        gl_Position = vec4(ax + off.x, ay + off.y, depth, 1.0);     } }
library/map/src/main/rust/src/vulkan/pipeline/pipelines_attrs.rs
diff --git a/library/map/src/main/rust/src/vulkan/pipeline/pipelines_attrs.rs b/library/map/src/main/rust/src/vulkan/pipeline/pipelines_attrs.rsindex 8e3499f4da..95e7fd84ef 100644--- a/library/map/src/main/rust/src/vulkan/pipeline/pipelines_attrs.rs+++ b/library/map/src/main/rust/src/vulkan/pipeline/pipelines_attrs.rs@@ -92,7 +92,7 @@ pub(super) fn terrain_attributes() -> [vk::VertexInputAttributeDescription; 2] {         vk::VertexInputAttributeDescription::default()             .location(1)             .binding(0)-            .format(vk::Format::R32G32_SFLOAT)+            .format(vk::Format::R32G32B32_SFLOAT)             .offset(12),     ] }
library/map/src/main/rust/src/vulkan/pipeline/pipelines_globe.rs
diff --git a/library/map/src/main/rust/src/vulkan/pipeline/pipelines_globe.rs b/library/map/src/main/rust/src/vulkan/pipeline/pipelines_globe.rsindex 13ae5dd2c0..eb76958d9b 100644--- a/library/map/src/main/rust/src/vulkan/pipeline/pipelines_globe.rs+++ b/library/map/src/main/rust/src/vulkan/pipeline/pipelines_globe.rs@@ -2,7 +2,7 @@ //! tile-local geometry onto the orthographic sphere. //! //! Split from `pipelines.rs` (file-length limit). Same vertex formats as the-//! flat twins; depth 1 - z (limb 0, sub-camera point ~1) with the pass cleared+//! flat twins; depth 1 - z (sub-camera point 0, limb 1) with the pass cleared //! to 1.0, so nearer (larger z) wins the LESS test. use super::assemble::build; use super::state::{Depth, Stencil};