#include <mesh.hpp>
- Note
- vec4, alpha value used only as padding for std430
◆ _pad
| glm::vec2 GPUMaterial::_pad |
◆ albedo [1/2]
◆ albedo [2/2]
| glm::vec4 GPUMaterial::albedo |
◆ emission [1/2]
| vec4 GPUMaterial::emission |
◆ emission [2/2]
| glm::vec4 GPUMaterial::emission |
◆ ior
◆ metallic
| float GPUMaterial::metallic |
0 = dielectric, 1 = metal
◆ normal_tex_index
| int GPUMaterial::normal_tex_index |
◆ roughness
| float GPUMaterial::roughness |
0 = smooth like mirror, 1 = full rough
◆ tex_index
| int GPUMaterial::tex_index |
◆ type
Material type.
- Todo
- Add uv_scale implementation to reduce texture unused size (here and globals), remove _pad
The documentation for this struct was generated from the following files: