mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
tweak simple new
This commit is contained in:
parent
7cdc2351ba
commit
d58c5e7f5c
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||||
|
|
Loading…
Add table
Reference in a new issue