Bug 5808 - Include and use .glsl files in source
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: PC All
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-11-22 21:02 EST by James Canete
Modified: 2012-12-03 20:58:29 EST
0 users

See Also:


Attachments
v3 of glsl shader stringify patch (138.41 KB, patch)
2012-11-22 21:02 EST, James Canete
v4 of glsl shader stringify patch (138.91 KB, patch)
2012-11-29 08:23 EST, James Canete

Description James Canete 2012-11-22 21:02:08 EST
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.
Comment 1 James Canete 2012-11-29 08:23:43 EST
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.
Comment 2 James Canete 2012-12-03 20:58:29 EST
Committed in r2370.