clean up examples

This commit is contained in:
Carter Anderson 2020-03-02 08:33:52 -08:00
parent 22be0b3366
commit 9d71d0d3fc
2 changed files with 0 additions and 14 deletions

View file

@ -69,11 +69,6 @@ fn setup(world: &mut World) {
let mut mesh_storage = world.resources.get_mut::<AssetStorage<Mesh>>().unwrap();
(mesh_storage.add(cube), mesh_storage.add(plane))
};
// let texture_handle = {
// let mut texture_storage = world.resources.get_mut::<AssetStorage<Texture>>().unwrap();
// let texture = Texture::load(TextureType::Data(asset::create_texels(256), 256, 256));
// texture_storage.add(texture)
// };
let mut builder = world
.build()
@ -128,7 +123,6 @@ fn setup(world: &mut World) {
builder = builder.add_archetype(MeshEntity {
mesh: cube_handle,
material: StandardMaterial {
// albedo: texture_handle.into(),
albedo: math::vec4(
rng.gen_range(0.0, 1.0),
rng.gen_range(0.0, 1.0),

View file

@ -27,14 +27,6 @@ fn setup(world: &mut World) {
translation: Translation::new(0.0, 0.0, 0.0),
..Default::default()
})
.add_archetype(MeshEntity {
mesh: cube_handle,
material: StandardMaterial {
albedo: Vec4::new(1.0, 0.0, 0.0, 1.0).into(),
},
translation: Translation::new(2.0, 0.0, 0.0),
..Default::default()
})
// light
.add_archetype(LightEntity {
translation: Translation::new(4.0, -4.0, 5.0),