mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
black is now for background track, and white for front track
This commit is contained in:
parent
692cb0bb7d
commit
3da1d9f73f
1 changed files with 1 additions and 3 deletions
|
@ -69,15 +69,13 @@ def draw_model(scene_scale, scene_trans, scene):
|
|||
elif height < min_height:
|
||||
min_height = height
|
||||
|
||||
min_height -= (max_height - min_height) // 3
|
||||
|
||||
glBegin(GL_TRIANGLES)
|
||||
for face in mesh.faces:
|
||||
for vertex_i in face:
|
||||
height = scene.vertices[vertex_i][color_axe]
|
||||
color = 1
|
||||
if max_height != 0:
|
||||
color = (height - min_height) / max_height
|
||||
color = 1 - ((height - min_height) / max_height)
|
||||
|
||||
glColor3f(color, color, color)
|
||||
glVertex3f(*scene.vertices[vertex_i])
|
||||
|
|
Loading…
Reference in a new issue