Skip to content

Commit

Permalink
Fix mistake in shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jul 10, 2024
1 parent 01fb347 commit 9225576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 09-BindlessTexturing/btex.vert
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void main(){

instance = indices[gl_InstanceID];

vec3 pos = vec3(inPosition, 0) + positions[instance];
vec3 pos = vec3(inPosition, 0) + positions[gl_InstanceID];

gl_Position = ubo.viewProj * vec4(pos, 1);
outUV = inUV;
Expand Down

0 comments on commit 9225576

Please sign in to comment.