Introduce perspective projection matrix.

Also correct a bug where the view matrix was not being used.
This commit is contained in:
2020-10-13 10:57:30 -04:00
parent 49927568e4
commit 6ff09dc375
3 changed files with 30 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ float unmix(float u, float v) {
void emit(vec4 v) {
pos = v;
col = vCol[0];
gl_Position = proj * vec4(v.xyz, 1);
gl_Position = proj * view * vec4(v.xyz, 1);
EmitVertex();
}