Skip to content

How to use Vertex #18821

Answered by Henauxg
cherish-ltt asked this question in Q&A
Apr 12, 2025 · 1 comments · 12 replies
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

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

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