Trait arendur::component::Primitive [] [src]

pub trait Primitive: Composable + Light {
    fn is_emissive(&self) -> bool;
    fn get_material(&self) -> &Material;
}

A renderable primitive

Required Methods

return if the primitive can emit lights

return the material associated with this primitive

Implementors