1import bevy_pbr::render::{2 mesh_view_bindings::view,3 forward_io::VertexOutput,4 utils::coords_to_viewport_uv,5};7@group(constants::MATERIAL_BIND_GROUP) @binding(0) var texture: texture_2d<f32>;8@group(constants::MATERIAL_BIND_GROUP) @binding(1) var texture_sampler: sampler;10@fragment11fn fragment(12 mesh: VertexOutput,13) -> @location(0) vec4<f32> {14 let viewport_uv = coords_to_viewport_uv(mesh.position.xy, view.viewport);15 let color = textureSample(texture, texture_sampler, viewport_uv);16 return color;17}