-
Super Moderator
Frequent Contributor
Getting the value of a GLSL program in a C++ program
I want to get the value of a GLSL variable (uniform or attrib) after GLSL program execution.
Is there any solution to do this ?
-
Senior Member
OpenGL Guru
Re: Getting the value of a GLSL program in a C++ program
yes there are glGet .. commands see the spec for detailed info
-
Senior Member
OpenGL Guru
Re: Getting the value of a GLSL program in a C++ program
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.
-
Super Moderator
Frequent Contributor
Re: Getting the value of a GLSL program in a C++ program
Thank you to this information.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules