bevy/src/render/render_graph/uniforms/standard_material.rs

18 lines
376 B
Rust
Raw Normal View History

use crate::{math::Vec4, render::ColorSource};
2020-02-10 02:09:54 +00:00
2020-02-18 03:53:48 +00:00
use crate as bevy; // for macro imports
2020-02-10 02:09:54 +00:00
use bevy_derive::Uniforms;
#[derive(Uniforms)]
pub struct StandardMaterial {
pub albedo: ColorSource,
2020-02-11 17:31:49 +00:00
}
impl Default for StandardMaterial {
fn default() -> Self {
StandardMaterial {
albedo: ColorSource::Color(Vec4::new(0.3, 0.3, 0.3, 1.0)),
2020-02-11 17:31:49 +00:00
}
}
}