fix texture diffuse

This commit is contained in:
gbrochar 2020-11-23 21:16:36 +01:00
parent 8dae1792e5
commit ed902a2ed2
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function main() {
0.), 10.);
vec3 tmp = extremize(mod(vPosition.xyz + vec3(100.), vec3(3.)), 3.);
float texture = (tmp.x + tmp.y + tmp.z) / 9.;
gl_FragColor = vec4((vec3(1.) * diffuse * 0.8) + (texture * 0.2) + (specular * vec3(1.)), 1.0);
gl_FragColor = vec4((texture * diffuse * 0.9) + (texture * 0.1) + (specular * vec3(1.)), 1.0);
}`;
/* eslint-enable */