I am porting a shader toy shader to Unity GLSL. It’s working except I have trouble getting the screen space coordinates I need. What’s the equivalent of this:
vec2 coord = gl_FragCoord.xy / iResolution.xy;
I want the normalised coordinate of the current screen fragment.
It seems gl_FragCoord is not available and how do I get the screen size?
Note that I’m using GLSL as the shader language in Unity not CG or HLSL.