Skip to content

Commit

Permalink
Reorder instance attributes to 4x4 matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Sep 9, 2021
1 parent b36b0b5 commit 07b19fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions BonVision/Shaders/ModelArray.vert
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ uniform mat4 projection;
uniform mat4 normalMatrix;
layout(location = 0) in vec3 vp;
layout(location = 1) in vec3 vn;
layout(location = 2) in vec3 mt;
layout(location = 3) in vec3 mr0;
layout(location = 4) in vec3 mr1;
layout(location = 5) in vec3 mr2;
layout(location = 2) in vec3 mr0;
layout(location = 3) in vec3 mr1;
layout(location = 4) in vec3 mr2;
layout(location = 5) in vec3 mt;
out vec3 position;
out vec3 normal;

Expand Down
8 changes: 4 additions & 4 deletions BonVision/Shaders/TexturedModelArray.vert
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ uniform mat4 normalMatrix;
layout(location = 0) in vec3 vp;
layout(location = 1) in vec2 vt;
layout(location = 2) in vec3 vn;
layout(location = 3) in vec3 mt;
layout(location = 4) in vec3 mr0;
layout(location = 5) in vec3 mr1;
layout(location = 6) in vec3 mr2;
layout(location = 3) in vec3 mr0;
layout(location = 4) in vec3 mr1;
layout(location = 5) in vec3 mr2;
layout(location = 6) in vec3 mt;
out vec3 position;
out vec2 texCoord;
out vec3 normal;
Expand Down

0 comments on commit 07b19fc

Please sign in to comment.