Commit Graph

473 Commits

Author SHA1 Message Date
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 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 93ed8b275e Fix build for GLES 2014-03-07 19:14:45 +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 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
David Rose b41e04dc60 useful debug 2013-08-23 21:36:51 +00:00
rdb ef9e2def2e A bit more work toward trying to get a framebuffer without color attachment 2013-08-15 09:06:58 +00:00
rdb 3f56259c7f try to fix some FBO bugs on Intel HD Graphics 2013-08-14 22:51:54 +00:00
rdb 6113979792 merge from panda3d_1_8_branch: work around conflicting declarations of glShaderSource 2013-08-13 20:35:07 +00:00
rdb 2274f2e651 FBO overhaul: support layered framebuffers (RTM_bind_layered), support render-to-2d-array, better respect FrameBufferProperties, more simple handling of RTP_depth_stencil 2013-08-13 12:44:27 +00:00
rdb f23f2a0ea7 Add gl-separate-specular-color, enabled by default 2013-07-28 22:01:36 +00:00
David Rose ef6e88c8be protect against old cg version 2013-05-20 18:24:35 +00:00
rdb da09882f67 fix for cg profile limitation on non-nvidia cards 2013-05-17 21:26:47 +00:00
rdb 1d25aefd0b Slight performance enhancement under OpenGL ES 2 2013-04-06 23:11:45 +00:00
rdb c4c97c3571 fix GL_BGRA error on gles 2 2013-03-28 15:41:25 +00:00
David Rose f229da5468 build on Cg versions prior to 2.2 2013-03-14 18:57:07 +00:00
rdb 8ef24aa846 clean up shader code, add more debugging info, make shaders writable 2013-03-13 09:47:37 +00:00
rdb 498badb726 fix CGprofile cast 2013-02-06 08:25:10 +00:00
rdb 6c52484f05 fix compilation for older Cg versions 2013-02-05 22:55:41 +00:00
rdb 1b76a13784 detect SM4 and SM5 2013-02-05 12:08:58 +00:00
David Rose de10a2ae4e more bitdepth fixes 2013-01-11 21:01:49 +00:00
rdb c7976e945d Fix various GLSL bugs: attributes, p3d_Color range, and missing MatrixInverseTranspose stuff 2012-12-20 16:01:41 +00:00
rdb 6b0bf98d0e fix some minor bugs, and remove unsupported double-precision glUniform functions 2012-10-12 17:12:32 +00:00
rdb ccbfafaf8f fix the glShaderSource prototype, also fix compilation for GLES2 2012-06-12 13:34:39 +00:00
rdb 0e72e83f4e compile correctly for OpenGL ES 2012-06-10 14:13:53 +00:00
David Rose e9053ff910 support GLSL tessellation shaders 2012-04-27 20:29:47 +00:00
David Rose 3a75ebde9a DepthOffsetAttrib::min_value, max_value 2012-02-17 19:11:22 +00:00
David Rose fffc982206 fixes to depth buffer for cube maps 2012-02-11 02:21:05 +00:00
rdb ec18c967dd unbreak GLES 2012-01-16 09:19:28 +00:00
rdb 86dce18afa understand more GL_DEPTH_COMPONENT variants when reading back 2012-01-15 11:13:53 +00:00
David Rose 7fd4c1cc18 solve WxPandaWindow issues on Linux 2012-01-11 01:58:25 +00:00
Zhao Huang cbf9c83e23 Fix for gles returning driver info causing incomplete builds on certain linux distros 2012-01-04 06:24:59 +00:00
Zhao Huang a56760cbcf Exposes Opengl Vendor, Driver, Shader Model information to python 2011-12-30 09:00:37 +00:00