Fix red background in ui_material example (#15978)

# Objective

The `ui_material` recently gained a harsh red background via #15898.

I'm assuming this was added for testing and forgotten about.


https://pixel-eagle.com/project/b25a040a-a980-4602-b90c-d480ab84076d/run/5268/compare/5259?screenshot=UI%20(User%20Interface)/ui_material.png

## Solution

Remove the red background

## Testing

`cargo run --example ui_material`
This commit is contained in:
Rob Parrett 2024-10-19 18:08:17 -07:00 committed by GitHub
parent da5d2fccf5
commit 9b65081171
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
//! Demonstrates the use of [`UiMaterials`](UiMaterial) and how to change material values //! Demonstrates the use of [`UiMaterials`](UiMaterial) and how to change material values
use bevy::{color::palettes::css::RED, prelude::*, reflect::TypePath, render::render_resource::*}; use bevy::{prelude::*, reflect::TypePath, render::render_resource::*};
/// This example uses a shader source file from the assets subdirectory /// This example uses a shader source file from the assets subdirectory
const SHADER_ASSET_PATH: &str = "shaders/custom_ui_material.wgsl"; const SHADER_ASSET_PATH: &str = "shaders/custom_ui_material.wgsl";
@ -46,7 +46,6 @@ fn setup(
border: UiRect::all(Val::Px(10.)), border: UiRect::all(Val::Px(10.)),
..default() ..default()
}, },
BackgroundColor(RED.into()),
)); ));
}); });
} }