Compare commits
2 Commits
30b16b298d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c04d674a5 | |||
| 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/
|
build/
|
||||||
*.ff
|
*.ff
|
||||||
*.png
|
*.png
|
||||||
|
!demo.png
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -1,8 +1,10 @@
|
|||||||
# Batomorph
|
# Batomorph
|
||||||
|
|
||||||
This is a simple raytracer, written for POSIX systems in C23 with zero
|
Batomorph is a simple ray tracer, written in C23 for POSIX systems.
|
||||||
runtime dependencies (outside of the standard library). To build with
|
|
||||||
CMake:
|

|
||||||
|
|
||||||
|
To build with CMake (there are no dependencies):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cmake -B build
|
cmake -B build
|
||||||
@@ -10,12 +12,11 @@ cmake --build build
|
|||||||
```
|
```
|
||||||
|
|
||||||
You may want to adjust the `NTHREADS` definition in `src/render.c` to
|
You may want to adjust the `NTHREADS` definition in `src/render.c` to
|
||||||
match your system for best performance.
|
match your system.
|
||||||
|
|
||||||
When ran, the demo programs (`build/demo` and `build/rand`) will write
|
The demo programs (`build/demo` and `build/rand`) will write the
|
||||||
the rendered image in sRGB
|
rendered image in sRGB
|
||||||
[Farbfeld](https://tools.suckless.org/farbfeld/) to standard out. For
|
[Farbfeld](https://tools.suckless.org/farbfeld/) to `stdout`:
|
||||||
example:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
build/demo > out.ff # Produce Farbfeld file
|
build/demo > out.ff # Produce Farbfeld file
|
||||||
@@ -24,3 +25,8 @@ build/demo | feh # View directly
|
|||||||
```
|
```
|
||||||
|
|
||||||
(Note that `ff2png` and `feh` are third-party programs)
|
(Note that `ff2png` and `feh` are third-party programs)
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Batomorph is Copyright © Camden Dixie O'Brien, and is available under
|
||||||
|
the Komorebi 2.0.0 license. See [LICENSE.md](LICENSE.md) for details.
|
||||||
|
|||||||
Reference in New Issue
Block a user