use bevy_render::{texture::Texture, Color}; use bevy_asset::Handle; use bevy_derive::Uniforms; use bevy_asset; #[derive(Uniforms)] #[module(meta = false)] pub struct StandardMaterial { #[uniform(instance)] pub albedo: Color, #[uniform(shader_def)] pub albedo_texture: Option>, } impl Default for StandardMaterial { fn default() -> Self { StandardMaterial { albedo: Color::rgb(1.0, 1.0, 1.0), albedo_texture: None, } } }