feat: added sin distortions
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -112,8 +112,12 @@ int main(int argc, char **argv) {
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
glUseProgram(shaderProgram);
|
||||
|
||||
int aspectLocation = glGetUniformLocation(shaderProgram, "aspect");
|
||||
glUniform1f(aspectLocation, aspect);
|
||||
int timeLocation = glGetUniformLocation(shaderProgram, "t");
|
||||
glUniform1f(timeLocation, 2. * glfwGetTime());
|
||||
|
||||
glBindVertexArray(fsq.getVAO());
|
||||
glDrawArrays(GL_TRIANGLES, 0, 6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user