MCPcopy Create free account
hub / github.com/chrxh/alien / setFloat

Method setFloat

source/Gui/Shader.cpp:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
95}
96void _Shader::setFloat(const std::string& name, float value) const
97{
98 glUniform1f(glGetUniformLocation(ID, name.c_str()), value);
99}
100
101void _Shader::checkCompileErrors(GLuint shader, std::string type)
102{

Callers 3

setBrightnessMethod · 0.80
setContrastMethod · 0.80
updateMotionBlurMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected