|
TinyRaytracer 0.1
A simple C++ raytracer
|
Material related variables for objects in the scene. More...
#include <object.hpp>
Public Member Functions | |
| Materials () | |
| Construct a new Materials object, with every member as default. | |
| Materials (RGB color, RGB shininess, RGB trans, double ior, double roughness) | |
| Construct a new Materials object, with inputs. More... | |
Public Attributes | |
| RGB | color |
| The color, in RGB format, of the material. | |
| RGB | shininess |
| The shininess of the object, which is related to reflection. | |
| RGB | trans |
| double | ior = 1.458 |
| < The transparency of the object, which is related to refraction. More... | |
| double | roughness = 0 |
| Roughness of the object, Default to zero(none). | |
Material related variables for objects in the scene.
Construct a new Materials object, with inputs.
| color | |
| shininess | |
| trans | |
| ior | |
| roughness |
| double Materials::ior = 1.458 |
< The transparency of the object, which is related to refraction.
Index of refraction. Default to 1.458.