@woosh/meep-engine 2.43.43 → 2.43.44

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.
@@ -0,0 +1,6 @@
1
+ export enum DrawMode {
2
+ Triangles = 0,
3
+ Lines = 2,
4
+ LineSegments = 3,
5
+ Points = 4
6
+ }
@@ -1,9 +1,11 @@
1
1
  import {BufferGeometry, Material} from "three";
2
2
  import {AABB3} from "../../../../core/bvh2/aabb3/AABB3";
3
+ import {DrawMode} from "./DrawMode";
3
4
 
4
5
  export class ShadedGeometry {
5
6
  readonly geometry: BufferGeometry
6
7
  readonly material: Material
8
+ readonly mode: DrawMode
7
9
 
8
10
  /**
9
11
  * @deprecated
@@ -12,7 +14,7 @@ export class ShadedGeometry {
12
14
 
13
15
  getBoundingBox(destination: AABB3): void
14
16
 
15
- from(geometry: BufferGeometry, material: Material): void
17
+ from(geometry: BufferGeometry, material: Material, draw_mode?: DrawMode): void
16
18
 
17
- static from(geometry: BufferGeometry, material: Material): ShadedGeometry
19
+ static from(geometry: BufferGeometry, material: Material, draw_mode?: DrawMode): ShadedGeometry
18
20
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.43.43",
8
+ "version": "2.43.44",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",