Created attachment 3298[details]
v3 of glsl shader stringify patch
In Rend2, the .glsl shader files are made into long strings in tr_glsl.c, which makes them very hard to edit.
This patch adds the original .glsl files, and changes the Makefile so they are made into strings using sed and compiled as .c files.
Created attachment 3300[details]
v4 of glsl shader stringify patch
Couple fixes in this version, intermediate files are deleted properly now.
This will probably be the version I commit, unless there are any huge bugs. Please test.
Created attachment 3298 [details] v3 of glsl shader stringify patch In Rend2, the .glsl shader files are made into long strings in tr_glsl.c, which makes them very hard to edit. This patch adds the original .glsl files, and changes the Makefile so they are made into strings using sed and compiled as .c files.
Created attachment 3300 [details] v4 of glsl shader stringify patch Couple fixes in this version, intermediate files are deleted properly now. This will probably be the version I commit, unless there are any huge bugs. Please test.