mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
post-processing test
This commit is contained in:
parent
e7af5830cf
commit
8ed65ca51e
13 changed files with 268 additions and 113 deletions
|
|
@ -52,6 +52,11 @@ void Shader::uniform2f(std::string name, glm::vec2 xy){
|
|||
glUniform2f(transformLoc, xy.x, xy.y);
|
||||
}
|
||||
|
||||
void Shader::uniform2i(std::string name, glm::ivec2 xy){
|
||||
GLuint transformLoc = glGetUniformLocation(id, name.c_str());
|
||||
glUniform2i(transformLoc, xy.x, xy.y);
|
||||
}
|
||||
|
||||
void Shader::uniform3f(std::string name, float x, float y, float z){
|
||||
GLuint transformLoc = glGetUniformLocation(id, name.c_str());
|
||||
glUniform3f(transformLoc, x,y,z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue