I’m trying to use texelFetch in a GLSL top:
vec2 pos = texelFetch(sTD2DInputs[2], pixelPos, 0);
Getting this error:
unable to find compatible overloaded function "texelFetch(sampler2D, vec2, int)
What am i missing?
I’m trying to use texelFetch in a GLSL top:
vec2 pos = texelFetch(sTD2DInputs[2], pixelPos, 0);
Getting this error:
unable to find compatible overloaded function "texelFetch(sampler2D, vec2, int)
What am i missing?
Tim Gerritsen answered me on facebook:
texelFetch accepts ivec2 (integer type vector) pixelPosition.
Thanks Tim