rdb
7ed8cc9831
Add p3d_Color uniform in GLSL shaders
2015-02-11 21:54:34 +01:00
rdb
4d2dcdcef7
Fix OpenGL ES compiler errors
2015-02-11 21:41:48 +01:00
rdb
bcf0229978
Expose p3d_ClipPlane array to GLSL
2015-02-09 15:57:47 +01:00
rdb
bd86907181
Fix assortment of compilation issues and annoyances
2015-02-08 23:25:11 +01:00
rdb
dad8f79e96
Support using setShaderInput with a light to bind to GLSL struct
2015-02-08 01:42:11 +01:00
rdb
3bf2a0f814
Proper unbinding of GLSL matrix attribute arrays
2015-02-05 13:27:35 +01:00
rdb
3b1bd9ef39
This fixes most issues with Cg's GLSL profiles on non-NVIDIA cards
2015-02-02 16:31:23 +01:00
rdb
3aefaff8b1
Show source filename in GLSL error logs
2015-02-01 19:25:51 +01:00
rdb
a7d1eb90c5
Expose has_extension to query whether OpenGL extension is supported
2015-01-24 21:56:06 +01:00
rdb
0f1243230d
Fix OpenGL error on FBO shutdown
...
(caused by call to glGetError while context was already shut down)
2015-01-24 19:50:25 +01:00
rdb
0dc0bbdf0c
Missed this section, no point generating shaders in draw any more
2015-01-23 21:41:43 +01:00
rdb
c2aa6991d6
Fix glObjectLabel error, fix crash on shutdown with pstats-gpu-timing
2015-01-23 13:22:31 +01:00
rdb
77c9e6cf6c
Add support for instance arrays via vertex attrib divisors
2015-01-22 17:04:25 +01:00
rdb
0ad0d4ec33
Further optimizations to the cull pipeline.
...
The only transform still stored in CullableObject is internal transform.
NB: I haven't tested my PipeOcclusionCullTraverser changes. Please contact me if you encounter problems with it.
2015-01-22 16:22:16 +01:00
rdb
142bd6a021
Remove old MLightVector TexGen mode and FFP-based normal mapping
2015-01-22 12:26:22 +01:00
rdb
a7f7d54f10
Support vertex attributes with matrix type
2015-01-19 00:16:59 +01:00
rdb
17aafeba15
Fix stencil clear: reset stencil mask before glClearStencil
2015-01-13 03:18:05 +01:00
rdb
75c1364373
Disable use of GL_NV_primitive_restart due to driver bugs
2015-01-08 11:43:28 +01:00
rdb
af15797a25
Many, many performance optimizations and enhancements
2015-01-07 19:30:01 +01:00
rdb
3831d44576
Fix issue with resetting ScissorAttrib state
...
https://www.panda3d.org/forums/viewtopic.php?f=1&t=17505
2015-01-02 22:38:02 +01:00
tzaeru
9c137426e3
Integer texture formats for 8-bit R, RG, RGB and RGBA channels
2014-12-22 21:18:34 +01:00
rdb
01b669ccd8
Implement texture clear, fix immutable tex support
2014-12-21 14:13:49 +01:00
rdb
89031b4e48
Fix mipmapping with sampler state
2014-12-12 20:27:08 +01:00
rdb
95d85819b0
Separate out sampler state from texture, support sampler objects, support LOD min/max/bias
2014-12-12 15:58:45 +01:00
rdb
bc24576b02
Split up color-bits into red-bits + green-bits + blue-bits
2014-12-06 16:10:01 +01:00
rdb
9567247c9a
Allow using rgb32 and rgb16 for render to texture when alpha-bits is 0
2014-12-06 14:00:17 +01:00
rdb
0473fa7ead
Simplify oddly redundant StencilAttrib implementation.
...
Also add RenderState::compare_mask().
2014-12-03 22:44:07 +01:00
rdb
5ee64279a4
Oops, stupid debug message, how embarrassing
2014-11-04 15:07:01 +00:00
rdb
ce1282c7e3
Fixes for primitive restart index stuff
2014-11-04 14:14:49 +00:00
rdb
0f35480fcf
Allow disabling primitive restart index. Also, better handling of unsupported shader languages.
2014-11-03 02:29:05 +00:00
David Rose
7bce2d6124
support GL_RGBA16, GL_LUMINANCE16, GL_LUMINANCE_ALPHA16 etc.
2014-10-28 21:44:45 +00:00
rdb
d3947d4b01
Fix scissoring crash. Also prevent crash when GLSL is not supported.
2014-10-27 16:09:33 +00:00
David Rose
9f896821e7
fix scissoring during the DisplayRegion's glClear() operation
2014-10-16 00:57:21 +00:00
rdb
31a71c990d
Fix issues with OS X 10.9 compilation, fix issues uncovered by clang
2014-10-12 18:45:37 +00:00
rdb
ab8ebe6e30
Fix issues with point rendering, both software and hardware.
2014-10-11 01:28:32 +00:00
rdb
5f8fffccfe
Add GSG::get_supports_texture_srgb()
2014-10-08 15:13:26 +00:00
rdb
fbc3564bf9
More work on Android port
2014-10-08 15:09:25 +00:00
rdb
a25a9e655e
Support strip cut indices and (using those) support direct rendering of linestrips in OpenGL
2014-09-25 00:16:44 +00:00
rdb
db0fd516a0
Add GPU profiling capabilities to PStats using OpenGL timer queries
2014-09-24 23:53:37 +00:00
rdb
0e785de0ff
Fix crash in do_issue_scissor
2014-09-20 20:51:40 +00:00
rdb
8b7217b4f9
Add an "off" ScissorAttrib, don't apply scissoring to overlay display region so that a full-window clear is truly a full-window clear
2014-09-16 20:44:39 +00:00
rdb
b24adbcad1
Fix issues resizing OpenGL FBOs. Use LVecBase2i for storing buffer size.
2014-09-16 14:51:13 +00:00
rdb
cd79de19b2
Add more parameters for binding images to shaders.
2014-08-19 20:22:57 +00:00
rdb
1055c2e0fd
Use glClearBufferfv to clear MRTs more efficiently (without having to call glDrawBuffers several times)
2014-08-17 16:41:19 +00:00
rdb
82e4500d2a
Add p3d_ModelMatrix, p3d_ViewMatrix, and p3d_ViewProjectionMatrix. Fix osg_ViewMatrix and osg_InverseViewMatrix.
2014-07-27 12:10:52 +00:00
rdb
29cfc2b778
Correct CPU mipmap generation for sRGB textures
2014-07-19 16:47:57 +00:00
rdb
875f4d9ddf
Fix GLSL bug on nvidia cards with disabling vertex attribs
2014-07-18 19:24:39 +00:00
rdb
0ef51b8723
Support for integer vertex attributes in GLSL
2014-07-18 15:39:49 +00:00
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