simulationjsv2 0.8.0 → 0.8.1

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.
package/TODO.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # TODO
2
2
 
3
- - [ ] Change render vertices to use index buffer
4
- - [ ] Add cull modes
3
+ - [x] Change render vertices to use index buffer
4
+ - [x] Add cull modes
5
5
  - [x] Fix shaders
6
6
  - [x] Clean up polygons
7
7
  - [x] Fix transparency
package/dist/graphics.js CHANGED
@@ -375,8 +375,8 @@ export class Square extends SimulationElement2d {
375
375
  */
376
376
  constructor(pos, width, height, color, rotation) {
377
377
  super(pos, vector3(0, 0, rotation), color);
378
- this.width = width;
379
- this.height = height;
378
+ this.width = width / devicePixelRatio;
379
+ this.height = height / devicePixelRatio;
380
380
  this.geometry = new SquareGeometry(this.width, this.height);
381
381
  }
382
382
  getWidth() {
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.8.0",
8
+ "version": "0.8.1",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./dist/index.js",