![]() |
NDEVR
API Documentation
|
Items to send to the OpenGL Fragmentation shader. More...
Public Types | |
| enum | ColorPosition : uint01 { e_kd_frag_pos = 8 , e_ka_frag_pos = 9 , e_ks_frag_pos = 10 , e_kr_frag_pos = 11 } |
| Indices for color values within the fragment uniform palette. More... | |
| enum | FloatPosition : uint01 { e_min_value_frag_pos = 0 , e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2 , e_min_value_frag_pos = 0 , e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2 } |
| Indices into the float_values matrix for fragment shader value ranges. More... | |
| enum | FloatPosition : uint01 { e_min_value_frag_pos = 0 , e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2 , e_min_value_frag_pos = 0 , e_mid_value_frag_pos = 1 , e_max_value_frag_pos = 2 } |
| Indices for float values within the fragment uniform. More... | |
Public Member Functions | |
| FragUniformObject () | |
| Default constructor. | |
| FragUniformObject (const Material &m_material) | |
| Constructs a FragUniformObject from a Material. | |
| void | setMode (Material::TextureCoordMode mat_mode) |
| Sets the texture coordinate mode. | |
Public Attributes | |
| Vector< 3, Vector< 4, fltp04 > > | constant_channels |
| Constant color channels (ambient, diffuse, specular). | |
| fltp04 | fade_distance = 99.9f |
| Distance at which objects begin to fade. | |
| Matrix< fltp04 > | float_values |
| Matrix of float value ranges for the fragment shader. | |
| Vector< 4, sint04 > | m_grid_lines = Vector<4, sint04>(-1) |
| Grid line positions. | |
| Vector< 4, sint04 > | m_grid_lines_desc = Vector<4, sint04>(-1) |
| Grid line descriptors. | |
| fltp04 | max_distance = 500.0f |
| Maximum visible distance. | |
| fltp04 | opacity = 1.0f |
| Overall material opacity. | |
| Buffer< Vector< 4, fltp04 > > | palette_colors |
| Color palette for indexed color rendering. | |
| uint04 | render_mode = 0U |
| The active rendering mode flags. | |
| fltp04 | shininess = 1.0f |
| Specular shininess exponent. | |
| uint04 | texture_coord_mode = 0 |
| Texture coordinate generation mode. | |
| Vector< 6, uint04 > | textures = Constant<Vector<6, uint04>>::Invalid |
| Texture unit indices. | |
Items to send to the OpenGL Fragmentation shader.
Information sent to the Fragmentation shader as a uniform object.
Definition at line 59 of file GLESMaterialManager.h.
Indices for color values within the fragment uniform palette.
| Enumerator | |
|---|---|
| e_kd_frag_pos | Diffuse color position index. |
| e_ka_frag_pos | Ambient color position index. |
| e_ks_frag_pos | Specular color position index. |
| e_kr_frag_pos | Reflective color position index. |
Definition at line 68 of file VulkanMaterialManager.h.
Indices into the float_values matrix for fragment shader value ranges.
Definition at line 62 of file GLESMaterialManager.h.
Indices for float values within the fragment uniform.
Definition at line 76 of file VulkanMaterialManager.h.
| FragUniformObject::FragUniformObject | ( | const Material & | m_material | ) |
Constructs a FragUniformObject from a Material.
| [in] | m_material | The material to extract fragment uniform values from. |
|
inline |
Sets the texture coordinate mode.
| [in] | mat_mode | The texture coordinate mode to apply. |
Definition at line 91 of file GLESMaterialManager.h.
References texture_coord_mode.