fix texture diffuse
This commit is contained in:
parent
8dae1792e5
commit
ed902a2ed2
|
@ -80,7 +80,7 @@ function main() {
|
||||||
0.), 10.);
|
0.), 10.);
|
||||||
vec3 tmp = extremize(mod(vPosition.xyz + vec3(100.), vec3(3.)), 3.);
|
vec3 tmp = extremize(mod(vPosition.xyz + vec3(100.), vec3(3.)), 3.);
|
||||||
float texture = (tmp.x + tmp.y + tmp.z) / 9.;
|
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 */
|
/* eslint-enable */
|
||||||
|
|
Loading…
Reference in New Issue