fix: finalize GPU particle time interpolation
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled

This commit is contained in:
OpenAI Codex
2026-09-02 22:07:01 +08:00
parent d4c17fc8b0
commit 5dd4dbf496
11 changed files with 86 additions and 16 deletions

View File

@@ -67,7 +67,10 @@ void main() {
position = v_uv;
velocity = vec2(0.0);
}
position = fract(position + velocity * u_pass.y * 0.004);
// Field V remains north-positive. Mercator Y increases southward, so
// convert only at the physical-velocity -> map-displacement boundary.
vec2 mercatorVelocity = vec2(velocity.x, -velocity.y);
position = fract(position + mercatorVelocity * u_pass.y * 0.004);
if (any(isnan(velocity))) position = v_uv;
fragColor = vec4(position, fract(previous.b + 0.03125 * u_pass.y), 1.0);
} else if (mode < 1.5) {