I have a shader working with textures and all that but now I would like to add a projectview-matrix to it.
But here I run into a weird problem: The shader simply ignores the matrix multiplication!
I played around with different matricies but nothing seemed to have an effect.
Simply this code:
mat4 m = mat4(0.01);
vec4 p = vec4(position, 0.0, 1.0);
gl_Position = m * p;
Has the same effect as this code:
vec4 p = vec4(position, 0.0, 1.0);
gl_Position = p;
As I said I tried different values for the matrix but nothing happened…
Is it not possible to initiate a matrix inside glsl?