mirror of
https://github.com/sal063/AC6_recomp
synced 2026-08-22 15:11:33 -04:00
98020a02b2
The water shader's wave-normal lookup sits inside control flow this translator generates from the guest's predication and jumps, where DXBC derivatives are undefined: the gradient collapses to zero along the ocean mesh's seams, the LOD clamps to the finest mip, and grazing Fresnel amplifies that into a bright line. Computing the gradients in the prologue, where the quad is uniform, restores them.