#include <Engine/Data/BlinnPhongMaterial.hpp>
|
Core::Utils::Color | m_kd { 0.7, 0.7, 0.7, 1.0 } |
|
Core::Utils::Color | m_ks { 0.3, 0.3, 0.3, 1.0 } |
|
Scalar | m_ns { 64.0 } |
|
Scalar | m_alpha { 1.0 } |
|
bool | m_perVertexColor { false } |
|
bool | m_renderAsSplat { false } |
|
|
class | BlinnPhongMaterialConverter |
|
Implementation of the Blinn-Phong Material BSDF.
- Todo:
- due to "Material.glsl" interface modification, must test this version with all plugins, apps, ... that uses Radium Renderer
Definition at line 29 of file BlinnPhongMaterial.hpp.
◆ BlinnPhongMaterial()
Ra::Engine::Data::BlinnPhongMaterial::BlinnPhongMaterial |
( |
const std::string & |
instanceName | ) |
|
|
explicit |
Construct a named Blinn-Phongmaterial
- Parameters
-
instanceName | The name of this instance of the material |
Definition at line 19 of file BlinnPhongMaterial.cpp.
◆ ~BlinnPhongMaterial()
Ra::Engine::Data::BlinnPhongMaterial::~BlinnPhongMaterial |
( |
| ) |
|
|
override |
Destructor.
- Note
- The material does not have ownership on its texture. This destructor do not delete the associated textures.
Definition at line 22 of file BlinnPhongMaterial.cpp.
◆ addTexture() [1/2]
Add an new texture, from a TextureData, to control the specified BSDF parameter.
- Parameters
-
semantic | The texture semantic |
texture | The texture to use (file) |
- Returns
- the corresponding TextureData struct
Definition at line 165 of file BlinnPhongMaterial.hpp.
◆ addTexture() [2/2]
Add an already existing texture to control the specified BSDF parameter.
- Parameters
-
semantic | The texture semantic |
texture | The texture to use |
Definition at line 142 of file BlinnPhongMaterial.hpp.
◆ getParametersMetadata()
nlohmann::json Ra::Engine::Data::BlinnPhongMaterial::getParametersMetadata |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getTexture()
◆ isTransparent()
bool Ra::Engine::Data::BlinnPhongMaterial::isTransparent |
( |
| ) |
const |
|
overridevirtual |
◆ registerMaterial()
void Ra::Engine::Data::BlinnPhongMaterial::registerMaterial |
( |
| ) |
|
|
static |
Register the material in the material library. After registration, the material could be instantiated by any Radium system, renderer, plugin, ...
Definition at line 87 of file BlinnPhongMaterial.cpp.
◆ setColoredByVertexAttrib()
void Ra::Engine::Data::BlinnPhongMaterial::setColoredByVertexAttrib |
( |
bool |
| ) |
|
|
inlineoverridevirtual |
Makes the Material take its base color from the VERTEX_COLOR attribute of the rendered geometry.
- Parameters
-
state | activate (true) or deactivate (false) VERTEX_COLOR attribute usage |
Any material that support per-vertex color parameterization should implement this method accordingly
Reimplemented from Ra::Engine::Data::Material.
Definition at line 186 of file BlinnPhongMaterial.hpp.
◆ unregisterMaterial()
void Ra::Engine::Data::BlinnPhongMaterial::unregisterMaterial |
( |
| ) |
|
|
static |
Remove the material from the material library. After removal, the material is no more available, ...
Definition at line 145 of file BlinnPhongMaterial.cpp.
The documentation for this class was generated from the following files: