diff --git a/assets/shaders/custom_vertex_attribute.wgsl b/assets/shaders/custom_vertex_attribute.wgsl index 6b7b93e4c7..cb650c8a47 100644 --- a/assets/shaders/custom_vertex_attribute.wgsl +++ b/assets/shaders/custom_vertex_attribute.wgsl @@ -1,3 +1,5 @@ +// For 2d replace `bevy_pbr::mesh_functions` with `bevy_sprite::mesh2d_functions` +// and `mesh_position_local_to_clip` with `mesh2d_position_local_to_clip`. #import bevy_pbr::mesh_functions::{get_world_from_local, mesh_position_local_to_clip} struct CustomMaterial {