mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Update color and naming for consistency (#10367)
The `ClearColor` PR was merged before I was quite finished. This fixes a few errors, and addresses Cart's feedback about the pixel perfect example by updating the sprite colors to match the existing bevy bird branding colors. ![image](https://github.com/bevyengine/bevy/assets/2632925/33722c45-ed66-4d3a-af11-f4197611a13c)
This commit is contained in:
parent
cd594221cf
commit
1d8d78ef0e
10 changed files with 7 additions and 7 deletions
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 1.9 KiB |
|
@ -37,7 +37,7 @@ fn setup(
|
||||||
|
|
||||||
// Sprite
|
// Sprite
|
||||||
commands.spawn(SpriteBundle {
|
commands.spawn(SpriteBundle {
|
||||||
texture: asset_server.load("branding/bevy_bird_light.png"),
|
texture: asset_server.load("branding/bevy_bird_dark.png"),
|
||||||
sprite: Sprite {
|
sprite: Sprite {
|
||||||
color: Color::rgb(5.0, 5.0, 5.0), // 4. Put something bright in a dark environment to see the effect
|
color: Color::rgb(5.0, 5.0, 5.0), // 4. Put something bright in a dark environment to see the effect
|
||||||
custom_size: Some(Vec2::splat(160.0)),
|
custom_size: Some(Vec2::splat(160.0)),
|
||||||
|
|
|
@ -25,7 +25,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||||
commands.spawn(Camera2dBundle::default());
|
commands.spawn(Camera2dBundle::default());
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
SpriteBundle {
|
SpriteBundle {
|
||||||
texture: asset_server.load("pixel/bevy_pixel_light.png"),
|
texture: asset_server.load("pixel/bevy_pixel_dark.png"),
|
||||||
transform: Transform::from_xyz(100., 0., 0.),
|
transform: Transform::from_xyz(100., 0., 0.),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,7 +12,7 @@ fn main() {
|
||||||
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||||
commands.spawn(Camera2dBundle::default());
|
commands.spawn(Camera2dBundle::default());
|
||||||
commands.spawn(SpriteBundle {
|
commands.spawn(SpriteBundle {
|
||||||
texture: asset_server.load("branding/bevy_bird_light.png"),
|
texture: asset_server.load("branding/bevy_bird_dark.png"),
|
||||||
..default()
|
..default()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ fn main() {
|
||||||
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
||||||
commands.spawn(Camera2dBundle::default());
|
commands.spawn(Camera2dBundle::default());
|
||||||
commands.spawn(SpriteBundle {
|
commands.spawn(SpriteBundle {
|
||||||
texture: asset_server.load("branding/bevy_bird_light.png"),
|
texture: asset_server.load("branding/bevy_bird_dark.png"),
|
||||||
sprite: Sprite {
|
sprite: Sprite {
|
||||||
// Flip the logo to the left
|
// Flip the logo to the left
|
||||||
flip_x: true,
|
flip_x: true,
|
||||||
|
|
|
@ -264,7 +264,7 @@ fn setup(
|
||||||
// Plane
|
// Plane
|
||||||
commands.spawn(PbrBundle {
|
commands.spawn(PbrBundle {
|
||||||
mesh: meshes.add(shape::Plane::from_size(50.0).into()),
|
mesh: meshes.add(shape::Plane::from_size(50.0).into()),
|
||||||
material: materials.add(Color::GRAY.into()),
|
material: materials.add(Color::rgb(0.1, 0.2, 0.1).into()),
|
||||||
..default()
|
..default()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ fn setup(
|
||||||
..default()
|
..default()
|
||||||
});
|
});
|
||||||
|
|
||||||
let mut forward_mat: StandardMaterial = Color::GRAY.into();
|
let mut forward_mat: StandardMaterial = Color::rgb(0.1, 0.2, 0.1).into();
|
||||||
forward_mat.opaque_render_method = OpaqueRendererMethod::Forward;
|
forward_mat.opaque_render_method = OpaqueRendererMethod::Forward;
|
||||||
let forward_mat_h = materials.add(forward_mat);
|
let forward_mat_h = materials.add(forward_mat);
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ fn setup_basic_scene(
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
PbrBundle {
|
PbrBundle {
|
||||||
mesh: meshes.add(shape::Plane::from_size(50.0).into()),
|
mesh: meshes.add(shape::Plane::from_size(50.0).into()),
|
||||||
material: materials.add(Color::GRAY.into()),
|
material: materials.add(Color::rgb(0.1, 0.2, 0.1).into()),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
SceneNumber(1),
|
SceneNumber(1),
|
||||||
|
|
Loading…
Reference in a new issue