View Full Version : Getting the value of a GLSL program in a C++ program

01-06-2005, 03:39 AM
I want to get the value of a GLSL variable (uniform or attrib) after GLSL program execution.
Is there any solution to do this ?

01-06-2005, 11:27 AM
yes there are glGet .. commands see the spec for detailed info

01-07-2005, 04:01 AM
If you mean that the GLSL program should have changed the values of uniforms or attribs during it's run, then no, this is not possible.
glGet commands get the current state, that is the state the user set last.
Final results of GLSL programs are color and depth buffer contents and you can read from there.

01-07-2005, 11:20 PM
Thank you to this information.