struct CustomMaterial { color: vec4, }; @group(1) @binding(0) var material: CustomMaterial; @fragment fn fragment( #import bevy_pbr::mesh_vertex_output ) -> @location(0) vec4 { #ifdef IS_RED return vec4(1.0, 0.0, 0.0, 1.0); #else return material.color; #endif }