GLSL: Fix #1279: refract does not have a double-type eta.

This commit is contained in:
John Kessenich
2018-05-17 10:42:10 -06:00
parent a0044f4fee
commit ebec909487
7 changed files with 675 additions and 671 deletions

4
Test/spv.float64.frag Normal file → Executable file
View File

@@ -204,7 +204,7 @@ void builtinGeometryFuncs()
{
float64_t f64;
f64vec3 f64v1, f64v2, f64v3;
float f;
f64 = length(f64v1);
f64 = distance(f64v1, f64v2);
f64 = dot(f64v1, f64v2);
@@ -212,7 +212,7 @@ void builtinGeometryFuncs()
f64v2 = normalize(f64v1);
f64v3 = faceforward(f64v1, f64v2, f64v3);
f64v3 = reflect(f64v1, f64v2);
f64v3 = refract(f64v1, f64v2, f64);
f64v3 = refract(f64v1, f64v2, f);
}
void builtinMatrixFuncs()