simulationjsv2 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -319,7 +319,8 @@ export class Simulation {
319
319
  screenSize.buffer, screenSize.byteOffset, screenSize.byteLength);
320
320
  const vertexArray = [];
321
321
  this.scene.forEach((obj) => {
322
- vertexArray.push(...obj.getBuffer(this.camera, this.camera.hasUpdated()));
322
+ const buffer = obj.getBuffer(this.camera, this.camera.hasUpdated());
323
+ buffer.forEach((vertex) => vertexArray.push(vertex));
323
324
  });
324
325
  this.camera.updateConsumed();
325
326
  const vertexF32Array = new Float32Array(vertexArray);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Jackson Otto",
7
7
  "description": "A simple graphics library using WebGPU",
8
- "version": "0.1.0",
8
+ "version": "0.1.2",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./dist/index.js",