Code and content re-work: advanced OpenGL and advanced lighting.

This commit is contained in:
Joey de Vries
2017-06-01 22:04:34 +02:00
parent 49d8d895ae
commit f844f7c541
32 changed files with 184 additions and 144 deletions

View File

@@ -7,5 +7,5 @@ uniform mat4 projection;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0f);
gl_Position = projection * view * model * vec4(aPos, 1.0);
}

View File

@@ -72,8 +72,8 @@ int main()
// build and compile shaders
// -------------------------
Shader shader("11.1.anti_aliasing.vs", "11.1.anti_aliasing.fs");
Shader screenShader("11.2.aa_post.vs", "11.2.aa_post.fs");
Shader shader("11.anti_aliasing.vs", "11.anti_aliasing.fs");
Shader screenShader("11.aa_post.vs", "11.aa_post.fs");
// set up vertex data (and buffer(s)) and configure vertex attributes
// ------------------------------------------------------------------