Xonotic Forums
Inline GLSL in Q3 shader files? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Editing and Concept Art (https://forums.xonotic.org/forumdisplay.php?fid=11)
+--- Thread: Inline GLSL in Q3 shader files? (/showthread.php?tid=4228)



Inline GLSL in Q3 shader files? - poVoq - 06-14-2013

Is it possible to add GLSL effects into the standard Q3 like texture shaders used by mappers?
ioQuake3 seems to have a nice way of doing it:
http://openarena.wikia.com/wiki/GLSL#On_to_using_GLSL_programs_within_the_Q3_shader_files

Edit: this topic has some nice downloadable examples:
http://openarena.ws/board/index.php?topic=4767.0


RE: Inline GLSL in Q3 shader files? - Mr. Bougo - 06-15-2013

From having a quick look at the sources, I would say it doesn't...

Is that not a specific OA extension to the Q3 shader format?


RE: Inline GLSL in Q3 shader files? - poVoq - 06-15-2013

It isn't standard q3 shader behavior, but rather a modification of it that was implemented in ioQuake3 I think.

Would be great if something like that was supported in DP also though.


RE: Inline GLSL in Q3 shader files? - poVoq - 06-16-2013

A bit OT but Qfusion has moved the entire Q3 shader handling from the CPU to the GPU.
Besides giving a nice speed boost, this would making inline GLSL shaders probably very easy.
http://www.warsow.net/forum/thread/t/218761#post-218761
Not sure just how difficult it would be to transfer this feature, but at least the general concept could be integrated into DP also.