From 1918608b02550e3240924ce2660b3e609419c8d9 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Fri, 3 Nov 2023 05:57:38 -0700 Subject: [PATCH] Update default `ClearColor` to better match Bevy's branding (#10339) # Objective - Changes the default clear color to match the code block color on Bevy's website. ## Solution - Changed the clear color, updated text in examples to ensure adequate contrast. Inconsistent usage of white text color set to use the default color instead, which is already white. - Additionally, updated the `3d_scene` example to make it look a bit better, and use bevy's branding colors. ![image](https://github.com/bevyengine/bevy/assets/2632925/540a22c0-826c-4c33-89aa-34905e3e313a) --- assets/branding/bevy_bird_light.png | Bin 0 -> 10450 bytes assets/branding/bevy_bird_light.svg | 135 ++++++++++++++++++ crates/bevy_core_pipeline/src/clear_color.rs | 3 +- example_showcase_config.ron | 1 + examples/2d/bloom_2d.rs | 3 +- examples/2d/sprite.rs | 2 +- examples/2d/sprite_flipping.rs | 2 +- examples/3d/3d_scene.rs | 11 +- examples/3d/anti_aliasing.rs | 16 ++- examples/3d/atmospheric_fog.rs | 1 - examples/3d/blend_modes.rs | 2 +- examples/3d/bloom_3d.rs | 1 - examples/3d/deferred_rendering.rs | 7 +- examples/3d/load_gltf.rs | 4 - examples/3d/pbr.rs | 2 - examples/3d/spherical_area_lights.rs | 1 - examples/3d/spotlight.rs | 30 ++-- examples/3d/ssao.rs | 2 +- examples/3d/tonemapping.rs | 20 +-- examples/3d/update_gltf_scene.rs | 29 ++-- examples/games/contributors.rs | 4 +- examples/input/text_input.rs | 14 +- examples/scene/scene.rs | 1 - examples/shader/shader_prepass.rs | 1 - examples/stress_tests/many_glyphs.rs | 1 - .../tools/scene_viewer/morph_viewer_plugin.rs | 2 +- examples/ui/display_and_visibility.rs | 4 +- examples/ui/grid.rs | 4 +- examples/ui/overflow.rs | 2 +- examples/ui/overflow_debug.rs | 4 +- examples/ui/text.rs | 4 +- examples/ui/text_debug.rs | 2 +- examples/ui/text_wrap_debug.rs | 2 +- examples/ui/ui.rs | 6 +- examples/ui/ui_texture_atlas.rs | 1 - examples/ui/window_fallthrough.rs | 2 +- examples/window/low_power.rs | 1 - examples/window/scale_factor_override.rs | 1 - examples/window/screenshot.rs | 1 - examples/window/window_resizing.rs | 1 - 40 files changed, 234 insertions(+), 96 deletions(-) create mode 100644 assets/branding/bevy_bird_light.png create mode 100644 assets/branding/bevy_bird_light.svg create mode 100644 example_showcase_config.ron diff --git a/assets/branding/bevy_bird_light.png b/assets/branding/bevy_bird_light.png new file mode 100644 index 0000000000000000000000000000000000000000..ed81a69903d7ecae24bbdffed3e1ec703d029389 GIT binary patch literal 10450 zcmc(li8s_={QuuGwk%mAm8~I5b|cwBOtO<~WhaB|JK3g$ku6!r5|ORN60(Jn55gcz z*|H^LUoxbz{%+sj_fPnp^K;G|j(IQl{l51;@ALV1-8dtI+h^%6(m@b(R$B{Y3_&pP zCk#464SreqmZ8BfT5qj;eh|bu`R@bk-#vK@{&~UwmWBUaFSLJgnd^ zXz%SL;pOX`v#ER$g7_e9)J>D%+>PnbFs^_`)$Ku2p8oK;Npz50v_o`8M!Xf}uOy?Z zSBpJ{GaTa2&v~=``f{t{ohovy(Ps6Z3pPxQ= z(AwD87`djel!{BH@IHg&RYzTejxNM@#t9D)ETK;ZC`plGp7-VDA!9GgqD}uJ1a|Xr zeU?f{g{;ol!7x2kvU`Fo9+ciee9Xb`h1=s^Jg1!VvHa*>{-(UVF$>#DJ-5x8`%?kY zbdC9pJ7kwp5Pk>JhGtAz;yYV=3A!*YqZm>P!(2{Ng_l@IBPvM%7Hkw6ddN^bx&b9! z-EWL@sWDz%&Cbq#zo=3_o+0;TpPZPu@L*CfNrHxtDCN7m~VXc?3uzscXBfL_I!_8 z!JPrAgts^{OumLhf$s?q4>#;`s8+X8dZygNju%FAcIiW&RZ2-#%tKQItJ|nFJ;5lQ zaz4y4lt5D@iFuab7z7)qEf|s2kHXG;4LBBu!aq`OIlO>0%fW4J2}k113&KT|m>}pV z4$E`7aF%?05;@MDHlhvZjCQCVAH#*@P5a2>`=Cv}!cdCGc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KBdEpatx3aHE%zu~eZ5A8v#P#Bz1#IK8R zS`)Z2+4n=`r$0+XW;%Ii=1^#rIIICA z^(yQ#aeV;T*SDH(|Ky#|%frK?+a>!WXZbVPk@ci**bL-d14{oeshU$6Yto74YaJ`4 zW0=beoRA)Umv}I(!I5ssm9G^1Jgy`-*j<3&bF;`C;M*WTAhxCBWpB53(KKpFg>a;x?bO4){lV1%d2LOr85QB15u zEx?oZv~brtbUri0l{C`f%bgO$Z3Qv5kjq0)&lv}B0pcEI0cf_*%Dtfco2w_IqIG|K zoe*_}8!h0cEnC)gxT1xdlP=nTW?LL_U@}qIH!A_{GY>_AAa{_+lFU=Aoc<3V$wS?2 zLp@riV+w3)_?a@UHE}42ZD<;R-6?MxIXO9=+o*nm)q3Hj;%x-W^av;%kcMQ6Dw&JO zJKx6u^Et@eNdq1_cX4w5;tXuJ!#6N1uqZOrL(Y^g7;br{NV_p1pRzQRZLX z)`m`UuxLEDVOCyA4z2^W+ZU`nqZod$J6)`J2gp7QC95HFtwXl|ZrrkW8d0Gy5R!y~ zQ6hVh|Jqhexx^V@g@eFG1V+3zsNe&xa+HC)E=?-=S7p&WLeYu=o0=oz)O)UYbROkT z$)bYsJLxRgc-7!WB| z%+h*N$CZz)LmdEfDJm-RNGx7&@fNzSLTP0Owkl*iAUekh>!IceEA{OK=2sJGMSo;L zB~#p(j&;7m?ySbT4|Dc(o>K+Y72vUBN_Gol#zwH^9?HFxJ ze7(O4Sd}CNx`7+&n z6D6J?Ns(nA#6=|o`$RE!4XR`wq6eEiqT|?vT0Q)%K0E&SdvP1}+J-{0@WJRAMd(xB z$pn1P6dm!tv~+2&CsinD>QXkdgdPOhadw$Pp3yDW_En%N@f#<{`6aHK(6(XmsM(0@ zY + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/crates/bevy_core_pipeline/src/clear_color.rs b/crates/bevy_core_pipeline/src/clear_color.rs index 0461b6c2c7..9d1ce4c5dc 100644 --- a/crates/bevy_core_pipeline/src/clear_color.rs +++ b/crates/bevy_core_pipeline/src/clear_color.rs @@ -27,8 +27,9 @@ pub enum ClearColorConfig { #[reflect(Resource)] pub struct ClearColor(pub Color); +/// Match the dark gray bevy website code block color by default. impl Default for ClearColor { fn default() -> Self { - Self(Color::rgb(0.4, 0.4, 0.4)) + Self(Color::rgb_u8(43, 44, 47)) } } diff --git a/example_showcase_config.ron b/example_showcase_config.ron new file mode 100644 index 0000000000..4503c3738b --- /dev/null +++ b/example_showcase_config.ron @@ -0,0 +1 @@ +(exit_after: Some(250)) \ No newline at end of file diff --git a/examples/2d/bloom_2d.rs b/examples/2d/bloom_2d.rs index 108cc94c57..16f48b3667 100644 --- a/examples/2d/bloom_2d.rs +++ b/examples/2d/bloom_2d.rs @@ -11,7 +11,6 @@ use bevy::{ fn main() { App::new() - .insert_resource(ClearColor(Color::DARK_GRAY)) .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .add_systems(Update, update_bloom_settings) @@ -38,7 +37,7 @@ fn setup( // Sprite commands.spawn(SpriteBundle { - texture: asset_server.load("branding/icon.png"), + texture: asset_server.load("branding/bevy_bird_light.png"), sprite: Sprite { 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)), diff --git a/examples/2d/sprite.rs b/examples/2d/sprite.rs index d26478be58..79e3d010eb 100644 --- a/examples/2d/sprite.rs +++ b/examples/2d/sprite.rs @@ -12,7 +12,7 @@ fn main() { fn setup(mut commands: Commands, asset_server: Res) { commands.spawn(Camera2dBundle::default()); commands.spawn(SpriteBundle { - texture: asset_server.load("branding/icon.png"), + texture: asset_server.load("branding/bevy_bird_light.png"), ..default() }); } diff --git a/examples/2d/sprite_flipping.rs b/examples/2d/sprite_flipping.rs index 4be1908819..c7619859c9 100644 --- a/examples/2d/sprite_flipping.rs +++ b/examples/2d/sprite_flipping.rs @@ -12,7 +12,7 @@ fn main() { fn setup(mut commands: Commands, asset_server: Res) { commands.spawn(Camera2dBundle::default()); commands.spawn(SpriteBundle { - texture: asset_server.load("branding/icon.png"), + texture: asset_server.load("branding/bevy_bird_light.png"), sprite: Sprite { // Flip the logo to the left flip_x: true, diff --git a/examples/3d/3d_scene.rs b/examples/3d/3d_scene.rs index 9fbbca077c..ca142616fd 100644 --- a/examples/3d/3d_scene.rs +++ b/examples/3d/3d_scene.rs @@ -15,16 +15,17 @@ fn setup( mut meshes: ResMut>, mut materials: ResMut>, ) { - // plane + // circular base commands.spawn(PbrBundle { - mesh: meshes.add(shape::Plane::from_size(5.0).into()), - material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()), + mesh: meshes.add(shape::Circle::new(4.0).into()), + material: materials.add(Color::WHITE.into()), + transform: Transform::from_rotation(Quat::from_rotation_x(-std::f32::consts::FRAC_PI_2)), ..default() }); // cube commands.spawn(PbrBundle { mesh: meshes.add(Mesh::from(shape::Cube { size: 1.0 })), - material: materials.add(Color::rgb(0.8, 0.7, 0.6).into()), + material: materials.add(Color::rgb_u8(124, 144, 255).into()), transform: Transform::from_xyz(0.0, 0.5, 0.0), ..default() }); @@ -40,7 +41,7 @@ fn setup( }); // camera commands.spawn(Camera3dBundle { - transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y), + transform: Transform::from_xyz(-2.5, 4.5, 9.0).looking_at(Vec3::ZERO, Vec3::Y), ..default() }); } diff --git a/examples/3d/anti_aliasing.rs b/examples/3d/anti_aliasing.rs index c92c67cd65..6e71640f74 100644 --- a/examples/3d/anti_aliasing.rs +++ b/examples/3d/anti_aliasing.rs @@ -263,8 +263,8 @@ fn setup( ) { // Plane commands.spawn(PbrBundle { - mesh: meshes.add(shape::Plane::from_size(5.0).into()), - material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()), + mesh: meshes.add(shape::Plane::from_size(50.0).into()), + material: materials.add(Color::GRAY.into()), ..default() }); @@ -325,6 +325,18 @@ fn setup( enabled: false, ..default() }, + EnvironmentMapLight { + diffuse_map: asset_server.load("environment_maps/pisa_diffuse_rgb9e5_zstd.ktx2"), + specular_map: asset_server.load("environment_maps/pisa_specular_rgb9e5_zstd.ktx2"), + }, + FogSettings { + color: Color::rgba_u8(43, 44, 47, 255), + falloff: FogFalloff::Linear { + start: 1.0, + end: 4.0, + }, + ..default() + }, )); // example instructions diff --git a/examples/3d/atmospheric_fog.rs b/examples/3d/atmospheric_fog.rs index b29fc9adab..913ec0aeba 100644 --- a/examples/3d/atmospheric_fog.rs +++ b/examples/3d/atmospheric_fog.rs @@ -99,7 +99,6 @@ fn setup_instructions(mut commands: Commands) { "Press Spacebar to Toggle Atmospheric Fog.\nPress S to Toggle Directional Light Fog Influence.", TextStyle { font_size: 20.0, - color: Color::WHITE, ..default() }, ) diff --git a/examples/3d/blend_modes.rs b/examples/3d/blend_modes.rs index 1b6b43059d..a240584729 100644 --- a/examples/3d/blend_modes.rs +++ b/examples/3d/blend_modes.rs @@ -188,7 +188,7 @@ fn setup( let text_style = TextStyle { font: asset_server.load("fonts/FiraMono-Medium.ttf"), font_size: 18.0, - color: Color::BLACK, + ..default() }; let label_text_style = TextStyle { diff --git a/examples/3d/bloom_3d.rs b/examples/3d/bloom_3d.rs index 4b68878fcd..396ac0cd1d 100644 --- a/examples/3d/bloom_3d.rs +++ b/examples/3d/bloom_3d.rs @@ -14,7 +14,6 @@ use std::{ fn main() { App::new() - .insert_resource(ClearColor(Color::DARK_GRAY)) .add_plugins(DefaultPlugins) .add_systems(Startup, setup_scene) .add_systems(Update, (update_bloom_settings, bounce_spheres)) diff --git a/examples/3d/deferred_rendering.rs b/examples/3d/deferred_rendering.rs index 492d98bd5a..1bf1978851 100644 --- a/examples/3d/deferred_rendering.rs +++ b/examples/3d/deferred_rendering.rs @@ -52,7 +52,7 @@ fn setup( ..default() }, FogSettings { - color: Color::rgba(0.25, 0.25, 0.25, 1.0), + color: Color::rgba_u8(43, 44, 47, 255), falloff: FogFalloff::Linear { start: 1.0, end: 8.0, @@ -93,11 +93,11 @@ fn setup( }); commands.spawn(SceneBundle { scene: helmet_scene, - transform: Transform::from_xyz(-3.0, 0.0, -3.0), + transform: Transform::from_xyz(-4.0, 0.0, -3.0), ..default() }); - let mut forward_mat: StandardMaterial = Color::rgb(0.1, 0.2, 0.1).into(); + let mut forward_mat: StandardMaterial = Color::GRAY.into(); forward_mat.opaque_render_method = OpaqueRendererMethod::Forward; let forward_mat_h = materials.add(forward_mat); @@ -216,7 +216,6 @@ fn setup( "", TextStyle { font_size: 18.0, - color: Color::WHITE, ..default() }, ) diff --git a/examples/3d/load_gltf.rs b/examples/3d/load_gltf.rs index ccf7f7b5dc..f6a412608b 100644 --- a/examples/3d/load_gltf.rs +++ b/examples/3d/load_gltf.rs @@ -8,10 +8,6 @@ use std::f32::consts::*; fn main() { App::new() - .insert_resource(AmbientLight { - color: Color::WHITE, - brightness: 1.0 / 5.0f32, - }) .insert_resource(DirectionalLightShadowMap { size: 4096 }) .add_plugins(DefaultPlugins) .add_systems(Startup, setup) diff --git a/examples/3d/pbr.rs b/examples/3d/pbr.rs index 305d073a95..348fc7d9d5 100644 --- a/examples/3d/pbr.rs +++ b/examples/3d/pbr.rs @@ -74,7 +74,6 @@ fn setup( "Perceptual Roughness", TextStyle { font_size: 36.0, - color: Color::WHITE, ..default() }, ) @@ -91,7 +90,6 @@ fn setup( "Metallic", TextStyle { font_size: 36.0, - color: Color::WHITE, ..default() }, ), diff --git a/examples/3d/spherical_area_lights.rs b/examples/3d/spherical_area_lights.rs index f8b5d6b93f..99dfc14d09 100644 --- a/examples/3d/spherical_area_lights.rs +++ b/examples/3d/spherical_area_lights.rs @@ -4,7 +4,6 @@ use bevy::prelude::*; fn main() { App::new() - .insert_resource(ClearColor(Color::BLACK)) .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .run(); diff --git a/examples/3d/spotlight.rs b/examples/3d/spotlight.rs index 6c9083622d..6813ad4bab 100644 --- a/examples/3d/spotlight.rs +++ b/examples/3d/spotlight.rs @@ -9,10 +9,15 @@ use rand::{rngs::StdRng, Rng, SeedableRng}; fn main() { App::new() + .insert_resource(AmbientLight { + brightness: 0.02, + ..default() + }) .add_plugins(( DefaultPlugins, FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin::default(), + bevy_internal::core_pipeline::experimental::taa::TemporalAntiAliasPlugin, )) .add_systems(Startup, setup) .add_systems(Update, (light_sway, movement)) @@ -31,21 +36,14 @@ fn setup( // ground plane commands.spawn(PbrBundle { mesh: meshes.add(shape::Plane::from_size(100.0).into()), - material: materials.add(StandardMaterial { - base_color: Color::GREEN, - perceptual_roughness: 1.0, - ..default() - }), + material: materials.add(Color::WHITE.into()), ..default() }); // cubes let mut rng = StdRng::seed_from_u64(19878367467713); let cube_mesh = meshes.add(Mesh::from(shape::Cube { size: 0.5 })); - let blue = materials.add(StandardMaterial { - base_color: Color::BLUE, - ..default() - }); + let blue = materials.add(Color::rgb_u8(124, 144, 255).into()); for _ in 0..40 { let x = rng.gen_range(-5.0..5.0); let y = rng.gen_range(0.0..3.0); @@ -61,12 +59,6 @@ fn setup( )); } - // ambient light - commands.insert_resource(AmbientLight { - color: Color::rgb(0.0, 1.0, 1.0), - brightness: 0.14, - }); - let sphere_mesh = meshes.add(Mesh::from(shape::UVSphere { radius: 0.05, ..default() @@ -124,10 +116,14 @@ fn setup( } // camera - commands.spawn(Camera3dBundle { + commands.spawn((Camera3dBundle { + camera: Camera { + hdr: true, + ..default() + }, transform: Transform::from_xyz(-4.0, 5.0, 10.0).looking_at(Vec3::ZERO, Vec3::Y), ..default() - }); + },)); } fn light_sway(time: Res