Using OpenGL shaders for math calculation (C++)
<p>I have a matrix (for example 100x100 dimantion):
I need to do calculation with each element (<code>matrix[i,j]*tt/8+5</code> for example)</p>

<p>I have huge matrix and I want to implement the algorithm using OpenGL shaders. 
I want to use shader like:</p>

<pre><code>uniform float val;
uniform float tt;

void main()
{
    gl_Position.x = val*tt/8+5
}
</code></pre>

<p>How I can implement the program? How I can get matrix after calculation(I do not want to show any windows\pictures?</p>