|
QGIS API Documentation 4.1.0-Master (ca2ac17535b)
|
An environment light entity. More...
#include <qgsenvironmentlight.h>

Public Types | |
| enum class | Mode { Disabled , SpecularMapWithSphericalHarmonics } |
| Environmental lighting modes. More... | |
Public Member Functions | |
| QgsEnvironmentLight (QgsFrameGraph *frameGraph, QNode *parent=nullptr) | |
| Constructor. | |
| void | setMode (Mode mode) |
| Sets the environment light mode. | |
| void | setSpecularMap (Qt3DRender::QTextureCubeMap *specularTexture, int mipLevels) |
| Sets the specular map texture and available mip levels. | |
| void | setSphericalHarmonics (const QVector< QVector3D > &harmonics) |
| Sets the spherical harmonics for irradiant light. | |
| void | setStrength (float strength) |
| Sets the strength of the environmental light, as a factor between 0 and 1. | |
|
strong |
Environmental lighting modes.
| Enumerator | |
|---|---|
| Disabled | No environment lighting. |
| SpecularMapWithSphericalHarmonics | Specular map, using spherical harmonics for irradiance. |
Definition at line 51 of file qgsenvironmentlight.h.
| QgsEnvironmentLight::QgsEnvironmentLight | ( | QgsFrameGraph * | frameGraph, |
| QNode * | parent = nullptr ) |
Constructor.
Definition at line 29 of file qgsenvironmentlight.cpp.
| void QgsEnvironmentLight::setMode | ( | Mode | mode | ) |
Sets the environment light mode.
Definition at line 51 of file qgsenvironmentlight.cpp.
| void QgsEnvironmentLight::setSpecularMap | ( | Qt3DRender::QTextureCubeMap * | specularTexture, |
| int | mipLevels ) |
Sets the specular map texture and available mip levels.
Definition at line 81 of file qgsenvironmentlight.cpp.
| void QgsEnvironmentLight::setSphericalHarmonics | ( | const QVector< QVector3D > & | harmonics | ) |
Sets the spherical harmonics for irradiant light.
Definition at line 69 of file qgsenvironmentlight.cpp.
| void QgsEnvironmentLight::setStrength | ( | float | strength | ) |
Sets the strength of the environmental light, as a factor between 0 and 1.
Definition at line 64 of file qgsenvironmentlight.cpp.