mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
suppress warnings
This commit is contained in:
@@ -1591,11 +1591,13 @@ TEST_IMPL(GLM_PREFIX, vec4_refract) {
|
||||
/* Air to Glass (eta = 1.0 / 1.5) */
|
||||
eta = 1.0f / 1.5f;
|
||||
r = GLM(vec4_refract)(v, N, eta, dest);
|
||||
ASSERT(r == true);
|
||||
ASSERT(dest[1] < -sqrtf(0.5f)); // Expect bending towards the normal
|
||||
|
||||
/* Glass to Water (eta = 1.5 / 1.33) */
|
||||
eta = 1.5f / 1.33f;
|
||||
r = GLM(vec4_refract)(v, N, eta, dest);
|
||||
ASSERT(r == true);
|
||||
ASSERT(dest[1] < -sqrtf(0.5f)); // Expect bending towards the normal, less bending than air to glass
|
||||
|
||||
/* Diamond to Air (eta = 2.42 / 1.0) */
|
||||
|
||||
Reference in New Issue
Block a user