Compare commits

..

2 Commits

Author SHA1 Message Date
9e8a0022dd Write README 2025-09-23 15:51:30 +01:00
e35d1a68a3 Add demo image 2025-09-23 15:51:30 +01:00

View File

@@ -1,11 +1,10 @@
# Batomorph # Batomorph
Batomorph is a simple ray tracer, written for POSIX systems in C23 Batomorph is a simple ray tracer, written in C23 for POSIX systems.
with no runtime dependencies (outside of the standard library).
![Demo rendering](demo.png) ![Demo rendering](demo.png)
To build with CMake: To build with CMake (there are no dependencies):
```sh ```sh
cmake -B build cmake -B build
@@ -13,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