浏览代码

fixed the uvs bug

jbousquie 9 年之前
父节点
当前提交
ee9bcd6128
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Particles/babylon.solidParticleSystem.ts

+ 2 - 1
src/Particles/babylon.solidParticleSystem.ts

@@ -114,7 +114,8 @@ module BABYLON {
         private _uvsToShapeUV(uvs): number[] {
         private _uvsToShapeUV(uvs): number[] {
             var shapeUV = [];
             var shapeUV = [];
             if (uvs) {
             if (uvs) {
-                    shapeUV.push(uvs.x, uvs.y, uvs.z, uvs.w);
+                for (var i = 0; i < uvs.length; i++)
+                    shapeUV.push(uvs[i]);
             }
             }
             return shapeUV;
             return shapeUV;
         }
         }