From 6b937d5df463a013099aebd7482d77c453e8c7cc Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 2 Dec 2019 10:54:42 -0800 Subject: [PATCH] use more harmonious colors in sample --- examples/simple.rs | 6 +++--- src/render/forward/mod.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/simple.rs b/examples/simple.rs index 4d6fb0d513..42c228b4b7 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -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) ), ]); diff --git a/src/render/forward/mod.rs b/src/render/forward/mod.rs index 72a0ba1ccc..40c5f5bc6d 100644 --- a/src/render/forward/mod.rs +++ b/src/render/forward/mod.rs @@ -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, }, }],