tweak simple new

This commit is contained in:
Carter Anderson 2020-02-11 18:54:04 -08:00
parent 7cdc2351ba
commit d58c5e7f5c

View file

@ -1,6 +1,6 @@
use bevy::{ use bevy::{
prelude::*, prelude::*,
render::render_graph_2::{ShaderUniforms, StandardMaterial}, render::render_graph_2::{StandardMaterial},
}; };
fn main() { fn main() {
@ -31,7 +31,7 @@ fn setup(world: &mut World) {
.add_archetype(NewMeshEntity { .add_archetype(NewMeshEntity {
mesh: cube_handle.clone(), mesh: cube_handle.clone(),
material: StandardMaterial { material: StandardMaterial {
albedo: math::vec4(0.5, 0.3, 0.3, 1.0), albedo: math::vec4(0.5, 0.4, 0.3, 1.0),
everything_is_red: false, everything_is_red: false,
}, },
translation: Translation::new(0.0, 0.0, 1.0), translation: Translation::new(0.0, 0.0, 1.0),
@ -43,7 +43,7 @@ fn setup(world: &mut World) {
color: wgpu::Color { color: wgpu::Color {
r: 0.8, r: 0.8,
g: 0.8, g: 0.8,
b: 0.5, b: 0.8,
a: 1.0, a: 1.0,
}, },
fov: f32::to_radians(60.0), fov: f32::to_radians(60.0),