We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to use texOffset in order to loop over some pixels.
In my vertex shader I added:
out vec2 texOffset;
And in the fragment shader I added:
in vec2 texOffset;
And I try to use it with:
float xInc = texOffset.x;
But since I added those lines the shader won't compile anymore due an Unknow error.
Answers
texOffset is a uniform, not an attribute. Just remove it from your vertex shader and declare it in your fragment shader like this:
When you told about
in
andout
I took it a bit to strict :) Thanks. My useless shader is finished now. Time to learn CUDA soon to do it the proper way :)