matrix-engine-wgpu 1.0.2 → 1.0.4
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/app-worker.js +45 -0
- package/empty.js +12 -0
- package/examples/load-obj-file.js +48 -0
- package/examples/unlit-textures.js +27 -0
- package/examples.js +7 -0
- package/index.js +18 -5
- package/main.js +34 -23
- package/package.json +11 -2
- package/public/app-worker.js +47 -0
- package/public/app.js +2678 -310
- package/public/css/style.css +1 -2
- package/public/empty.html +25 -0
- package/public/empty.js +9107 -0
- package/public/examples.html +25 -0
- package/public/examples.js +9180 -0
- package/public/res/meshes/blender/piramyd.blend +0 -0
- package/public/res/meshes/blender/piramyd.blend1 +0 -0
- package/public/res/meshes/blender/piramyd.js +42 -0
- package/public/res/meshes/blender/piramyd.mtl +10 -0
- package/public/res/meshes/blender/piramyd.obj +18696 -0
- package/public/res/meshes/blender/piramyd1.js +42 -0
- package/public/res/meshes/blender/welcomeTextblend.blend +0 -0
- package/public/res/meshes/dragon/stanfordDragonData.js +5 -0
- package/public/res/meshes/obj/armor.obj +319 -0
- package/public/res/meshes/obj/armor.png +0 -0
- package/public/worker.html +25 -0
- package/readme.md +45 -37
- package/src/engine/ball.js +26 -10
- package/src/engine/cube.js +96 -81
- package/src/engine/engine.js +466 -4
- package/src/engine/final/adaptJSON1.js +53 -0
- package/src/engine/final/utils2.js +63 -0
- package/src/engine/loader-obj.js +469 -0
- package/src/engine/matrix-class.js +5 -4
- package/src/engine/matrix-mesh.js +49 -0
- package/src/engine/mesh-obj.js +526 -0
- package/src/engine/mesh.js +477 -0
- package/src/engine/utils.js +2 -0
- package/src/shaders/fragment.wgsl.js +48 -0
- package/src/shaders/shaders.js +4 -124
- package/src/shaders/vertex.wgsl.js +49 -0
- package/src/shaders/vertexShadow.wgsl.js +20 -0
- package/src/world.js +263 -0
- package/src/meWGPU.js +0 -173
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<link rel="manifest" href="manifest.web" />
|
|
5
|
+
<title>Matrix Engine webGPU variant. Created by Nikola Lukic zlatnaspirala@gmail.com </title>
|
|
6
|
+
<meta name="description" content="The benefits of this project is offering an overview of the entire application logic, easy native implementations (hybrid app), object structural. " />
|
|
7
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
8
|
+
<link defer rel="stylesheet" href="css/style.css" />
|
|
9
|
+
<link rel="apple-touch-icon" href="res/icons/512.png" />
|
|
10
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
11
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
12
|
+
<meta name="theme-color" content="#000000" />
|
|
13
|
+
<!-- <script defer src="./lib/gl-matrix-min.js"></script> -->
|
|
14
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimal-ui" />
|
|
15
|
+
<!-- <link rel="icon" type="image/png" sizes="96x96" href="res/icons/favicon-96x96.png" /> -->
|
|
16
|
+
<link rel="icon" type="image/png" sizes="512x512" href="res/icons/512.png" />
|
|
17
|
+
<!-- <link rel="icon" href="res/icons/favicon.ico" type="image/x-icon" /> -->
|
|
18
|
+
<!-- <meta name="msapplication-TileImage" content="res/icons/ms-icon.png" /> -->
|
|
19
|
+
<!-- <script src="https://webglfundamentals.org/webgl/resources/m4.js"></script> -->
|
|
20
|
+
</head>
|
|
21
|
+
<body allow="autoplay">
|
|
22
|
+
<div id="shaders"></div>
|
|
23
|
+
<script src="examples.js"></script>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|