Skip to content

Commit 7a62a4f

Browse files
authored
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
1 parent fc98664 commit 7a62a4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/bevy_pbr/src/render/mesh_functions.wgsl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ fn get_visibility_range_dither_level(instance_index: u32, world_position: vec4<f
133133
}
134134
#endif
135135

136+
137+
#ifndef MESHLET_MESH_MATERIAL_PASS
136138
fn get_tag(instance_index: u32) -> u32 {
137139
return mesh[instance_index].tag;
138-
}
140+
}
141+
#endif

0 commit comments

Comments
 (0)