This commit is contained in:
Daniel Ledda
2025-01-10 13:48:51 +01:00
parent 994cbc688f
commit 25384c743d
2 changed files with 2 additions and 2 deletions

View File

@@ -25,6 +25,6 @@ void main() {
float spec = pow(max(dot(view_direction_norm, reflect_dir), 0.0), 32);
vec3 specular = specular_strength * spec * light_color;
vec3 result = (ambient + diffuse + specular) * solid_color;
vec3 result = specular * (solid_color + 2 * light_color) / 2 + (ambient + diffuse) * solid_color;
frag_color = vec4(result, 1.0);
}