-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Description
Bevy version
main
What you did
Users want to do repeating textures on 2d meshes.
What went wrong
The helper we provide for doing that in 3d doesn't exist on 2d materials.
See the repeated_texture examples and docs for StandardMaterial::uv_transform
I think we should add a similar field to ColorMaterial for 2d users.
Additional information
Users can also accomplish tiling textures with SpriteImageMode, but that only works for sprites, not Mesh2d.
Alternatives
A helper on Mesh or RectangleMeshBuilder for transforming UVs?
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!