Robert, I’ve written the shaders already and am well-versed in writing them. I just need a debugging tool that will allow me to see their values at runtime.
---------------------------------------- Marlin Rowley Software Engineer, Staff [cid:[email protected]] Missiles and Fire Control 972-603-1931 (office) 214-926-0622 (mobile) [email protected]<mailto:[email protected]> From: osg-users <[email protected]> On Behalf Of Robert Osfield Sent: Friday, September 28, 2018 1:40 AM To: OpenSceneGraph Users <[email protected]> Subject: EXTERNAL: Re: [osg-users] Value of a variable in shaders? Hi Marlin, On Thu, 27 Sep 2018 at 19:30, Rowley, Marlin R <[email protected]<mailto:[email protected]>> wrote: Is there a way to examine variable values in shader code? I can’t figure out this problem that we are having unless I can see the values in the shaders. To pass data into shaders you have use a combination of uniforms (osg::Unfiorm), textures (osg::Textre*) and vertex attributes. With recent 3.4.x onwards you also have the option of passing in constants via #prama(tic) shader composition system that passes #define values into the compilation of shaders. Shaders are a big topic so it's impossible for me to give you a full guide, there are plenty of reosurces online about GLSL shaders, within the OSG search for uses of osg::Program, osg::Shader, osg::Uniform. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

