TinyRaytracer 0.1
A simple C++ raytracer
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Materials Class Reference

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).
 

Detailed Description

Material related variables for objects in the scene.

Constructor & Destructor Documentation

◆ Materials()

Materials::Materials ( RGB  color,
RGB  shininess,
RGB  trans,
double  ior,
double  roughness 
)
inline

Construct a new Materials object, with inputs.

Parameters
color
shininess
trans
ior
roughness

Member Data Documentation

◆ ior

double Materials::ior = 1.458

< The transparency of the object, which is related to refraction.

Index of refraction. Default to 1.458.


The documentation for this class was generated from the following file: