[qfcc] Define the glsl normalize functions

I think I need to come up with a better way of defining glsl builtins
and the strings are rather ugly (and I don't want to use qfcc system
header files).

iqm.vert now compiles, but doesn't pass validation yet (matrix bugs).
This commit is contained in:
Bill Currie 2024-12-05 00:28:05 +09:00
parent 2a5c9ae45b
commit a9bff23a6a

View file

@ -492,8 +492,8 @@ SRC_LINE
"double dot(genDType x, genDType y) = " SPV(148) ";" "\n"
"@overload vec3 cross(vec3 x, vec3 y) = " GLSL(68) ";" "\n"
"@overload dvec3 cross(dvec3 x, dvec3 y) = " GLSL(68) ";" "\n"
"genFType normalize(genFType x);" "\n"
"genDType normalize(genDType x);" "\n"
"genFType normalize(genFType x) = " GLSL(69) ";" "\n"
"genDType normalize(genDType x) = " GLSL(69) ";" "\n"
"genFType faceforward(genFType N, genFType I, genFType Nref);" "\n"
"genDType faceforward(genDType N, genDType I, genDType Nref);" "\n"
"genFType reflect(genFType I, genFType N);" "\n"