onox / orka

The OpenGL 4.6 Rendering Kernel in Ada 2022
https://orka-engine.netlify.com/
Apache License 2.0
61 stars 2 forks source link

Move origin of clip volume to upper-left #72

Closed onox closed 2 years ago

onox commented 3 years ago

Wayland/Windows/Vulkan/Direct3D seem to use an upper-left origin.

  1. Call GL.Viewports.Set_Clipping with GL.Viewports.Upper_Left in package Orka.Contexts.EGL
  2. Adjust matrices
  3. Adjust docs/rendering/index.md

Might need https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_fragment_coord_conventions.txt in shaders that use gl_FragCoord:

layout(origin_upper_left) in vec4 gl_FragCoord;