diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-15 17:46:44 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-15 17:46:44 +1000 |
commit | 63c9e3ec8b51a9d96872a054a0d35e8591b3535d (patch) | |
tree | 7d5cfaea0e13eb34cc6db25df6054cae1a04677c /source/application | |
parent | 2a4bd826052102a0bb8858355e42b9cba06f2991 (diff) |
only round vertices if AA is on
[skip ci]
Diffstat (limited to 'source/application')
-rw-r--r-- | source/application/StarRenderer_opengl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |