Quantcast
Channel: GLSL / Shaders - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 212

How can I access texOffset

$
0
0

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.


Viewing all articles
Browse latest Browse all 212

Trending Articles