Changeset 8490:b747be512742 in orange


Ignore:
Timestamp:
07/27/11 17:32:57 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
ca73f26ca8741beedffe94d78e0b5e90b91112cb
Message:

Changed lighting, brighter colors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/plot/owplot3d.py

    r8489 r8490  
    520520                float diffuse = max(0., dot(normalize((gl_ModelViewMatrix * vec4(normal, 0)).xyz), 
    521521                                    light_direction)); 
    522                 vec3 ambient = vec3(0.15, 0.15, 0.15); 
    523                 var_color = vec4(color.rgb*diffuse+ambient, a); 
     522                var_color = vec4(color.rgb+diffuse*0.8, a); // Physically wrong, but looks better. 
    524523              } 
    525524            } 
Note: See TracChangeset for help on using the changeset viewer.