Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.01 KB

README.md

File metadata and controls

66 lines (43 loc) · 1.01 KB

miniRT

mini scene renderer using Ray Tracing.

Usage

Using pack file, without options

minirt < myScene.pack > result.bmp

Using options

minirt --input="myScene.rt" --base=".." --output="result.bmp"

Use the --help option to see how to use individual executables.

Build

Supported platforms are POSIX-like systems (such as Linux, macOS) and Windows

POSIX-like systems

# optional
sh metamake.sh

# build
make MINIRT_PRECISION=1

If above fails (because your environment has fake gcc/clang), try below

echo "CC = cc" > common.mk

USE_DEPS=0 make

Windows

Building on Windows requires CMake and a suitable build system.

# create CMakeLists.txt
metacmake

# for example
cmake -B builddir -G "Visual Studio 17 2022" -DMINIRT_PRECISION="double"

# build
cmake --build builddir

Test

Testing is available if GNU Make and AddressSanitizer is available.

sh metamake.sh
V=1 gmake test -s
# or `make` instead of `gmake`