gate get_tag behind ndef MESHLET_MESH_MATERIAL_PASS (#17809)

# Objective

- Fixes #17797 

## Solution

- `mesh` in `bevy_pbr::mesh_bindings` is behind a `ifndef
MESHLET_MESH_MATERIAL_PASS`. also gate `get_tag` which uses this `mesh`

## Testing

- Run the meshlet example
This commit is contained in:
François Mockers 2025-02-11 23:36:17 +01:00 committed by GitHub
parent fc98664d3d
commit 7a62a4f604
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,6 +133,9 @@ fn get_visibility_range_dither_level(instance_index: u32, world_position: vec4<f
}
#endif
#ifndef MESHLET_MESH_MATERIAL_PASS
fn get_tag(instance_index: u32) -> u32 {
return mesh[instance_index].tag;
}
#endif