blob: 7d395c08b6307c1632c1f55183f331705fb9f2dd (
plain)
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
|
# Pathtracing
Second attempt at a renderer, written in C++ instead of C to compare languages.
This is also my first big project in C++.
My first attempt can be seen here [github](https://github.com/jbjjbjjbj/raytrace) and here [cgit](https://git.jtle.dk/raytrace/about/).
## Preview
![render](https://git.jtle.dk/pathtrace/plain/generated.png?h=old_rendered)
## Build requirements
- Catch2
- Qt5
## Building
This is just standard cmake building.
```
mkdir build
cd build
cmake ../
make
```
The program does currently not have any options, so just run it.
```
./pathtracing
```
## Testing
To test the program follow the steps above but instead of `make` run `make test`.
```
make test
```
Then run the test executable.
Remember to rerun `make test` when changing source files.
```
./run_test
```
|