Commit Graph

638 Commits

Author SHA1 Message Date
rdb 67a289fe4a Shader generator should use float3 for normals, not float4 2014-07-18 14:34:24 +00:00
rdb 4856804938 Add shininess shader input 2014-07-18 14:21:45 +00:00
rdb a76a011105 Fix bugs with Cg shaders 2014-07-18 11:32:31 +00:00
rdb cea09d4b9e Turn off gl-immutable-texture-storage by default (it seems to cause trouble on NVIDIA cards, which demand a sized internal format be used) 2014-07-15 12:45:38 +00:00
rdb 3983c0de05 Oops, I checked in too much 2014-07-15 11:16:56 +00:00
rdb efa258ebf3 Memory barriers, immutable texture storage, bindless textures, fixes for multisample FBOs, code cleanup, etc. 2014-07-15 08:46:58 +00:00
rdb 274659cdc3 Fix compile issue on Mac OS X with GLhandleARB 2014-07-07 23:28:40 +00:00
rdb dda0d9c15f check in 32-bit float texture formats 2014-07-07 19:49:25 +00:00
rdb 40c880a1c0 Viewport array support on DisplayRegion. Not 100% sure if I want to end up sticking to this design, but it works. (I may revert this later.) 2014-07-07 19:10:15 +00:00
rdb d5a61d3705 Accept integer samplers 2014-07-06 09:42:19 +00:00
rdb 89c5f6f602 Allow using PTA's for float vectors 2014-07-04 14:47:41 +00:00
rdb 0b8d9fd08e Fixes for OpenGL ES 2014-07-03 22:24:34 +00:00
rdb a3d80ae3eb Use explicit cast to try and squelch compile error 2014-07-03 22:06:51 +00:00
rdb 6e64ff951c Add support for passing int arrays and vectors to GLSL shaders. 2014-07-03 21:54:45 +00:00
rdb 0e1f261ca5 Add F_r32i texture format (useful for atomic image writes from shaders) 2014-07-03 17:39:53 +00:00
rdb 7a610cc198 Revert accidental checkin of memory barrier 2014-07-03 17:11:17 +00:00
rdb a16b98a468 Disable error checking by default for a substantial performance increase 2014-07-03 17:10:41 +00:00
rdb a726ccf303 Fixes for image binding 2014-06-29 10:07:38 +00:00
rdb ce6f243019 Clean up glShaderContext, separate GLSL shader context from Cg shader context 2014-06-29 08:28:16 +00:00
rdb de5031afde gl-dump-compiled-shaders, pstats collector for compute-dispatch call, a few minor other things 2014-06-26 19:13:52 +00:00
rdb 8beac06328 update_texture should always make sure that there is a texture created, even if there is no image available 2014-06-20 15:04:39 +00:00
rdb 128f82863e Support OpenGL debugging features (see gl-debug).
Also fixed the GLX code not to call reset() on the temp context but on the real context instead.
2014-06-20 13:17:01 +00:00
rdb 39a321d0ba Compute shader support under OpenGL :-) 2014-06-19 21:29:35 +00:00
rdb 601922e49e sRGB texture support, add floating-point flags to FrameBufferProperties 2014-06-19 19:32:03 +00:00
rdb df30721f79 Seamless cube map sampling in OpenGL 2014-06-18 22:29:50 +00:00
rdb 8d3f7d62f4 Remove use of CLP() macro for config variables 2014-06-18 21:45:20 +00:00
rdb 6454ddddc5 Eliminate GLP() macro (so we can write glEnable instead of GLP(Enable) again). 2014-06-18 21:06:05 +00:00
rdb c33ef307d6 Delete MesaGL renderer, it seems not to be used any more 2014-06-18 14:59:11 +00:00
rdb e4747ebf50 Extremely experimental support for GL_ARB_shader_image_load_store 2014-06-15 12:57:58 +00:00
rdb 37f9858e1b Add p3d_Material in GLSL 2014-06-11 21:54:15 +00:00
rdb 5dae464394 Add integer vectors. Also add __pow__ operator to vectors. 2014-06-11 18:01:50 +00:00
rdb 29385dca31 Allow GLSL matrix arrays 2014-06-10 13:35:33 +00:00
rdb 816bedc8ae Support p3d_ColorScale (thanks wezu) and support 2d texture arrays in GLSL shader inputs (thanks tobspr) 2014-06-10 09:53:54 +00:00
rdb 0f34d7be2c Fix for depth_component16, 24, 32 in get_external_image_format 2014-05-29 14:11:26 +00:00
rdb 73b72386a0 Remove 'temp hack' preventing the use of multiple GraphicsEngines 2014-05-24 05:14:20 +00:00
rdb d792c93026 Overhaul stereo FBOs in Panda making it more reliable, fix MRT bugs, disable auto-GLSL profile choosing on AMD, add max_color_targets (not yet implemented) 2014-04-04 08:45:49 +00:00
rdb d8201030d4 Try cast to keep paranoid compiler happy 2014-03-08 12:17:57 +00:00
rdb 8c12dd1f84 Compile fixes for GLES 2 2014-03-08 12:03:57 +00:00
rdb 93ed8b275e Fix build for GLES 2014-03-07 19:14:45 +00:00
rdb 82eb82d026 Restructure code slightly to reduce code duplication, fix GLES compile errors 2014-03-05 15:23:12 +00:00
rdb 04bbf28a71 Oops, forgot to check in header file as well. 2014-02-16 10:22:11 +00:00
rdb edab64c570 fix Cg error reporting and lack of shader unbinding 2014-02-15 21:34:57 +00:00
rdb 4da840805f Add support for k_time / osg_FrameTime inputs, and change the Shader Generator not to require a separate texcoord set for every texture in an effort to cut down on register overuse. 2014-02-10 11:32:06 +00:00
David Rose f615e0beeb fix some stereo-fbo and cube map issues, introducing DisplayRegion::set_target_tex_page() 2013-12-06 23:45:40 +00:00
David Rose 741203a693 some minor debug aids and robustness additions 2013-12-06 20:53:40 +00:00
rdb 2dd56f9007 fix bug 2013-09-25 23:06:53 +00:00
rdb fccd9965ee support for using the mat3 type in a shader. make p3d_NormalMatrix a mat3. 2013-09-19 22:44:38 +00:00
rdb 30ef435607 Fix p3d_ModelViewMatrix and p3d_ProjectionMatrix and variants. Also add p3d_NormalMatrix. 2013-09-19 19:49:03 +00:00
rdb 64c598abb1 various fixes for FBOs and image formats, including tobspr's patch for F_r16, F_rg16, F_rgb16 support. 2013-09-17 22:08:31 +00:00
rdb eaab45dc9a Support for stereo FBOs 2013-08-25 19:52:31 +00:00