Commit Graph

39 Commits

Author SHA1 Message Date
orbea
28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
Johannes Schickel
3a658172f8 (tools/cg2glsl.py) Write uniform declarations for fragment shaders.
Formerly, the fragment shader conversion pass did not write required uniform
declarations. This resulted in use of undefined symbols in some cases. In turn
conversion of some shaders to GLSL were broken.

This fixes conversion of some shaders, most prominently the hq shaders.
2016-03-05 12:49:21 +01:00
Twinaphex
e8d266cb9d Revert "Revert "Add support for shader pass feedback."" 2015-08-30 18:37:41 +02:00
Twinaphex
ad1825ca50 Revert "Add support for shader pass feedback." 2015-08-30 18:21:07 +02:00
CautiousAlbino
aee5e74001 Add support for shader pass feedback. 2015-08-30 16:23:55 +02:00
Felix Laurie von Massenbach
c5930e5a0c More refactoring of cg2glsl.py. 2015-08-08 23:04:03 +01:00
Felix Laurie von Massenbach
867b83e352 More refactoring of cg2glsl.py. 2015-08-08 22:38:08 +01:00
Felix Laurie von Massenbach
f272431b5d Refactor cg2glsl.py. 2015-08-08 22:37:50 +01:00
Felix Laurie von Massenbach
da4cc54b8c Add a python2 compatability warning to cg2glsl.py. 2015-08-08 20:48:48 +01:00
Felix Laurie von Massenbach
1541db37e9 Make cg2glsl.py comply with PEP8. 2015-08-08 20:45:39 +01:00
Felix Laurie von Massenbach
1bfd83932c Fix indentation in cg2glsl.py. 2015-08-08 20:32:58 +01:00
Andrés
5ba31807b4 Revert
In debian if you have both you will have python for python2, and python3 for python3, this makes the script unusable in such cases because it will resort to the first one found on the path.
2015-03-21 17:06:38 -05:00
T. Joseph Carter
cb0f3d844f Make cg2glsl.py fail gracefully if python is too old 2015-03-14 19:57:14 -07:00
Themaister
59c64f9c5a Fix off-by-one error with PASSPREV.
Fix include bug in cg2glsl.py.
2014-05-16 16:17:02 +02:00
Themaister
880dec8c7f Clarify cg2glsl requires cgc 3.1. 2013-10-07 23:09:49 +02:00
Themaister
4627c106e4 Fix NTSC shaders by preprocessing first.
If vertex shader is in an #include, it wouldn't get column_major fix
applied.
2013-10-07 23:06:41 +02:00
Themaister
fa39a1ec39 Add -quiet and -I to cg2glsl.
Fixes cases where #include is used.
2013-10-07 22:50:48 +02:00
twinaphex
dccff3905d (cg2glsl.py) change suceeded to succeeded 2013-09-19 02:47:45 +02:00
Themaister
f8c385a28c Fix cg2glsl when uniform half4x4 is used. 2013-08-18 18:06:55 +02:00
Themaister
846e72ad1e Allow spaces for matrix hack. 2013-08-13 16:58:43 +02:00
Themaister
ef97f05dff Use correct texture() in core. 2013-08-11 01:09:17 +02:00
Themaister
ad12cc8ab6 Fix some miscompilations with unused variables. 2013-08-11 01:09:17 +02:00
Themaister
1a071c4992 Updates and fixes for cg2glsl. 2013-08-11 01:09:17 +02:00
Themaister
954727aa79 Fixups for cg2glsl. 2013-08-11 01:09:14 +02:00
Themaister
2aaa148adc Fixes to cg2glsl. 2013-08-11 00:56:00 +02:00
Themaister
184e407e5d Work around awkward GLSL compiler bug on iOS. 2013-05-31 14:04:20 +02:00
Themaister
0457e41ceb Fix cg2glsl batch when dir has slash suffix. 2013-05-20 23:46:40 +02:00
Themaister
d54427983b Add automatic CGP -> GLSLP conversion. 2013-05-10 00:06:42 +02:00
Themaister
6193491e82 Fix wrong sampler translation in cg2glsl. 2013-04-16 15:44:41 +02:00
Themaister
48e7175e4b Improve compat in cg2glsl.
Allow vertex samplers, and fix "empty struct" bug.
2013-04-16 15:31:28 +02:00
Themaister
3ae5662dd2 Fixups in cg2glsl.
Don't allow struct names and varyings to collide.
Also add fixes for *.texture_size for PREV/PASS/ORIG, etc.
2013-04-13 16:34:04 +02:00
Themaister
6480f564c1 Treat _output_dummy_size as non-varying as well. 2013-04-13 13:47:13 +02:00
Themaister
ec9ffce56f Replace IN.* in a cleaner way. 2013-04-13 02:41:23 +02:00
Themaister
3779ddbace Use LUTTexCoord attrib correctly in cg2glsl. 2013-04-13 02:07:37 +02:00
Themaister
e8d89eb2b2 More compat fixes for cg2glsl.
Motion-blur shader works.
2013-04-13 01:58:44 +02:00
Themaister
49d713c2ee Fix some compat in cg2glsl. 2013-04-13 01:43:40 +02:00
Themaister
e4089af307 Allow multiple samplers in cg2glsl. 2013-04-12 00:30:03 +02:00
Themaister
88e2ac3c9c Fix issue with blinky.cg in cg2glsl. 2013-04-12 00:30:03 +02:00
Themaister
d7c1957586 Rename cg2xml to cg2glsl.
Outputs CGP/GLSL style shaders now.
2013-04-11 15:40:57 +02:00