ray_tracer.cpp File Reference
+ Include dependency graph for ray_tracer.cpp:

Namespaces

namespace  cpe
 Namespace for CPE classes.
 

Functions

void cpe::render (image &image_parameter, const scene &scene_parameter)
 
color cpe::ray_trace (const ray &r, const scene &scene_parameter)
 Compute color associated to a single ray. More...
 
bool cpe::compute_first_intersection (const ray &r, const scene &scene_parameter, intersection &inter, int &index)
 Compute the first intersection of a ray in the 3D scene. More...
 
bool cpe::is_in_shadow (const vec3 &position, const vec3 &light_position, const scene &scene_parameter)
 Given a position in the 3D scene, and a position of a single light, the function check if the position is in the shadow of other objects or not. More...