diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/shaders/colors.fs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |