Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libs/openFrameworks/gl/ofShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,11 @@ void ofShader::setUniform4f(const string & name, const glm::vec4 & v) const {
setUniform4f(name, v.x, v.y, v.z, v.w);
}

//--------------------------------------------------------------
void ofShader::setUniform3f(const string & name, const ofFloatColor & v) const {
setUniform3f(name, v.r, v.g, v.b);
}

//--------------------------------------------------------------
void ofShader::setUniform4f(const string & name, const ofFloatColor & v) const {
setUniform4f(name, v.r, v.g, v.b, v.a);
Expand Down
1 change: 1 addition & 0 deletions libs/openFrameworks/gl/ofShader.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ class ofShader {
void setUniform2f(const std::string & name, const glm::vec2 & v) const;
void setUniform3f(const std::string & name, const glm::vec3 & v) const;
void setUniform4f(const std::string & name, const glm::vec4 & v) const;
void setUniform3f(const std::string & name, const ofFloatColor & v) const;
void setUniform4f(const std::string & name, const ofFloatColor & v) const;

// set an array of uniform values
Expand Down