Classes | |
class | Matter |
The basis class for matter models. More... | |
class | Matter |
The basis class for matter models. More... | |
Functions | |
Matter::Matter (const bool &ok, const bool &is_specular=false, const bool &index=1.0f, const bool &absortion=1.0f) | |
bool | Matter::is_ok () |
bool | Matter::is_specular () |
virtual float | Matter::specular () const=0 |
float | Matter::index () const |
float | Matter::absortion () const |
virtual float | Matter::eval (trihedron &tri, vec3 &in, vec3 &out)=0 |
virtual int | Matter::sample (trihedron &tri, vec3 &in, int number, vec3 *outs) |
Variables | |
bool | Matter::_ok |
bool | Matter::_is_specular |
float | Matter::_index |
float | Matter::_absortion |
Matter describes how light interact with matter.
TO FINNISH BEFORE WRITING DOXYGEN
int Matter::sample | ( | trihedron & | tri, | |
vec3 & | in, | |||
int | number, | |||
vec3 * | outs | |||
) | [virtual, inherited] |
Generates at most 'number' outgoing samples according to 'in' and 'tri', stores them in 'outs' and returns the real samples number.