mirror of
https://github.com/DramaticShape/DramaticShapeVoxelMod.git
synced 2026-08-12 18:00:50 +02:00
c6b38f8d44
The float params were pinned to mediump to match LOVE 11's forward declaration of effect(), because a definition whose precisions differ from the prototype's reads as a second function to some compilers. LOVE 12 declares it under a different precision, so the pin became the mismatch there and the shader stopped compiling -- lakes drew flat on any LOVE 12 + Metal build, iOS included. The qualifier is a define now, and Water.shader compiles the pinned form first and the bare one only if that is refused, so whichever prototype a runtime brought, one of the two agrees with it. The warning fires only when both are refused.