Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
Public Member Functions | List of all members
rt::DayNightMaterial Class Reference
Inheritance diagram for rt::DayNightMaterial:
rt::Material

Public Member Functions

 DayNightMaterial (Material *day, Material *night)
 
virtual color diffuse (const element &e, const photon &external_light) const
 Get the diffuse color of a surface element. More...
 
virtual double reflexion (const element &e, const photon &external_light) const
 
virtual photon emission (const element &e, const photon &external_light) const
 
virtual vector disturbance (const element &e, const photon &external_light) const
 
- Public Member Functions inherited from rt::Material
 Material (const color &diffuse, double reflexion=0.0, const photon &emission=photon(), const vector &disturbance=vector(0.0, 0.0, 1.0))
 Make a new material. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from rt::Material
static MaterialdefaultMaterial ()
 The default material. More...
 
- Protected Attributes inherited from rt::Material
color _diffuse
 
double _reflexion
 
photon _emission
 
vector _disturbance
 

Member Function Documentation

◆ diffuse()

color rt::DayNightMaterial::diffuse ( const element e,
const photon external_light 
) const
virtual

Get the diffuse color of a surface element.

Parameters
eA surface element attached (or not) to this material.

Reimplemented from rt::Material.


The documentation for this class was generated from the following files: