change light direct for good look.

This commit is contained in:
Thomas Hou 2014-12-29 16:43:48 +08:00
parent 1502d32aac
commit cfa9f039ec
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ uniform vec4 u_color;
varying vec3 v_normal;
void main(void)
{
vec3 light_direction = vec3(1,-1,0);
vec3 light_direction = vec3(1,-1,-1);
light_direction = normalize(light_direction);
vec3 light_color = vec3(1,1,1);
vec3 normal = normalize(v_normal);