From c6273a807a06d80c4d411daf669a6d1650504678 Mon Sep 17 00:00:00 2001 From: Quantum Date: Tue, 28 Aug 2018 16:18:23 -0400 Subject: [PATCH] Fixup: do not cull rings. --- punyverse/entity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/punyverse/entity.py b/punyverse/entity.py index b16f262..19cecc3 100644 --- a/punyverse/entity.py +++ b/punyverse/entity.py @@ -486,6 +486,7 @@ class SphericalBody(Body): def _draw_rings(self): glEnable(GL_BLEND) + glDisable(GL_CULL_FACE) shader = self.world.activate_shader('ring') shader.uniform_mat4('u_modelMatrix', self.model_matrix) shader.uniform_mat4('u_mvpMatrix', self.mvp_matrix) @@ -510,6 +511,7 @@ class SphericalBody(Body): glBindBuffer(GL_ARRAY_BUFFER, 0) self.world.activate_shader(None) glDisable(GL_BLEND) + glEnable(GL_CULL_FACE) def _draw(self, options): self._draw_sphere()