Compare commits
2 Commits
979a25ed7e
...
9e8a0022dd
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e8a0022dd | |||
| e35d1a68a3 |
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
demo.png filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
build/
|
||||
*.ff
|
||||
*.png
|
||||
!demo.png
|
||||
|
||||
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Batomorph
|
||||
|
||||
Batomorph is a simple ray tracer, written in C23 for POSIX systems.
|
||||
|
||||

|
||||
|
||||
To build with CMake (there are no dependencies):
|
||||
|
||||
```sh
|
||||
cmake -B build
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
You may want to adjust the `NTHREADS` definition in `src/render.c` to
|
||||
match your system.
|
||||
|
||||
The demo programs (`build/demo` and `build/rand`) will write the
|
||||
rendered image in sRGB
|
||||
[Farbfeld](https://tools.suckless.org/farbfeld/) to `stdout`:
|
||||
|
||||
```sh
|
||||
build/demo > out.ff # Produce Farbfeld file
|
||||
build/demo | ff2png > out.png # Produce PNG file
|
||||
build/demo | feh # View directly
|
||||
```
|
||||
|
||||
(Note that `ff2png` and `feh` are third-party programs)
|
||||
Reference in New Issue
Block a user