Commit Graph

586 Commits

Author SHA1 Message Date
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 807b855632 Fix bug with Cg textures being assigned incorrectly in first frame (see forum thread 15614) 2013-03-07 08:53:26 +00:00
rdb 21472cda9b Fix GLSL bugs with passing Vec2 and Vec3 2013-02-23 10:55:43 +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
rdb 31b9233ec6 Fix compilation with OpenGL ES 2013-01-30 11:49:58 +00:00
David Rose de10a2ae4e more bitdepth fixes 2013-01-11 21:01:49 +00:00
David Rose 6a1beaf609 try to report the correct number of depth bits 2013-01-11 02:26:10 +00:00
rdb 86d32bee63 There's no need to relink the program now that we're no longer use glBindAttribLocation 2012-12-20 18:40:42 +00:00
rdb ccb80d7837 error message should really be debug message 2012-12-20 16:18:24 +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 a02e494ae3 Patch by Josh Enes to fix LP bug 1089245 2012-12-12 08:24:03 +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 5c644b7543 compile with STDFLOAT_DOUBLE 2012-11-03 19:42:28 +00:00
rdb 68863d5c14 fix GLSL 2012-11-03 13:50:32 +00:00
rdb 6b0bf98d0e fix some minor bugs, and remove unsupported double-precision glUniform functions 2012-10-12 17:12:32 +00:00
rdb 92caea4823 missed one 2012-06-12 13:44:28 +00:00
rdb ccbfafaf8f fix the glShaderSource prototype, also fix compilation for GLES2 2012-06-12 13:34:39 +00:00
rdb 256cb5c2f7 Compile on OpenGL ES, which doesn't have geometry shaders or tesselation shaders 2012-06-12 10:34:07 +00:00
rdb 0e72e83f4e compile correctly for OpenGL ES 2012-06-10 14:13:53 +00:00
rdb 5f8283c9fb same fix elsewhere in code 2012-05-08 19:36:37 +00:00
Andrew Wason 4ced98fae9 LP bug 992049: patch from Andrew Wason 2012-05-08 19:35:19 +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 841bfb0743 fix Tut-Fireflies demo (problem with initially zero-sized buffers) 2012-02-12 21:40:16 +00:00
David Rose bb8867fb77 move GSG::get_supports_render_texture() into GraphicsOutput to support render-to-texture on non-Windows platform. Also, further fixes to FBO render-to-texture. 2012-02-11 21:09:35 +00:00
rdb 9afc789755 no GL_MULTISAMPLE in gles 2012-02-11 09:47:02 +00:00
rdb 1c8f6f378a Attempt to unbreak OpenGL ES build 2012-02-11 09:21:54 +00:00
David Rose fffc982206 fixes to depth buffer for cube maps 2012-02-11 02:21:05 +00:00
David Rose abf84dbd0a something's broken with FBO-based cube maps and the depth buffer. Needs more research. 2012-02-08 23:30:46 +00:00
rdb 72af325f2b allow binding float[n] variables to float[n-1] variables in Cg shaders 2012-01-28 12:47:14 +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
rdb ce696a157e temporarily revert most of zhao's FBO changes, it seems to break a lot of things 2012-01-08 14:00:51 +00:00
rdb c06eafece4 fix from teedee 2012-01-07 08:40:06 +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 ebc948b3f8 Fixed FBO Float Buffers; Multisample FBOS were left untouched and needs more work. 2011-12-31 21:43:18 +00:00
Zhao Huang a56760cbcf Exposes Opengl Vendor, Driver, Shader Model information to python 2011-12-30 09:00:37 +00:00