use bevy::prelude::*; use forky_play::materials::UnlitTextureMaterial; use forky_play::*; fn main() { App::new() .add_plugins(plugins::ForkyDebugPlugin::default()) .add_plugins(MaterialPlugin::::default()) .add_systems(Startup, setup) .run(); } fn setup( mut commands: Commands, mut meshes: ResMut>, mut materials: ResMut>, asset_server: Res, ) { commands.spawn(MaterialMeshBundle { mesh: meshes.add(Mesh::from(Cuboid::default())), transform: Transform::from_xyz(0.0, 0.5, 0.0), material: materials.add(UnlitTextureMaterial { color: Color::GREEN, color_texture: Some(asset_server.load("branding/icon.png")), alpha_mode: AlphaMode::Blend, ..default() }), ..default() }); }