We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905965b commit 1fb5a62Copy full SHA for 1fb5a62
crates/bevy_pbr/src/meshlet/meshlet_mesh_material.wgsl
@@ -15,15 +15,13 @@ fn vertex(@builtin(vertex_index) vertex_input: u32) -> @builtin(position) vec4<f
15
return vec4(uv_to_ndc(uv), material_depth, 1.0);
16
}
17
18
-#ifdef PREPASS_FRAGMENT
19
@fragment
20
fn fragment(@builtin(position) frag_coord: vec4<f32>) -> @location(0) vec4<f32> {
21
let vertex_output = resolve_vertex_output(frag_coord);
22
var rng = vertex_output.cluster_id;
23
let color = vec3(rand_f(&rng), rand_f(&rng), rand_f(&rng));
24
return vec4(color, 1.0);
25
26
-#endif
27
28
#ifdef PREPASS_FRAGMENT
29
0 commit comments