Issue #324 resolved

PixelEffects' pixel_coords (gl_FragCoord) are flipped vertically inside canvases

Alex Szpakowski
created an issue

The y component of gl_FragCoord is normally 0,0 at the bottom left, however with a render target set it is 0,0 at the top left. This is probably because of the new flipped glOrtho call for canvases.

See attached .love (press any key to toggle canvas).

Comments (6)

  1. vrld

    Unfixed as of 06e20ce294cd. I don't see a solution that does not introduce other issues like flipped texture coordinates (compared to images).

    However, if the canvas has the same size as the window everything will be fine ;)

  2. Log in to comment