View Full Version : Getting the value of a GLSL program in a C++ program
01-06-2005, 02: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 ?
yes there are glGet .. commands see the spec for detailed info
01-07-2005, 03: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, 10:20 PM
Thank you to this information.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.