Skip to content

Commit

Permalink
Fix the instanced shader
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 23, 2024
1 parent c5a01f5 commit e71b3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/shaders/instanced.vert
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void main()
vec3 vertexPositionChunk = vertexPositionObject + pos;

// Transform position and normal to world space
worldPosition = vec3(modelMatrix * vec4(vertexPositionObject, 1.0));
worldPosition = vec3(modelMatrix * vec4(vertexPositionChunk, 1.0));
worldNormal = normalize(modelNormalMatrix * vertexNormalObject);

// Calculate vertex position in clip coordinates
Expand Down

0 comments on commit e71b3c3

Please sign in to comment.