Why is Processing (0,0) in the top-left and Open GLSL in the bottom-left?

edited March 2017 in GLSL / Shaders

I've just started learning shaders and am wondering whether I should try and make my shader code somehow have the (0,0) origin in the top left if its running inside Processing?

Apparently there is a way to modify this via

layout(origin_upper_left) in vec4 gl_FragCoord;

https://khronos.org/opengl/wiki/Built-in_Variable_(GLSL)#Fragment_shader_inputs

Is this useful or needed?

Thanks

Answers

Sign In or Register to comment.