From a9bff23a6a55f418bc3e60499030e208c48215e9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 5 Dec 2024 00:28:05 +0900 Subject: [PATCH] [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). --- tools/qfcc/source/glsl-builtins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/glsl-builtins.c b/tools/qfcc/source/glsl-builtins.c index 7a9b7dfad..2c357005e 100644 --- a/tools/qfcc/source/glsl-builtins.c +++ b/tools/qfcc/source/glsl-builtins.c @@ -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"