Commit ba185ee4 authored by Ignacio Esteban Losiggio's avatar Ignacio Esteban Losiggio Committed by BuildTools
Browse files

Multiplicar la luz especular por el coeficiente de la luz difusa

parent 23100318
......@@ -357,7 +357,7 @@ var meshFS = `
}
vec4 color = light_intensity * (K_diffuse * max(0.0, cos_theta)
+ K_shininess * pow(max(0.0, cos_specular), shininess));
+ K_shininess * max(0.0, cos_theta) * pow(max(0.0, cos_specular), shininess));
color.w = 1.0;
gl_FragColor = color;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment