#import bevy_pbr::{ mesh_view_bindings::view, forward_io::VertexOutput, utils::coords_to_viewport_uv, } @group(2) @binding(0) var texture: texture_2d; @group(2) @binding(1) var texture_sampler: sampler; @fragment fn fragment( mesh: VertexOutput, ) -> @location(0) vec4 { let viewport_uv = coords_to_viewport_uv(mesh.position.xy, view.viewport); let color = textureSample(texture, texture_sampler, viewport_uv); return color; }