Make the 3D platfrom transparent.
This commit is contained in:
parent
f3d5009b0a
commit
036e16f76c
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ def DrawMachine(machineSize):
|
|||
glEnable(GL_LIGHTING)
|
||||
glTranslate(100,120,-285)
|
||||
glLightfv(GL_LIGHT0, GL_DIFFUSE, [0.8,0.8,0.8])
|
||||
glLightfv(GL_LIGHT0, GL_AMBIENT, [0.3,0.3,0.3])
|
||||
glLightfv(GL_LIGHT0, GL_AMBIENT, [0.5,0.5,0.5])
|
||||
glEnable(GL_BLEND)
|
||||
glBlendFunc(GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR)
|
||||
|
||||
global platformMesh
|
||||
if platformMesh == None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue