瀏覽代碼

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

Mario Zechner 2 年之前
父節點
當前提交
c56c9b5cef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-ts/spine-threejs/example/logarithmic-depth-buffer.html

+ 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