Commit Graph

38 Commits

Author SHA1 Message Date
rdb c7976e945d Fix various GLSL bugs: attributes, p3d_Color range, and missing MatrixInverseTranspose stuff 2012-12-20 16:01:41 +00:00
Zhao Huang 3d05d84d87 Added support for shorthand shaderinput lexicons like mspos_camshadow and
trans_model_to_clip_of_camshadow to GLSL.
2012-11-13 02:45:44 +00:00
David Rose e9053ff910 support GLSL tessellation shaders 2012-04-27 20:29:47 +00:00
rdb 4b4ccee24a Don't even try to build Cg support when building for OpenGL ES, which is unsupported by the Cg Toolkit anyway.
The code tried to include cg/cgGL.h in the case that HAVE_CG was defined, but internally cgGL.h included GL/gl.h, so I got header file conflicts between OpenGL and OpenGL ES.
2010-12-18 23:29:00 +00:00
rdb 30a2c57cb3 Fix an issue with programs being destroyed and then reused by different copies of the same shader. Also, added better error reporting system for Cg errors. 2009-09-19 09:55:05 +00:00
rdb 5f4fe3bc32 Fix some compiler warnings 2009-09-12 10:45:49 +00:00
rdb ebf6291663 Fix build errors for mainstream OpenGL 2009-07-02 15:19:37 +00:00
rdb 66349ecaba This is another big commit - chief new features are:
* Working OpenGL ES 2.x support. Yay!
 * The shader code now supports separate vertex/fragment/geometry shaders.
 * The GLSL code supports passing vertex attrib arrays.
2009-07-02 15:01:36 +00:00
rdb d8fe8dda6a Build for OpenGL ES (2) 2009-07-01 10:13:51 +00:00
rdb ab2737ac1a Fix crash when cleaning up GLSL shader 2009-06-29 13:48:43 +00:00
rdb 100400f425 Add support for GLSL shaders 2009-06-26 13:11:24 +00:00
David Rose 58c13de4ca integrate changes from Schell Games (plus some tab character fixes) 2009-06-01 21:51:15 +00:00
David Rose fb9c56432a we are now using the modified BSD license 2008-05-28 18:37:20 +00:00
Josh Yelon 1d954d5104 Improvements to Shader Generator 2008-01-28 17:28:09 +00:00
Josh Yelon d8e6dc13a3 Modifications to eliminate class ShaderExpansion 2007-12-13 20:56:29 +00:00
Josh Yelon 32a6c8fd95 Fixes some bugs in cg parameter handling 2007-08-02 22:02:10 +00:00
David Rose 68c9ef5207 don't prune nonresident geometry in cull--wait until draw 2007-06-07 21:45:33 +00:00
David Rose 1fdb425b88 merge shader_overhaul from jyelon 2007-03-15 21:04:31 +00:00
Josh Yelon cde115a055 Got hardware shadows in Cg working, for real this time 2006-04-06 16:44:38 +00:00
David Rose 8a78fffd8f multithreading optimizations, tau profiler, related changes 2006-04-05 19:36:05 +00:00
Josh Yelon ba74d9a772 Eliminated Cg references in gobj/shaderContext 2006-02-28 22:06:49 +00:00
Josh Yelon 129cef9f62 Major overhaul to shader subsystem 2006-02-27 21:52:36 +00:00
aignacio_sf b58a54df1d Add a state to for valid/invalid shaders. Added some shader debug code. 2006-02-10 21:10:43 +00:00
Josh Yelon 7e1df6e67c Added cardcenter 2005-11-09 23:30:21 +00:00
Josh Yelon 0400248b37 Added support for shadow maps + shaders 2005-11-01 04:30:22 +00:00
Josh Yelon 4bb6fd3f1b Changes to support offscreen-buffers that match the main window 2005-10-17 17:39:50 +00:00
Josh Yelon 777cad2e50 Added code so that one can recommend a profile from inside a shader 2005-10-13 20:09:40 +00:00
Josh Yelon 9478e2bf08 Added derivative textures 2005-10-05 16:25:02 +00:00
Josh Yelon 0c7e721e79 Added texture handling in shader code 2005-10-05 01:09:32 +00:00
Josh Yelon 2095d8c44f New shader system 2005-09-25 04:06:31 +00:00
Josh Yelon 83b88c1ac3 Shader vertex arrays implemented 2005-09-14 03:45:32 +00:00
Josh Yelon 23b0c5d850 Added better code to compile shaders 2005-09-09 01:42:48 +00:00
Josh Yelon 8f06d9e0d3 Shader changes 2005-09-06 22:45:24 +00:00
Josh Yelon 45aca0885e *** empty log message *** 2005-09-06 21:33:34 +00:00
David Rose 292b0d1d95 (void) -> () 2005-09-06 20:16:09 +00:00
David Rose a9a9f280bb dos2unix 2005-09-06 18:30:26 +00:00
Josh Yelon 9ad64a6b4b Shader modifications 2005-09-05 15:20:37 +00:00
Josh Yelon 047e9525ff More shader stuff 2005-09-04 23:25:39 +00:00