In your shader.frag
file, you can get the gl_FragCoord
variable using the following code snippet:
147 chars11 lines
In your C# code where you set the shader for your SFML object, you can load this shader.frag
file and set it as the fragment shader for your SFML shader.
gistlibby LogSnag