VK_KHR_Maintenance1 inverted viewport support (for OpenGL scene compat) #1603
Unanswered
nolankramer
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Why would want to do this? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondering - what's a good way to implement flipping the viewport (for compatibility with OpenGL scenes/gl-style rendering).
From what I understand, it would require making the viewport height negative and moving the y down by the height, and also setting winding order to CW (and then offscreen rendering must be compensated for).
As detailed here: https://www.saschawillems.de/blog/2019/03/29/flipping-the-vulkan-viewport/
Curious if there's an easy way to implement this with VSG? From what I can tell there's quite a few places that would need to either be subclassed (vsg::RenderGraph) or worked around (vsg::WindowResizeHandler behavior).
Beta Was this translation helpful? Give feedback.
All reactions