Closed RodenLuo closed 3 years ago
ourShader.use(); ourShader.setFloat("hoffset", 0.5f);
void use() { glUseProgram(ID); } void setFloat(const std::string& name, float value) const { glUniform1f(glGetUniformLocation(ID, name.c_str()), value); }