API Documentation
DecodedMaterialData.h
1 // DecodedMaterialData.h
3 //
5 
6 namespace nkGraphics
7 {
13  struct TextureChannels final
14  {
15  bool _r = false ;
16  bool _g = false ;
17  bool _b = false ;
18  bool _a = false ;
19  } ;
20 
29  struct TextureInformation final
30  {
31  int _index = -1 ;
33 
37  float _uvOrientation = 0.f ;
38 
41  } ;
42 
46  struct DecodedMaterialData final
47  {
48  // Attributes
51 
54 
57 
60 
61  float _roughnessFactor = 0.5f ;
63 
64  float _metalnessFactor = 0.5f ;
66 
67  float _glossinessFactor = 0.5f ;
69 
70  float _occlusionFactor = 1.f ;
72 
74 
75  float _alphaValue = 1.f ;
77  } ;
78 }
nkGraphics::TextureInformation::_index
int _index
The texture, as the index within the DecodedTextureData set counterpart. If left to -1,...
Definition: DecodedMaterialData.h:31
nkGraphics::DecodedMaterialData::_specularTexture
TextureInformation _specularTexture
Information about the specular texture, if any.
Definition: DecodedMaterialData.h:56
nkGraphics::DecodedMaterialData::_ambientTexture
TextureInformation _ambientTexture
Information about the ambient texture, if any.
Definition: DecodedMaterialData.h:50
nkGraphics::TextureInformation::_uvOrientation
float _uvOrientation
If transformed, the orientation in radians to apply to the uv.
Definition: DecodedMaterialData.h:37
nkGraphics::DecodedMaterialData::_metalnessTexture
TextureInformation _metalnessTexture
Information about the metalness texture, if any.
Definition: DecodedMaterialData.h:65
nkGraphics::TextureInformation
Holds the information about a decoded texture information.
Definition: DecodedMaterialData.h:30
nkGraphics::DecodedMaterialData::_roughnessTexture
TextureInformation _roughnessTexture
Information about the roughness texture, if any.
Definition: DecodedMaterialData.h:62
nkGraphics::TextureChannels::_g
bool _g
Whether the G channel is active (true) or not (false).
Definition: DecodedMaterialData.h:16
nkGraphics::TextureInformation::_transformedTextureCoordinatesIndex
int _transformedTextureCoordinatesIndex
If transformed, the texture coordinate attribute index used.
Definition: DecodedMaterialData.h:34
nkGraphics::TextureInformation::_channels
TextureChannels _channels
The texture used channels.
Definition: DecodedMaterialData.h:39
nkGraphics::TextureChannels::_a
bool _a
Whether the A channel is active (true) or not (false).
Definition: DecodedMaterialData.h:18
nkGraphics::DecodedMaterialData::_emissiveColor
nkMaths::Vector _emissiveColor
The emissive color, if any.
Definition: DecodedMaterialData.h:58
nkGraphics::DecodedMaterialData::_alphaTexture
TextureInformation _alphaTexture
Information about the alpha texture, if any.
Definition: DecodedMaterialData.h:76
nkGraphics::DecodedMaterialData::_occlusionTexture
TextureInformation _occlusionTexture
Information about the occlusion texture, if any.
Definition: DecodedMaterialData.h:71
nkGraphics::TextureChannels::_r
bool _r
Whether the R channel is active (true) or not (false).
Definition: DecodedMaterialData.h:15
nkGraphics::TextureChannels
Provides information about a texture's channels state.
Definition: DecodedMaterialData.h:14
nkGraphics::DecodedMaterialData::_occlusionFactor
float _occlusionFactor
The occlusion factor, if any.
Definition: DecodedMaterialData.h:70
nkGraphics::DecodedMaterialData
Holds data about a decoded material.
Definition: DecodedMaterialData.h:47
nkGraphics::DecodedMaterialData::_roughnessFactor
float _roughnessFactor
The roughness factor, if any.
Definition: DecodedMaterialData.h:61
nkGraphics::DecodedMaterialData::_ambientColor
nkMaths::Vector _ambientColor
The ambient color, if any.
Definition: DecodedMaterialData.h:49
nkGraphics::TextureInformation::_uvScale
nkMaths::Vector _uvScale
If transformed, the scale to apply to the uv.
Definition: DecodedMaterialData.h:36
nkGraphics::TextureInformation::_transformedTextureCoordinates
bool _transformedTextureCoordinates
Whether the texture coordinates should be transformed (true) or not (false). If true,...
Definition: DecodedMaterialData.h:40
nkGraphics::DecodedMaterialData::_metalnessFactor
float _metalnessFactor
The metalness factor, if any.
Definition: DecodedMaterialData.h:64
nkGraphics::DecodedMaterialData::_normalTexture
TextureInformation _normalTexture
Information about the normal texture, if any.
Definition: DecodedMaterialData.h:73
nkGraphics::TextureInformation::_uvOffset
nkMaths::Vector _uvOffset
If transformed, the offset to apply to the uv.
Definition: DecodedMaterialData.h:35
nkGraphics::TextureInformation::_textureCoordinatesIndex
int _textureCoordinatesIndex
The texture coordinate attribute index used for the texture.
Definition: DecodedMaterialData.h:32
nkGraphics::DecodedMaterialData::_alphaValue
float _alphaValue
The global alpha value, if any.
Definition: DecodedMaterialData.h:75
nkGraphics::DecodedMaterialData::_glossinessTexture
TextureInformation _glossinessTexture
Information about the glossiness texture, if any.
Definition: DecodedMaterialData.h:68
nkGraphics::DecodedMaterialData::_emissiveTexture
TextureInformation _emissiveTexture
Information about the emissive texture, if any.
Definition: DecodedMaterialData.h:59
nkGraphics::TextureChannels::_b
bool _b
Whether the B channel is active (true) or not (false).
Definition: DecodedMaterialData.h:17
nkGraphics::DecodedMaterialData::_diffuseColor
nkMaths::Vector _diffuseColor
The diffuse color, if any.
Definition: DecodedMaterialData.h:52
nkGraphics::DecodedMaterialData::_specularColor
nkMaths::Vector _specularColor
The specular color, if any.
Definition: DecodedMaterialData.h:55
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::DecodedMaterialData::_diffuseTexture
TextureInformation _diffuseTexture
Information about the diffuse texture, if any.
Definition: DecodedMaterialData.h:53
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkGraphics::DecodedMaterialData::_glossinessFactor
float _glossinessFactor
The glossiness factor, if any.
Definition: DecodedMaterialData.h:67