Fix vertical camera flip, breaking crack blending and cloud face culling

This commit is contained in:
Cosmic
2026-10-13 14:04:01 -04:00
parent 383afd81eb
commit 17f0029d08
9 changed files with 458 additions and 141 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env python3
"""Compare fancy cloud exterior/interior faces and nearest-first mesh traversal with 26.3."""
try:
from . import lab, oracle_harness as harness
except ImportError:
import lab, oracle_harness as harness
def make_input(build):
cases = []
for x in (-130, -2, -1, 0, 1, 2, 130):
for z in (-130, -2, -1, 0, 1, 2, 130):
for bottom in (-5, -4, 0, 1):
for empty in range(16):
cases.append(f"0 {x} {z} {bottom} {empty}\n")
for radius in range(11):
for bottom in (-5, -4, 0, 1):
cases.append(f"1 {radius} 0 {bottom} 0\n")
inputs = build / "inputs.txt"
inputs.write_text("".join(cases))
return inputs, len(cases)
def main():
harness.differential("cloud-render-parity", "VanillaCloudRenderOracle", "cloud_fixture", make_input,
"Fancy cloud face culling, interior winding flags and mesh traversal; not full framebuffer parity.",
sources=[lab.ROOT / "crates/horizon-client/src/clouds.rs"])
if __name__ == "__main__":
main()