RayTracer 1.0
Ray tracing is a technique used to generate realistic digital images by simulating the inverse path of light. Our goal is to create a program able to generate an image from a file describing the scene.
 
Loading...
Searching...
No Matches
RayTracer::IMaterial Class Referenceabstract

#include <IMaterial.hpp>

Inheritance diagram for RayTracer::IMaterial:
RayTracer::FlatColor

Public Member Functions

virtual ~IMaterial ()=default
 
virtual Color getBaseColor () const =0
 
virtual Color shade (const Color &base, const Color &light, const Math::Point3D &point) const =0
 

Detailed Description

Definition at line 13 of file IMaterial.hpp.

Constructor & Destructor Documentation

◆ ~IMaterial()

virtual RayTracer::IMaterial::~IMaterial ( )
virtualdefault

Member Function Documentation

◆ getBaseColor()

virtual Color RayTracer::IMaterial::getBaseColor ( ) const
pure virtual

Implemented in RayTracer::FlatColor.

◆ shade()

virtual Color RayTracer::IMaterial::shade ( const Color & base,
const Color & light,
const Math::Point3D & point ) const
pure virtual

Implemented in RayTracer::FlatColor.


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