darts/material.h file

Class Material.

Classes

class Material
A base class used to represent surface material properties.

Functions

auto fresnel_dielectric(float cos_theta_i, float ext_ior, float int_ior) -> float
Calculates the unpolarized fresnel reflection coefficient for a dielectric material.
auto refract(const Vec3f& v, const Vec3f& n, float eta, Vec3f& refracted) -> bool
Generates a refracted direction, assuming refraction is possible based on the incident direction and refractive indices.
auto reflect(const Vec3f& v, const Vec3f& n) -> Vec3f
Reflects a vector, v, over another vector, n.