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
fn is_emissive(&self) -> bool
return if the primitive can emit lights
fn get_material(&self) -> &Material
return the material associated with this primitive
Implementors
impl Primitive for TriangleInstance
impl<S, M> Primitive for ShapedPrimitive<S, M> where
S: Shape,
M: Material,impl<T: Primitive> Primitive for TransformedComposable<T>
impl<T: Primitive> Primitive for TransformedComposable<Arc<T>>
impl Primitive for TransformedComposable<Arc<Primitive>>