mirror of
https://github.com/bevyengine/bevy
synced 2025-01-05 01:38:56 +00:00
cea7db1050
# Objective - Prevent the need to have a system that synchronizes sprite sizes with their images ## Solution - Read the sprite size from the image asset when rendering the sprite - Replace the `size` and `resize_mode` fields of `Sprite` with a `custom_size: Option<Vec2>` that will modify the sprite's rendered size to be different than the image size, but only if it is `Some(Vec2)` |
||
---|---|---|
.. | ||
mod.rs | ||
sprite.frag | ||
sprite.vert | ||
sprite.wgsl |