shading.hpp File Reference
+ Include dependency graph for shading.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cpe::shading
 Container for shading parameters (ambiant,diffuse,specular) More...
 

Namespaces

namespace  cpe
 Namespace for CPE classes.
 

Functions

color cpe::apply_shading (const vertex &v, const scene &scene3d, const shading &shad)
 Apply gouraud shading on the given vertex. More...
 
color cpe::apply_shading (const vec3 &p, const vec3 &n, const color &c, const scene &scene3d, const shading &shad)
 Apply gouraud shading. More...