#include <lambertian.h>
Lambertian diffuse (matte) type Material.
◆ Lambertian()
Lambertian::Lambertian |
( |
const Vector3D & |
a | ) |
|
|
inline |
◆ MatColor()
virtual Vector3D Lambertian::MatColor |
( |
| ) |
const |
|
inlinevirtual |
Return Vector3D value for material color.
Example:
MatColor();
Implements Material.
◆ MatFuzz()
virtual double Lambertian::MatFuzz |
( |
| ) |
const |
|
inlinevirtual |
Return double value for material fuzz.
Example:
MatFuzz();
Implements Material.
◆ MatRef()
virtual double Lambertian::MatRef |
( |
| ) |
const |
|
inlinevirtual |
Return double value for material refraction index.
Example:
MatRef();
Implements Material.
◆ MatType()
virtual int Lambertian::MatType |
( |
| ) |
const |
|
inlinevirtual |
Return int value based on which material an object has. Used to determine normal calculation for box
Example:
MatType();
Implements Material.
◆ Scatter()
virtual bool Lambertian::Scatter |
( |
const Ray & |
r_in, |
|
|
const HitRecord & |
rec, |
|
|
Vector3D & |
attenuation, |
|
|
Ray & |
scattered |
|
) |
| const |
|
inlinevirtual |
Return boolean value if ray scatters based on Material attenuation.
Example:
Scatter(StartingRay, rec, attenuation, ScatteredRay);
Implements Material.
The documentation for this class was generated from the following file: