From c662b48305215da8ead2ab8134bdfd3b5356c4be Mon Sep 17 00:00:00 2001 From: Thyme1 Date: Thu, 30 Dec 2021 14:58:41 +0100 Subject: [PATCH] change light --- grafika_projekt/shaders/shader_tex.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafika_projekt/shaders/shader_tex.frag b/grafika_projekt/shaders/shader_tex.frag index 388a140..6ea96e2 100644 --- a/grafika_projekt/shaders/shader_tex.frag +++ b/grafika_projekt/shaders/shader_tex.frag @@ -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); }