Trait kiss3d::resource::material::Material
[−]
[src]
pub trait Material { fn render(&mut self,
pass: usize,
transform: &Isometry3<f32>,
scale: &Vector3<f32>,
camera: &mut Camera,
light: &Light,
data: &ObjectData,
mesh: &mut Mesh); }
Trait implemented by materials.
Required Methods
fn render(&mut self,
pass: usize,
transform: &Isometry3<f32>,
scale: &Vector3<f32>,
camera: &mut Camera,
light: &Light,
data: &ObjectData,
mesh: &mut Mesh)
pass: usize,
transform: &Isometry3<f32>,
scale: &Vector3<f32>,
camera: &mut Camera,
light: &Light,
data: &ObjectData,
mesh: &mut Mesh)
Renders an object using this material.
Implementors
impl Material for ObjectMaterial
impl Material for NormalsMaterial
impl Material for UvsMaterial