bevy/pipelined
François a636145d90 Default image used in PipelinedSpriteBundle to be able to render without loading a texture (#3270)
# Objective

- Fix #3188 
- Allow creating a `PipelinedSpriteBundle` without an image, just a plain color

```rust
PipelinedSpriteBundle {
    sprite: Sprite {
        color: Color::rgba(0.8, 0.0, 0.0, 0.3),
        custom_size: Some(Vec2::new(500.0, 500.0)),
        ..Default::default()
    },
    ..Default::default()
}
```

## Solution

- The default impl for `Image` was creating a one pixel image with all values at `1`. I changed it to `255` as picking `1` for it doesn't really make sense, it should be either `0` or `255`
- I created a static handle and added the default image to the assets with this handle
- I changed the default impl for `PipelinedSpriteBundle` to use this handle
2021-12-07 01:13:55 +00:00
..
bevy_core_pipeline Add support for opaque, alpha mask, and alpha blend modes (#3072) 2021-11-16 03:03:27 +00:00
bevy_gltf2 Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_pbr2 Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_render2 Default image used in PipelinedSpriteBundle to be able to render without loading a texture (#3270) 2021-12-07 01:13:55 +00:00
bevy_sprite2 Default image used in PipelinedSpriteBundle to be able to render without loading a texture (#3270) 2021-12-07 01:13:55 +00:00