#include <matter.hpp>
Public Member Functions | |
Matter (const bool &ok, const bool &is_specular=false, const bool &index=1.0f, const bool &absortion=1.0f) | |
bool | is_ok () |
bool | is_specular () |
virtual float | specular () const=0 |
float | index () const |
float | absortion () const |
virtual float | eval (trihedron &tri, vec3 &in, vec3 &out)=0 |
virtual int | sample (trihedron &tri, vec3 &in, int number, vec3 *outs) |
Protected Attributes | |
bool | _ok |
bool | _is_specular |
float | _index |
float | _absortion |