File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ Temporary Items
179
179
# External Libraries
180
180
glfw /
181
181
glfw3webgpu /
182
+ glm /
182
183
webgpu /
183
184
184
185
# Obj files
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ add_executable(WebGPUTracer
26
26
external/implementation.cpp )
27
27
28
28
include_directories (src/include )
29
+ include_directories (glm )
29
30
include_directories ("external/stb" )
30
31
include_directories ("external/tinyobjloader" )
31
32
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ This renderer is based on ["Learn WebGPU for C++"](https://eliemichel.github.io/
9
9
## Requirements
10
10
11
11
- [ GLFW] ( https://eliemichel.github.io/LearnWebGPU/getting-started/opening-a-window.html#installation-of-glfw )
12
+ - [ GLM] ( https://github.com/g-truc/glm )
12
13
- WebGPU related
13
14
- [ GLFW3 WebGPU Extension] ( https://eliemichel.github.io/LearnWebGPU/getting-started/the-adapter.html#glfw3-webgpu-extension )
14
15
- [ WebGPU] ( https://eliemichel.github.io/LearnWebGPU/getting-started/hello-webgpu.html#option-c-the-flexibility-of-both )
Original file line number Diff line number Diff line change 10
10
#include < array>
11
11
#include < random>
12
12
13
+ #define GLM_FORCE_DEPTH_ZERO_TO_ONE
14
+ #define GLM_FORCE_LEFT_HANDED
15
+
16
+ #include < glm.hpp>
17
+ #include < ext.hpp>
13
18
14
19
using std::shared_ptr;
15
20
using std::make_shared;
16
21
using std::sqrt;
22
+ using glm::vec3;
23
+ using glm::vec4;
24
+ using glm::mat4x4;
17
25
18
26
constexpr double INF = std::numeric_limits<double >::infinity();
19
27
You can’t perform that action at this time.
0 commit comments