X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=shaded.vert;h=65bc65dd42bcf323c61d84cff526b10d772086cc;hb=0fd399ff858d7a264503fa0533140df9a20e4bc4;hp=4f3035c3a5c3400fee32c609a55d5e2764ecb228;hpb=c298ca511683f329dfedd18bf9490520586cf8cf;p=mandelwow.git 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);