mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 03:08:29 +02:00
reverted color so that dark = background and white = foreground
This commit is contained in:
parent
e149cbfcfb
commit
c14f7e2d0b
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ def draw_model(scene_scale, scene_trans, scene):
|
|||
elif height < min_height:
|
||||
min_height = height
|
||||
|
||||
min_height -= (max_height - min_height) // 3
|
||||
min_height += (max_height - min_height) // 3
|
||||
|
||||
glBegin(GL_TRIANGLES)
|
||||
for face in mesh.faces:
|
||||
|
@ -78,7 +78,7 @@ def draw_model(scene_scale, scene_trans, scene):
|
|||
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