mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 13:39:58 -04:00
Make the water corrections in the runtime, on by default, instead of loading replacement modules from a folder.
The coordinate pair and the absorption guard needed modules made on each PC by tools/projective_recipe.py and a folder named in NX2NAVI_SPV_OVERRIDE, so no player had them. runtime/spirv_water.c makes the recipe's edits on the translation in memory, in the recipe's order: on the NVIDIA profile its three modules are byte for byte the recipe's (RTX 5090, game 1.1.1). vk_pipeline.c keeps the edited modules in a small table, made at first use, and builds a pair from them only when both of its stages were made; a module of another shape is built as it is, with a log line. NX2NAVI_WATER_PROJECTIVE=0 turns the corrections off. tests/water_projective_check.py compares the runtime's edits with the recipe's on made-up modules. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -305,6 +305,10 @@
|
||||
# fix_c0 = 1
|
||||
# New GPU memory pools start zero-filled, as Switch memory does.
|
||||
# fix_zero = 1
|
||||
# Build the water's screen coordinates per pixel and keep its absorption distance at 0 or more: without it water is
|
||||
# drawn as a rectangle over solid ground at the Hyrule Castle moat and the Castle Town canal from some camera
|
||||
# positions, and can turn into a red beam there. 0: the water's shaders as they are.
|
||||
# water_projective = 1
|
||||
# Optimisations, 0 turns each off: skip bindings that did not change, remember shader lookups, reuse the previous
|
||||
# draw's pipeline when its state repeats, remember texture descriptors between draws, update descriptors in bulk,
|
||||
# skip push constants that did not change.
|
||||
|
||||
Reference in New Issue
Block a user