From: Bernie Innocenti Date: Sun, 7 May 2017 00:36:49 +0000 (-0400) Subject: Change the light direction to nake the cubes less symmetric. X-Git-Tag: v0.7.0~2 X-Git-Url: https://codewiz.org/gitweb?p=mandelwow.git;a=commitdiff_plain;h=e225d13c53ed99966d3fa4e251e0d18c027173a0 Change the light direction to nake the cubes less symmetric. --- diff --git a/shaded.vert b/shaded.vert index 4f3035c..65bc65d 100644 --- a/shaded.vert +++ b/shaded.vert @@ -14,7 +14,7 @@ void main() { mat4 m = perspective * modelview; vec3 dark = vec3(0.0, 0.0, 0.1); vec3 bright = vec3(0.0, 0.0, 0.9); - vec3 u_light = vec3(-0.5, -0.5, -1.); + vec3 u_light = vec3(-0.5, -0.7, -0.6); vec3 v_normal = transpose(inverse(mat3(model))) * normal; float brightness = max(dot(normalize(v_normal), normalize(u_light)), 0.0); color = vec4(mix(dark, bright, brightness), 1.0);