Renderer: Implement and fix front face (winding order) between Vulkan / OpenGL

This commit is contained in:
Jérôme Leclercq
2021-05-28 22:58:14 +02:00
parent 299585a7de
commit ff505e9019
15 changed files with 71 additions and 30 deletions

View File

@@ -22,9 +22,7 @@ namespace Nz
OpenGLRenderPipeline(OpenGLDevice& device, RenderPipelineInfo pipelineInfo);
~OpenGLRenderPipeline() = default;
void Apply(const GL::Context& context) const;
void FlipY(bool shouldFlipY) const;
void Apply(const GL::Context& context, bool flipViewport) const;
inline const RenderPipelineInfo& GetPipelineInfo() const override;
@@ -32,7 +30,7 @@ namespace Nz
RenderPipelineInfo m_pipelineInfo;
GL::Program m_program;
GLint m_flipYUniformLocation;
mutable bool m_isYFlipped;
mutable bool m_isViewportFlipped;
};
}