Hello!
I am making a 2D filter and currently what I got is:
- A
# version 130
on top. This is because I need some of functions which are supported only since GLSL 1.30. - A
uniform sampler2D bgl_RenderedTexture
. This is fine. - Some else code(also all fine).
And here is what I don’t have:
- Texture coordinates. The
gl_TexCoord[0]
is not supported by GLSL 1.30 and later. However, I need to use 1.30, but I also need to map the screen-space image using correct texture coordinates. And here I don’t know how to do it. Is there a way?