Skip to content
Discussion options

You must be logged in to vote

Your imports in your shader are referencing bevy_pbr instead of bevy_sprite

Use something like:

#import bevy_sprite::{mesh2d_functions::{get_world_from_local, mesh2d_position_local_to_clip}}

and mesh2d_position_local_to_clip instead of mesh_position_local_to_clip

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@cherish-ltt
Comment options

@cherish-ltt
Comment options

@cherish-ltt
Comment options

@Henauxg
Comment options

Henauxg Apr 12, 2025
Collaborator

Answer selected by cherish-ltt
@cherish-ltt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants