mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
use more harmonious colors in sample
This commit is contained in:
parent
3922c76efe
commit
6b937d5df4
2 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ fn main() {
|
|||
|
||||
world.insert((), vec![
|
||||
(
|
||||
Material { color: math::vec4(0.1, 0.6, 0.1, 1.0), bind_group: None, uniform_buf: None },
|
||||
Material { color: math::vec4(0.1, 0.2, 0.1, 1.0), bind_group: None, uniform_buf: None },
|
||||
plane_handle.clone(),
|
||||
LocalToWorld(math::translation(&math::vec3(0.0, 0.0, 0.0))),
|
||||
Translation::new(0.0, 0.0, 0.0)
|
||||
|
@ -25,13 +25,13 @@ fn main() {
|
|||
(
|
||||
Material { color: math::vec4(0.1, 0.1, 0.6, 1.0), bind_group: None, uniform_buf: None },
|
||||
mesh_handle.clone(),
|
||||
LocalToWorld(math::translation(&math::vec3(3.0, 0.0, 0.0))),
|
||||
LocalToWorld(math::translation(&math::vec3(1.5, 0.0, 1.0))),
|
||||
Translation::new(0.0, 0.0, 0.0)
|
||||
),
|
||||
(
|
||||
Material { color: math::vec4(0.6, 0.1, 0.1, 1.0), bind_group: None, uniform_buf: None },
|
||||
mesh_handle,
|
||||
LocalToWorld::identity(),
|
||||
LocalToWorld(math::translation(&math::vec3(-1.5, 0.0, 1.0))),
|
||||
Translation::new(0.0, 0.0, 0.0)
|
||||
),
|
||||
]);
|
||||
|
|
|
@ -29,9 +29,9 @@ impl Pass for ForwardPass {
|
|||
load_op: wgpu::LoadOp::Clear,
|
||||
store_op: wgpu::StoreOp::Store,
|
||||
clear_color: wgpu::Color {
|
||||
r: 0.1,
|
||||
g: 0.2,
|
||||
b: 0.3,
|
||||
r: 0.3,
|
||||
g: 0.4,
|
||||
b: 0.5,
|
||||
a: 1.0,
|
||||
},
|
||||
}],
|
||||
|
|
Loading…
Reference in a new issue