|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Material of a mesh instance in a model. More...
#include <GREM/resource/Model.hpp>
Classes | |
| struct | TextureInfo |
| Information about how a material uses a texture. More... | |
Public Attributes | |
| MaterialType | materialType |
| How to interpret the material parameters when shading. | |
| vec4 | baseColorFactor |
| Base color factor of the material. | |
| float | occlusionStrength |
| Occlusion strength of the material. | |
| float | roughnessFactor |
| Roughness factor of the material. | |
| float | metallicFactor |
| Metallic factor of the material. | |
| float | normalScale |
| Normal scale of the material. | |
| vec3 | emissiveFactor |
| Emissive factor of the material. | |
| float | alphaCutoff |
| Alpha cutoff value of the material. | |
| float | indexOfRefraction |
| Index of refraction of the material. | |
| TextureInfo | baseColorMap |
| Base color map of the material (sRGB-encoded), or an out-of-range index for a fully white texture. | |
| TextureInfo | occlusionRoughnessMetallicMap |
| Occlusion-roughness-metallic map of the material (linearly encoded), or an out-of-range index for a fully white texture. | |
| TextureInfo | normalMap |
| Normal map of the material (linearly encoded), or an out-of-range index for a flat normal texture. | |
| TextureInfo | emissiveMap |
| Emissive map of the material (sRGB-encoded), or an out-of-range index for a fully white texture. | |
| FragmentFlags | fragmentFlags |
| Fragment flags of the material. | |
Material of a mesh instance in a model.
| MaterialType grem::resource::Model::Material::materialType |
How to interpret the material parameters when shading.
| vec4 grem::resource::Model::Material::baseColorFactor |
Base color factor of the material.
| float grem::resource::Model::Material::occlusionStrength |
Occlusion strength of the material.
| float grem::resource::Model::Material::roughnessFactor |
Roughness factor of the material.
| float grem::resource::Model::Material::metallicFactor |
Metallic factor of the material.
| float grem::resource::Model::Material::normalScale |
Normal scale of the material.
| vec3 grem::resource::Model::Material::emissiveFactor |
Emissive factor of the material.
| float grem::resource::Model::Material::alphaCutoff |
Alpha cutoff value of the material.
| float grem::resource::Model::Material::indexOfRefraction |
Index of refraction of the material.
| TextureInfo grem::resource::Model::Material::baseColorMap |
Base color map of the material (sRGB-encoded), or an out-of-range index for a fully white texture.
| TextureInfo grem::resource::Model::Material::occlusionRoughnessMetallicMap |
Occlusion-roughness-metallic map of the material (linearly encoded), or an out-of-range index for a fully white texture.
| TextureInfo grem::resource::Model::Material::normalMap |
Normal map of the material (linearly encoded), or an out-of-range index for a flat normal texture.
| TextureInfo grem::resource::Model::Material::emissiveMap |
Emissive map of the material (sRGB-encoded), or an out-of-range index for a fully white texture.
| FragmentFlags grem::resource::Model::Material::fragmentFlags |
Fragment flags of the material.