Przeglądaj źródła

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

Mario Zechner 2 lat temu
rodzic
commit
c56c9b5cef

+ 1 - 1
spine-ts/spine-threejs/example/logarithmic-depth-buffer.html

@@ -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