diff --git a/09-BindlessTexturing/btex.vert b/09-BindlessTexturing/btex.vert index 35621b4..efd35a4 100644 --- a/09-BindlessTexturing/btex.vert +++ b/09-BindlessTexturing/btex.vert @@ -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; diff --git a/deps/RGL b/deps/RGL index 9809557..cd3ba38 160000 --- a/deps/RGL +++ b/deps/RGL @@ -1 +1 @@ -Subproject commit 9809557691204b50a294495890d3e2cae1018bec +Subproject commit cd3ba38ebfdd57a76fec6c8761bbe45289919ae6