Some code tweaks
This commit is contained in:
parent
8724cf2ea5
commit
a6297a2be1
1 changed files with 16 additions and 20 deletions
|
|
@ -34,7 +34,7 @@ void main()
|
|||
mat3 normalMatrix = transpose(inverse(mat3(matModel)));
|
||||
|
||||
// Calculate fragment position based on model transformations
|
||||
fragPosition = vec3(matModel*vec4(vertexPosition, 1.0f));
|
||||
fragPosition = vec3(matModel*vec4(vertexPosition, 1.0));
|
||||
|
||||
// Send vertex attributes to fragment shader
|
||||
fragTexCoord = vertexTexCoord;
|
||||
|
|
|
|||
Loading…
Reference in a new issue