-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.js
More file actions
50 lines (48 loc) · 1.53 KB
/
index.js
File metadata and controls
50 lines (48 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* This file created by:
* @author Nikola Lukic
* @email zlatnaspirala@gmail.com mart 2024
* @description npm import/export
*/
// import {degToRad, radToDeg} from "./utils";
import {downloadMeshes, makeObjSeqArg} from "./src/engine/loader-obj.js";
import MatrixEngineWGPU from "./src/world.js";
import {
addRaycastsAABBListener,
addRaycastListener, getRayFromMouse,
getRayFromMouse2, rayIntersectsSphere,
computeWorldVertsAndAABB, rayIntersectsAABB,
computeAABB
} from "./src/engine/raycast.js";
import {OSCILLATOR, SWITCHER} from "./src/engine/utils.js";
import {uploadGLBModel} from "./src/engine/loaders/webgpu-gltf.js";
var about = () => {
console.info("Hi npm. matrix-engine for webgpu is ready...")
console.info("--------------------------------------------")
console.info("List of features: ")
console.info(" - Loading obj files with uvs")
console.info(" - Scene camera use -z front")
console.info(" - position, rotation - same like matrix-engine")
console.info(" - Physics used Ammo.js build")
console.info(" - Raycaster HIT/CLICK on object scene")
console.info(" - Light cast shadow multi lights")
console.info(" - NEXT FOR NPM - Run Visual Scripting Editor")
console.info("--------------------------------------------")
}
export {
MatrixEngineWGPU,
downloadMeshes,
rayIntersectsSphere,
getRayFromMouse,
getRayFromMouse2,
addRaycastListener,
addRaycastsAABBListener,
rayIntersectsAABB,
computeAABB,
computeWorldVertsAndAABB,
makeObjSeqArg,
SWITCHER,
OSCILLATOR,
uploadGLBModel,
about
}