#import bevy_pbr::forward_io::VertexOutput // we can import items from shader modules in the assets folder with a quoted path #import "shaders/custom_material_import.wgsl"::COLOR_MULTIPLIER @group(2) @binding(0) var material_color: vec4; @group(2) @binding(1) var material_color_texture: texture_2d; @group(2) @binding(2) var material_color_sampler: sampler; @fragment fn fragment( mesh: VertexOutput, ) -> @location(0) vec4 { return material_color * textureSample(material_color_texture, material_color_sampler, mesh.uv) * COLOR_MULTIPLIER; }