mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11:57 -04:00
Attempt at making diffuse and corona not intersect.
This commit is contained in:
parent
1c3abeeaa7
commit
46ca669ecb
|
@ -328,10 +328,12 @@ class Applet(pyglet.window.Window):
|
||||||
glTranslatef(x0, y0, z0)
|
glTranslatef(x0, y0, z0)
|
||||||
glRotatef(pitch, 1, 0, 0)
|
glRotatef(pitch, 1, 0, 0)
|
||||||
glRotatef(yaw, 0, 1, 0)
|
glRotatef(yaw, 0, 1, 0)
|
||||||
if has_corona:
|
|
||||||
glCallList(entity.corona)
|
|
||||||
if has_atmosphere:
|
if has_atmosphere:
|
||||||
glCallList(entity.atmosphere)
|
glCallList(entity.atmosphere)
|
||||||
|
if has_corona:
|
||||||
|
x, y, z = c.direction()
|
||||||
|
glTranslatef(-x, -y, -z)
|
||||||
|
glCallList(entity.corona)
|
||||||
glPopMatrix()
|
glPopMatrix()
|
||||||
|
|
||||||
if self.cloud and hasattr(entity, "cloudmap") and entity.cloudmap:
|
if self.cloud and hasattr(entity, "cloudmap") and entity.cloudmap:
|
||||||
|
|
Loading…
Reference in a new issue