API Documentation
DecodedMaterialData.h
1 // DecodedMaterialData.h
3 //
5 
6 namespace nkGraphics
7 {
11  struct DecodedMaterialData final
12  {
13  // Attributes
16  TextureChannels _ambientTextureChannels ;
17 
20  TextureChannels _diffuseTextureChannels ;
21 
24  TextureChannels _specularTextureChannels ;
25 
28  TextureChannels _emissiveTextureChannels ;
29 
30  float _roughnessFactor = 0.5f ;
32  TextureChannels _roughnessTextureChannels ;
33 
34  float _metalnessFactor = 0.5f ;
36  TextureChannels _metalnessTextureChannels ;
37 
38  float _glossinessFactor = 0.5f ;
40  TextureChannels _glossinessTextureChannels ;
41 
42  float _occlusionFactor = 1.f ;
44  TextureChannels _occlusionTextureChannels ;
45 
47  TextureChannels _normalTextureChannels ;
48 
49  float _alphaValue = 1.f ;
50  int _alphaTextureIndex = -1 ;
51  TextureChannels _alphaTextureChannels ;
52  } ;
53 }
nkGraphics::DecodedMaterialData::_specularTextureChannels
TextureChannels _specularTextureChannels
The specular texture used channels.
Definition: DecodedMaterialData.h:24
nkGraphics::DecodedMaterialData::_metalnessTextureChannels
TextureChannels _metalnessTextureChannels
The metalness texture used channels.
Definition: DecodedMaterialData.h:36
nkGraphics::DecodedMaterialData::_emissiveTextureIndex
int _emissiveTextureIndex
The emissive texture, as the index within the DecodedTextureData set counterpart. No texture is encod...
Definition: DecodedMaterialData.h:27
nkGraphics::DecodedMaterialData::_specularTextureIndex
int _specularTextureIndex
The specular texture, as the index within the DecodedTextureData set counterpart. No texture is encod...
Definition: DecodedMaterialData.h:23
nkGraphics::DecodedMaterialData::_emissiveColor
nkMaths::Vector _emissiveColor
The emissive color, if any.
Definition: DecodedMaterialData.h:26
nkGraphics::DecodedMaterialData::_metalnessTextureIndex
int _metalnessTextureIndex
The metalness texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:35
nkGraphics::DecodedMaterialData::_diffuseTextureChannels
TextureChannels _diffuseTextureChannels
The diffuse texture used channels.
Definition: DecodedMaterialData.h:20
nkGraphics::DecodedMaterialData::_alphaTextureIndex
int _alphaTextureIndex
The alpha texture, as the index within the DecodedTextureData set counterpart. No texture is encoded ...
Definition: DecodedMaterialData.h:50
nkGraphics::DecodedMaterialData::_occlusionFactor
float _occlusionFactor
The occlusion factor, if any.
Definition: DecodedMaterialData.h:42
nkGraphics::DecodedMaterialData
Holds data about a decoded material.
Definition: DecodedMaterialData.h:12
nkGraphics::DecodedMaterialData::_occlusionTextureChannels
TextureChannels _occlusionTextureChannels
The occlusion texture used channels.
Definition: DecodedMaterialData.h:44
nkGraphics::DecodedMaterialData::_occlusionTextureIndex
int _occlusionTextureIndex
The occlusion texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:43
nkGraphics::DecodedMaterialData::_roughnessFactor
float _roughnessFactor
The roughness factor, if any.
Definition: DecodedMaterialData.h:30
nkGraphics::DecodedMaterialData::_ambientColor
nkMaths::Vector _ambientColor
The ambient color, if any.
Definition: DecodedMaterialData.h:14
nkGraphics::DecodedMaterialData::_glossinessTextureChannels
TextureChannels _glossinessTextureChannels
The glossiness texture used channels.
Definition: DecodedMaterialData.h:40
nkGraphics::DecodedMaterialData::_glossinessTextureIndex
int _glossinessTextureIndex
The glossiness texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:39
nkGraphics::DecodedMaterialData::_metalnessFactor
float _metalnessFactor
The metalness factor, if any.
Definition: DecodedMaterialData.h:34
nkGraphics::DecodedMaterialData::_ambientTextureIndex
int _ambientTextureIndex
The ambient texture, as the index within the DecodedTextureData set counterpart. No texture is encode...
Definition: DecodedMaterialData.h:15
nkGraphics::DecodedMaterialData::_roughnessTextureChannels
TextureChannels _roughnessTextureChannels
The roughness texture used channels.
Definition: DecodedMaterialData.h:32
nkGraphics::DecodedMaterialData::_alphaValue
float _alphaValue
The global alpha value, if any.
Definition: DecodedMaterialData.h:49
nkGraphics::DecodedMaterialData::_diffuseTextureIndex
int _diffuseTextureIndex
The diffuse texture, as the index within the DecodedTextureData set counterpart. No texture is encode...
Definition: DecodedMaterialData.h:19
nkGraphics::DecodedMaterialData::_alphaTextureChannels
TextureChannels _alphaTextureChannels
The alpha texture used channels.
Definition: DecodedMaterialData.h:51
nkGraphics::DecodedMaterialData::_emissiveTextureChannels
TextureChannels _emissiveTextureChannels
The emissive texture used channels.
Definition: DecodedMaterialData.h:28
nkGraphics::DecodedMaterialData::_diffuseColor
nkMaths::Vector _diffuseColor
The diffuse color, if any.
Definition: DecodedMaterialData.h:18
nkGraphics::DecodedMaterialData::_specularColor
nkMaths::Vector _specularColor
The specular color, if any.
Definition: DecodedMaterialData.h:22
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkGraphics::DecodedMaterialData::_normalTextureIndex
int _normalTextureIndex
The normal map texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:46
nkGraphics::DecodedMaterialData::_glossinessFactor
float _glossinessFactor
The glossiness factor, if any.
Definition: DecodedMaterialData.h:38
nkGraphics::DecodedMaterialData::_roughnessTextureIndex
int _roughnessTextureIndex
The roughness texture, as the index within the DecodedTextureData set counterpart....
Definition: DecodedMaterialData.h:31
nkGraphics::DecodedMaterialData::_ambientTextureChannels
TextureChannels _ambientTextureChannels
The ambient texture used channels.
Definition: DecodedMaterialData.h:16