Skip to content

Add uv_transform to ColorMaterial #17515

Open
@rparrett

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

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions