[threejs] Fix color in fragment shader of log depth buffer example.

This commit is contained in:
Mario Zechner 2023-09-04 09:54:50 +02:00
parent 8e84ad990d
commit c56c9b5cef

View File

@ -128,7 +128,7 @@
void main(void) {
#include <logdepthbuf_fragment>
gl_FragColor = vec4(1, 0, 1, 1); // texture2D(map, vUv)*vColor;
gl_FragColor = texture2D(map, vUv)*vColor;
#ifdef USE_SPINE_ALPHATEST
if (gl_FragColor.a < alphaTest) discard;
#endif