Просмотр исходного кода

Fixed an error where matching swizzle were reported as wrong when using swizzle of type vec3 v3 = v2.xxy

Nehon 10 лет назад
Родитель
Сommit
a04a304954
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java

+ 4 - 4
jme3-core/src/main/java/com/jme3/shader/ShaderUtils.java

@@ -120,11 +120,11 @@ public class ShaderUtils {
                 card = Integer.parseInt(type.replaceAll(".*vec", ""));
 
                 if (swizzling.length() > 0) {
-                    if (card >= swizzling.length()) {
+                    //if (card >= swizzling.length()) {
                         card = swizzling.length();
-                    } else {
-                        card = 0;
-                    }
+//                    } else {
+//                        card = 0;
+//                    }
                 }
             }
         }