21void print(std::string str);
27double setExpose(
double c);
31std::tuple<double,double,double> getBarycentric(
const Triangle& tri,
const point3& point);
33double randD(
double start,
double end);
35double standerdD(
double stddev);
42void printErr(std::string str);
ObjectInfo is a class that passes the parameters of a ray hit, and the details of the object that was...
Definition: object.hpp:50
Definition: struct.hpp:39
Class Triangle, with 3 vertices that made it up.
Definition: object.hpp:163
void print(std::string str)
print a string
Definition: helper.cpp:24
void setImageColor(Image &img, RGBA rgba, int x, int y)
Set the Image Color at pixel (x,y) based on the RGBA input.
Definition: helper.cpp:74
double RGBtosRGB(double l)
Translate color from linear RGB to sRGB.
Definition: helper.cpp:46
double sRGBtoRGB(double l)
Translate color from sRGB to linear RGB.
Definition: helper.cpp:62