From 1a771d9a157bebffad42573d114240a4bfe7f611 Mon Sep 17 00:00:00 2001 From: iurii Date: Thu, 5 Sep 2024 19:07:25 +0300 Subject: fixed specular --- res/shaders/colors.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') diff --git a/res/shaders/colors.fs b/res/shaders/colors.fs index 2184d03..83733cf 100644 --- a/res/shaders/colors.fs +++ b/res/shaders/colors.fs @@ -27,7 +27,7 @@ void main() { vec3 reflect_dir = reflect(-light_dir, norm); float spec = pow(max(dot(view_dir, reflect_dir), 0.0), 32); vec3 specular = specular_strength * spec * light_color; - + vec3 result = (ambient + diffuse + specular) * object_color; FragColor = vec4(result, 1.0); } -- cgit 1.4.1-2-gfad0