Thanks, I'll look into that. ---------------------------------------- Marlin Rowley Software Engineer, Staff
Missiles and Fire Control 972-603-1931 (office) 214-926-0622 (mobile) [email protected] -----Original Message----- From: Sebastian Messerschmidt <[email protected]> Sent: Friday, September 28, 2018 2:00 AM To: OpenSceneGraph Users <[email protected]>; Rowley, Marlin R (US) <[email protected]> Subject: EXTERNAL: Re: [osg-users] Value of a variable in shaders? Hi, Usually you can use the output-colors in case of a fragment shader to inspect the values per fragment. Rendering to a texture and inspecting the values in the image is also an option. Another approach to display incoming/per state values is this nifty shader: http://mew.cx/drawtext/drawtext.html Appart from this, in case you're using a modern Nvidia-GPU and Visual-Studio: https://developer.nvidia.com/nsight-visual-studio-edition Cheers Sebastian Am 27.09.2018 um 20:14 schrieb Rowley, Marlin R: > All, > > Is there a way to examine variable values in shader code? I cant > figure out this problem that we are having unless I can see the values > in the shaders. > > Any help would be appreciated > > ---------------------------------------- > > 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]> > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

