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 can’t 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:image002.jpg@01D39374.DEC5A2E0
/Missiles and Fire Control/
972-603-1931 (office)
214-926-0622 (mobile)
marlin.r.row...@lmco.com <mailto:marlin.r.row...@lmco.com>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org