Fix Vec3f refract code
All checks were successful
CI / build-and-analyze (push) Successful in 40s

This commit is contained in:
2026-07-04 00:13:57 +03:00
parent b6481a26bc
commit 931d8ff9df

View File

@@ -132,7 +132,7 @@ void CgeVec3fRefract(const float in[3], const float norm[3], float eta,
nDotI = CgeVec3fDot(norm, in);
k = 1.0f - eta * eta * (1.0f - nDotI * nDotI);
if (k < 0.0f) {
out[0] = out[1] = 0.0f;
out[0] = out[1] = out[2] = 0.0f;
return;
}