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

This reverts commit ebec909487.

Khronos decided glslang was originally correct, and the specifications
are incorrect.
This commit is contained in:
John Kessenich
2018-06-19 09:43:09 -06:00
parent bea08fe02a
commit 2a805d9cea
7 changed files with 674 additions and 678 deletions

4
Test/spv.float64.frag Executable file → Normal 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, f);
f64v3 = refract(f64v1, f64v2, f64);
}
void builtinMatrixFuncs()