Struct GeometryPhongMaterial

Struct Documentation

struct GeometryPhongMaterial

Mesh material based on the Phong lighting model. Diffuse color is stored in GeometryObject::meshColor.

Public Functions

GeometryPhongMaterial() = default
inline GeometryPhongMaterial(const Eigen::Vector4d &meshEmissionColor, const Eigen::Vector4d &meshSpecularColor, double meshShininess)

Public Members

Eigen::Vector4d meshEmissionColor = {Eigen::Vector4d(0., 0., 0., 1.)}

RGBA emission (ambient) color value of the GeometryObject::geometry object.

Eigen::Vector4d meshSpecularColor = {Eigen::Vector4d(0., 0., 0., 1.)}

RGBA specular color value of the GeometryObject::geometry object.

double meshShininess = {0.}

Shininess associated to the specular lighting model.

This value must normalized between 0 and 1.