|
Hymn to Beauty
C++ 3D Engine
|
Component providing a material to Entity. More...
#include <Material.hpp>
Public Member Functions | |
| Material () | |
| Create new material. More... | |
| ~Material () override | |
| Destructor. More... | |
| void | Serialize (Json::Value &node, bool load) override |
| Save or load component values to/from JSON. More... | |
Public Member Functions inherited from Component::SuperComponent | |
| SuperComponent () | |
| Create new SuperComponent. More... | |
| virtual | ~SuperComponent () |
| Destructor. More... | |
| void | Kill () |
| Kill the component, will be removed at the end of the frame. More... | |
| bool | IsKilled () const |
| Get whether component has been killed. More... | |
Public Attributes | |
| TextureAsset * | albedo |
| Albedo texture. More... | |
| TextureAsset * | normal |
| Normal texture. More... | |
| TextureAsset * | roughnessMetallic |
| Roughness-metallic texture. More... | |
Public Attributes inherited from Component::SuperComponent | |
| Entity * | entity = nullptr |
| Pointer to which entity this component corresponds. More... | |
Component providing a material to Entity.
| Material::Material | ( | ) |
Create new material.
|
override |
Destructor.
|
overridevirtual |
Save or load component values to/from JSON.
| node | The JSON node to save to or load from. |
| load | Whether to load (otherwise saves). |
Implements Component::SuperComponent.
| TextureAsset* Component::Material::albedo |
Albedo texture.
| TextureAsset* Component::Material::normal |
Normal texture.
| TextureAsset* Component::Material::roughnessMetallic |
Roughness-metallic texture.
Roughness in green channel. Metallic in blue channel.