Browse Source

effect fix

Ben Adams 9 years ago
parent
commit
9135d639d4
1 changed files with 4 additions and 4 deletions
  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) {