From 931d8ff9df948c41290879acddd65d7740955f6b Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Sat, 4 Jul 2026 00:13:57 +0300 Subject: [PATCH] Fix Vec3f refract code --- Vec3f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vec3f.c b/Vec3f.c index 05faa81..e4a1954 100644 --- a/Vec3f.c +++ b/Vec3f.c @@ -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; }