Robert Osfield
776fa48cd4
Fixed shadows warnings
2016-05-23 10:22:16 +01:00
Robert Osfield
eb50a15b52
Fixed ShaderComposer::releaseGLObjects(State*) const method as it's const was missing.
...
Rewrote the ShaderComposer::releaseGLObjects() const method to pass on the releaseGLObjects() calls to any associated Program or Shader objects.
2016-04-18 20:46:45 +01:00
Robert Osfield
a83b390d55
From Patrick Neary, "In ShaderComposer::getOrCreateProgram(), tesselation control and evaluation shaders are processed but not added to the shader program."
2016-01-25 10:25:15 +00:00
Robert Osfield
4493d11ca3
Added State::releaseGLObjects() and ShaderComposer::releaseGLObjects() to avoid problems with cleanup of graphics context
2013-10-21 16:35:12 +00:00
Robert Osfield
26a8f63212
From Wang Rui, "In the attached files I've added the Compute Shader support for OSG, as well as serializer updates and a new osgcomputeshaders example. My submission also include a setComputeGroups() function in Program for setting compute-shader work groups, and a bindToImageUnit() function in Texture for binding textures as image variables in shaders.
...
All code are tested on Windows 7 + NVIDIA GFX 570 with the latest GeForce 310.70 Driver (BETA), which could support OpenGL 4.3.
Compute shader information can be found at "http://www.opengl.org/registry/specs/ARB/compute_shader.txt "
"
2013-01-25 11:54:03 +00:00
Robert Osfield
d7747685b3
From Holger Helmich, Tessellation shader support
2010-11-23 14:50:31 +00:00
Robert Osfield
64b26ebeb5
Added debug State::print(std::ostream&) method and extra debug messages in ShaderComposer and ShaderAttribute.
...
Added better shader composition testing in the osgshadercomposition example.
2010-07-10 17:14:59 +00:00
Robert Osfield
d50bf88bc0
Added some debugging to investigate issue of global default ShaderAttribute not being automatically assigned.
2010-07-07 11:02:15 +00:00
Robert Osfield
74ae526bb5
Added support for passing on uniforms from StateAttribute
2010-07-06 10:55:54 +00:00
Robert Osfield
751b0498fe
Added basic code injection fields to osg::Shader,
...
creation of main shader to ShaderComposer and
collection of ShaderComponent to osg::State.
Also added very basic shader set up in osgshadecomposition example.
2010-07-05 16:32:58 +00:00
Robert Osfield
9f8670f50d
Implement basic cache in ShadeComposer
2010-07-02 14:18:59 +00:00
Robert Osfield
0119eec3fe
Checked in missing source file.
2010-06-26 09:55:18 +00:00