blob: a9c98541dffdaa9be38b0151bcd7cd1dd274f96b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <GL/glew.h>
#include "Uniform.hpp"
namespace MC::GFX::Shading {
void Uniform::set(const Matrix<4, 4, F32>& value) const {
glUniformMatrix4fv(m_index, 1, GL_TRUE, value.elements);
}
void Uniform::set(const Vector<3, F32>& value) const {
glUniform3f(m_index, value.x(), value.y(), value.z());
}
}
|