summaryrefslogtreecommitdiff
path: root/src/graphics/shader.h
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-04-17 03:10:27 -0400
committerSebastian Park <SebPark03@gmail.com>2024-04-17 03:10:27 -0400
commit9b436e67cdc5ee896c3c2fec90499e400a9e524e (patch)
tree45366352db1024722bbe7db07792c4148683afa9 /src/graphics/shader.h
parent0b0629450e2553b2f890094290528b565d607e38 (diff)
Do realtime refraction kinda.
Diffstat (limited to 'src/graphics/shader.h')
-rw-r--r--src/graphics/shader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/graphics/shader.h b/src/graphics/shader.h
index bc3c0c1..7e9dad4 100644
--- a/src/graphics/shader.h
+++ b/src/graphics/shader.h
@@ -32,6 +32,8 @@ public:
void setUniform(const std::string &name, float f);
void setUniform(const std::string &name, int i);
void setUniform(const std::string &name, bool b);
+ void setUniform(const std::string &name, Eigen::Vector3f v);
+ void setUniform(const std::string &name, float a, float b);
void setUniformArrayByIndex(const std::string &name, float f, size_t index);
void setUniformArrayByIndex(const std::string &name, const Eigen::Vector2f &vec2, size_t index);