Hi folks,
I’m new to Corona and trying to transfer one of my projects over from another SDK.
Some of the shaders I have written require the pixel knowing its screen position.
In OpenGL there’s a gl_FragCoord that is part of the fragment data. I’ve checked through all the documentation but I can’t see an equivalent anywhere.
How do I find the position of the pixel a fragment shader is trying to write to?
Many thanks for your time,
- D