Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/application/StarRenderer_opengl.cpp2
-rw-r--r--source/game/StarHumanoid.cpp14
2 files changed, 8 insertions, 8 deletions
diff --git a/source/application/StarRenderer_opengl.cpp b/source/application/StarRenderer_opengl.cpp
index d8b26e8..90d691e 100644
--- a/source/application/StarRenderer_opengl.cpp
+++ b/source/application/StarRenderer_opengl.cpp
@@ -434,7 +434,7 @@ void OpenGlRenderer::setMultiSampling(unsigned multiSampling) {
glEnable(GL_SAMPLE_SHADING);
glMinSampleShading((float)m_multiSampling);
} else {
- glMinSampleShading(1.f);
+ glMinSampleShading(0.f);
glDisable(GL_SAMPLE_SHADING);
glDisable(GL_MULTISAMPLE);
}
diff --git a/source/game/StarHumanoid.cpp b/source/game/StarHumanoid.cpp
index c69872b..b19410a 100644
--- a/source/game/StarHumanoid.cpp
+++ b/source/game/StarHumanoid.cpp
@@ -528,7 +528,7 @@ List<Drawable> Humanoid::render(bool withItems, bool withRotation) {
auto addDrawable = [&](Drawable drawable, bool forceFullbright = false) {
if (m_facingDirection == Direction::Left)
drawable.scale(Vec2F(-1, 1));
- drawable.fullbright = drawable.fullbright || forceFullbright;
+ drawable.fullbright |= forceFullbright;
drawables.append(std::move(drawable));
};
@@ -792,12 +792,12 @@ List<Drawable> Humanoid::render(bool withItems, bool withRotation) {
drawables.insertAllAt(0, m_altHand.nonRotatedDrawables);
}
- if (withRotation)
- Drawable::rotateAll(drawables, m_rotation);
-
- Drawable::translateAll(drawables, m_globalOffset);
- Drawable::rebaseAll(drawables);
-
+ for (auto& drawable : drawables) {
+ drawable.translate(m_globalOffset);
+ if (withRotation && m_rotation != 0)
+ drawable.rotate(m_rotation);
+ drawable.rebase();
+ }
return drawables;
}