Fixed Shape.fragment.glsl

This commit is contained in:
OLEGSHA 2020-07-29 15:12:34 +03:00
parent 021c63cf98
commit 9d36b86d10

View File

@ -43,7 +43,7 @@ void applyShading() {
float angleCos = dot(normal, light);
float lightness = (angleCos + 1.5) / 2;
linearMultiply(gl_FragColor, vec4(lightness.xxx, 1.0));
linearMultiply(gl_FragColor, vec4(lightness, lightness, lightness, 1.0));
}
void applyAlpha() {