Hey all, I want to experiment with some screen space effects, but I’m struggling to get an equivalent of gl_FragCoord in NME.
Is there some some a way to calculate a pixel’s screen position from the camera, and view projection?
Basically I want to do something like this:
The closest I got was something like this:
but you can see with the cylinder and torus that the geometry is messing with the intended effect, I think we’re using the world coordinate of the fragment with respect to the view and projection rather than where the pixel would be on screen. Hmm…