I still a newbie and I wondered if someone can help me.
I am doing a certain calculation in my shaer’s main funciton and I would like to get the result back to the OpenGL program somehow. is there a way to do it ? Which OpenGL command should I use for this ?
Use RTT (render to texture, pbuffer, frame buffer object or directly to (back/front) buffer - choose the best technique for you), use your shaders to generate texture and then read texture back to get shaders output.