Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add uv_transform to ColorMaterial #17515

Open
rparrett opened this issue Jan 23, 2025 · 0 comments
Open

Add uv_transform to ColorMaterial #17515

rparrett opened this issue Jan 23, 2025 · 0 comments
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it!

Comments

@rparrett
Copy link
Contributor

rparrett commented Jan 23, 2025

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?

@rparrett rparrett added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled C-Feature A new feature, making something new possible and removed C-Bug An unexpected or incorrect behavior labels Jan 23, 2025
@BenjaminBrienen BenjaminBrienen added A-Rendering Drawing game state to the screen S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it! D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes and removed S-Needs-Triage This issue needs to be labelled labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible D-Modest A "normal" level of difficulty; suitable for simple features or challenging fixes S-Ready-For-Implementation This issue is ready for an implementation PR. Go for it!
Projects
None yet
Development

No branches or pull requests

2 participants