2021-09-30 16:00:09 +00:00
|
|
|
return ((((((((((inversesqrt(inputVal.x) == expected.x && inversesqrt(inputVal.xy) == expected.xy) && inversesqrt(inputVal.xyz) == expected.xyz) && inversesqrt(inputVal) == expected) && 1.0 == expected.x) && vec2(1.0, 0.5) == expected.xy) && vec3(1.0, 0.5, 0.25) == expected.xyz) && vec4(1.0, 0.5, 0.25, 0.125) == expected) && inversesqrt(-1.0) == expected.x) && inversesqrt(vec2(-1.0, -4.0)) == expected.xy) && inversesqrt(vec3(-1.0, -4.0, -16.0)) == expected.xyz) && inversesqrt(negativeVal) == expected ? colorGreen : colorRed;
|