Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1#import bevy_pbr::forward_io::VertexOutput
3@group(#{MATERIAL_BIND_GROUP}) @binding(0) var material_color_texture: texture_2d<f32>;
4@group(#{MATERIAL_BIND_GROUP}) @binding(1) var material_color_sampler: sampler;
6@fragment
7fn fragment(
8 mesh: VertexOutput,
9) -> @location(0) vec4<f32> {
10 return textureSample(material_color_texture, material_color_sampler, mesh.uv);
Contents