mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
custom_material.vert: gl_InstanceIndex includes gl_BaseInstance (#9326)
Fixes shader_material_glsl on DX12 too.
This commit is contained in:
parent
c6a1bf063b
commit
dde8518f6f
1 changed files with 1 additions and 1 deletions
|
@ -33,6 +33,6 @@ layout(set = 2, binding = 0) readonly buffer _Meshes {
|
|||
void main() {
|
||||
v_Uv = Vertex_Uv;
|
||||
gl_Position = ViewProj
|
||||
* Meshes[gl_BaseInstance + gl_InstanceIndex].Model
|
||||
* Meshes[gl_InstanceIndex].Model
|
||||
* vec4(Vertex_Position, 1.0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue