[osg-users] Value of a variable in shaders?

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Thu Sep 27 23:59:44 PDT 2018


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


More information about the osg-users mailing list