use more harmonious colors in sample

This commit is contained in:
Carter Anderson 2019-12-02 10:54:42 -08:00
parent 3922c76efe
commit 6b937d5df4
2 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ fn main() {
world.insert((), vec![ 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(), plane_handle.clone(),
LocalToWorld(math::translation(&math::vec3(0.0, 0.0, 0.0))), LocalToWorld(math::translation(&math::vec3(0.0, 0.0, 0.0))),
Translation::new(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 }, Material { color: math::vec4(0.1, 0.1, 0.6, 1.0), bind_group: None, uniform_buf: None },
mesh_handle.clone(), 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) 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 }, Material { color: math::vec4(0.6, 0.1, 0.1, 1.0), bind_group: None, uniform_buf: None },
mesh_handle, mesh_handle,
LocalToWorld::identity(), LocalToWorld(math::translation(&math::vec3(-1.5, 0.0, 1.0))),
Translation::new(0.0, 0.0, 0.0) Translation::new(0.0, 0.0, 0.0)
), ),
]); ]);

View file

@ -29,9 +29,9 @@ impl Pass for ForwardPass {
load_op: wgpu::LoadOp::Clear, load_op: wgpu::LoadOp::Clear,
store_op: wgpu::StoreOp::Store, store_op: wgpu::StoreOp::Store,
clear_color: wgpu::Color { clear_color: wgpu::Color {
r: 0.1, r: 0.3,
g: 0.2, g: 0.4,
b: 0.3, b: 0.5,
a: 1.0, a: 1.0,
}, },
}], }],