pine is a physically based renderer.
Feel free to play around, open issues, or help with one of the TODOs.
cmake -B build
cmake --build build
After rendering is finished, you should be able to find the result in
scenes/results/
build/pine scenes/spheres.txt
build/pine scenes/cloud.txt
-
Implementing reading image in bmp format in
util/fileio.cpp
(can referWriteImageBMP():util/fileio.cpp
) -
isnan()
inpstd/math.h
is implemented by a call to__builtin_isnan()
, we should be able to do it ourself by comparing the bit pattern of the input floating-point number with bit pattern of nan number(https://docs.microsoft.com/en-us/cpp/build/ieee-floating-point-representation?view=msvc-170#nan---not-a-number)