mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[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:
parent
2a5c9ae45b
commit
a9bff23a6a
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue