From 63c9e3ec8b51a9d96872a054a0d35e8591b3535d Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:46:44 +1000 Subject: only round vertices if AA is on [skip ci] --- source/application/StarRenderer_opengl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/application/StarRenderer_opengl.cpp') diff --git a/source/application/StarRenderer_opengl.cpp b/source/application/StarRenderer_opengl.cpp index 401acc7..f0e4dfd 100644 --- a/source/application/StarRenderer_opengl.cpp +++ b/source/application/StarRenderer_opengl.cpp @@ -394,6 +394,8 @@ bool OpenGlRenderer::switchEffectConfig(String const& name) { setupGlUniforms(effect); m_currentEffect = &effect; + setEffectParameter("vertexRounding", m_multiSampling > 0); + return true; } @@ -432,7 +434,7 @@ void OpenGlRenderer::setMultiSampling(unsigned multiSampling) { if (m_multiSampling) { glEnable(GL_MULTISAMPLE); glEnable(GL_SAMPLE_SHADING); - glMinSampleShading(1.0f); + glMinSampleShading(1.f); } else { glMinSampleShading(0.f); glDisable(GL_SAMPLE_SHADING); -- cgit v1.2.3