Procházet zdrojové kódy

Merge pull request #8444 from rmiguez0/patch-1

Update tiledPlaneBuilder
sebavan před 5 roky
rodič
revize
2787f30d08
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 5 5
      src/Meshes/Builders/tiledPlaneBuilder.ts

+ 5 - 5
src/Meshes/Builders/tiledPlaneBuilder.ts

@@ -155,8 +155,8 @@ VertexData.CreateTiledPlane = function(options: { pattern?: number, tileSize?: n
             positions.push(halfWidth + adjustX, startY + offsetY + adjustY, 0);
             indices.push(index, index + 1, index + 3, index + 1, index + 2, index + 3);
             index += 4;
-            a = 0,
-                b = 1 - offsetY / tileHeight;
+            a = 0;
+            b = 1 - offsetY / tileHeight;
             c = offsetX / tileWidth;
             d = 1;
             uvPart = [a, b, c, b, c, d, a, d];
@@ -207,8 +207,8 @@ VertexData.CreateTiledPlane = function(options: { pattern?: number, tileSize?: n
             positions.push(halfWidth + adjustX, endY + adjustY, 0);
             indices.push(index, index + 1, index + 3, index + 1, index + 2, index + 3);
             index += 4;
-            a = 0,
-                b = 0;
+            a = 0;
+            b = 0;
             c = offsetX / tileWidth;
             d = offsetY / tileHeight;
             uvPart = [a, b, c, b, c, d, a, d];
@@ -436,4 +436,4 @@ export class TiledPlaneBuilder {
 
         return plane;
     }
-}
+}