change light
This commit is contained in:
parent
1ffaf2b993
commit
c662b48305
@ -13,5 +13,5 @@ void main()
|
||||
vec3 normal = normalize(interpNormal);
|
||||
float ambient = 0.2;
|
||||
float diffuse = max(dot(normal, -lightDir), 0.1);
|
||||
gl_FragColor = vec4(color * (ambient + (1-ambient) * diffuse * 0.7 ), 1.0);
|
||||
gl_FragColor = vec4(color * (ambient + (1-ambient) * diffuse * 0.6 ), 1.0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user