Browse Source

Merge pull request #6936 from BabylonJSGuide/master

Include uvs in addPoints
David Catuhe 5 years ago
parent
commit
1487d96ba8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Particles/pointsCloudSystem.ts

+ 3 - 0
src/Particles/pointsCloudSystem.ts

@@ -603,6 +603,9 @@ export class PointsCloudSystem implements IDisposable {
             if (cp.color) {
                 this._colors.push(cp.color.r, cp.color.g, cp.color.b, cp.color.a);
             }
+            if (cp.uv) {
+                this._uvs.push(cp.uv.x, cp.uv.y);
+            }
             idx++;
         }
         this.nbParticles += nb;