Skip to content

Commit 1fb5a62

Browse files
authored
fix meshlets with charlotte (#19996)
# Objective - fix meshlets not finding entrypoint and crashing # Solution - remove faulty ifdefs
1 parent 905965b commit 1fb5a62

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

crates/bevy_pbr/src/meshlet/meshlet_mesh_material.wgsl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ fn vertex(@builtin(vertex_index) vertex_input: u32) -> @builtin(position) vec4<f
1515
return vec4(uv_to_ndc(uv), material_depth, 1.0);
1616
}
1717

18-
#ifdef PREPASS_FRAGMENT
1918
@fragment
2019
fn fragment(@builtin(position) frag_coord: vec4<f32>) -> @location(0) vec4<f32> {
2120
let vertex_output = resolve_vertex_output(frag_coord);
2221
var rng = vertex_output.cluster_id;
2322
let color = vec3(rand_f(&rng), rand_f(&rng), rand_f(&rng));
2423
return vec4(color, 1.0);
2524
}
26-
#endif
2725

2826
#ifdef PREPASS_FRAGMENT
2927
@fragment

0 commit comments

Comments
 (0)