浏览代码

effect fix

Ben Adams 9 年之前
父节点
当前提交
9135d639d4
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/Materials/babylon.effect.ts

+ 4 - 4
src/Materials/babylon.effect.ts

@@ -451,8 +451,8 @@
                 cache[1] = y;
                 changed = true;
             }
-            if (cache[2] !== y) {
-                cache[2] = y;
+            if (cache[2] !== z) {
+                cache[2] = z;
                 changed = true;
             }
 
@@ -477,8 +477,8 @@
                 cache[1] = y;
                 changed = true;
             }
-            if (cache[2] !== y) {
-                cache[2] = y;
+            if (cache[2] !== z) {
+                cache[2] = z;
                 changed = true;
             }
             if (cache[3] !== w) {