Fixed the shader
Stupid matrices.
This commit is contained in:
@ -13,7 +13,7 @@ out vec3 frag_col;
|
||||
out vec3 normal;
|
||||
|
||||
void main() {
|
||||
gl_Position = model * view * proj * vec4(vert_pos, 1);
|
||||
gl_Position = proj * view * model * vec4(vert_pos, 1);
|
||||
frag_pos = vec3(model * vec4(vert_pos, 1.0));
|
||||
frag_col = col * light_col;
|
||||
normal = mat3(transpose(inverse(model))) * vert_norm;
|
||||
|
Reference in New Issue
Block a user