|
Monad Engine da02fba2
> Undercity Codex_
|
Container that pairs a ShaderProgram with typed uniform parameters. More...
#include <memory>#include <string>#include <tuple>#include <unordered_map>#include <vector>#include <glm/mat4x4.hpp>#include "Types.h"#include "graphics/Texture.h"
Include dependency graph for Material.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | mnd::Material |
| Shader + uniform storage that defines how a surface is rendered. More... | |
Namespaces | |
| namespace | mnd |
Container that pairs a ShaderProgram with typed uniform parameters.
A Material answers the question "how should this surface look?". It holds:
Material::Bind() uploads all stored params to the active ShaderProgram. It is called by RenderQueue::Draw() just before each draw call.
Definition in file Material.h.