QgsPhongMaterialSettings class
3 Basic shading material used for rendering based on the Phong shading model with three color components: ambient, diffuse and specular.
Contents
- Reference
Public functions
- auto ambient() const -> QColor
- Returns ambient color component.
- auto diffuse() const -> QColor
- Returns diffuse color component.
- void readXml(const QDomElement& elem)
- Reads settings from a DOM element.
- void setAmbient(const QColor& ambient)
- Sets ambient color component.
- void setDiffuse(const QColor& diffuse)
- Sets diffuse color component.
- void setShininess(float shininess)
- Sets shininess of the surface.
- void setSpecular(const QColor& specular)
- Sets specular color component.
- auto shininess() const -> float
- Returns shininess of the surface.
- auto specular() const -> QColor
- Returns specular color component.
- void writeXml(QDomElement& elem) const
- Writes settings to a DOM element.