Added transformation in the vertex shader
This commit is contained in:
parent
9a69989e46
commit
7a634d53b5
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ layout(location = 4) out vec2 TexCoords;
|
|||
|
||||
void main() {
|
||||
mat4 transformation = transform.translation * transform.scale;
|
||||
vec4 out_vec = proj.proj * view.view * vec4(vertPos, 1.0);
|
||||
vec4 out_vec = proj.proj * view.view * transformation * vec4(vertPos, 1.0);
|
||||
FragPos = vec3(vec4(vertPos, 1.0));
|
||||
Normal = normal;
|
||||
TexCoords = uv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue