mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-25 16:14:48 +01:00
"highest" chose level 4 for every model, and render_model_parts draws nothing for a permutation without geometry there, so those parts disappeared; and a10's cryotube's top level (a cutoff of 3000) is its inside only, which "highest", and "native" at 4K, showed from outside. With display.model_detail other than "stock", each permutation now draws its most detailed level at or below the model's that has geometry, and a level with a cutoff over 1000 only while the camera is inside the model's bounding sphere (port/linux/game/model_detail.c), from eltanschauung's #282. "stock" draws the model's level as before; so does rasterizer_debug_model_lod. Checked: python -m pytest -q tools/harness (#282's lod-* cases in the transparent enclosure test and its interior, bounds and permutation cases in test_model_detail.py, with negative controls); models.c, d3d8_gl.c and model_detail.c compile (-fsyntax-only) with the Linux, Android guest and web commands.