[][src]Trait mutiny::renderer::pbr_material::Material

pub trait Material: Material {
    fn data(&self) -> Option<Data>;
fn uniforms(
        &self,
        entities: &EntitiesThreadLocal,
        textures: &TexturesPool
    ) -> Vec<Uniform>;
fn properties(&self) -> Vec<Property>;
fn program(
        &self,
        entities: &EntitiesThreadLocal,
        programs: &mut Arena<Program>,
        gl: &Renderer
    ) -> ProgramRef;
fn double_sided(&self) -> bool;
fn alpha(&self) -> f32;
fn alpha_type(&self) -> AlphaType;
fn update(
        &mut self,
        entities: &EntitiesThreadLocal,
        resources: &ResourcesThreadLocal
    ) -> bool;
fn textures(&self) -> Vec<&TextureSampler>; fn priority(&self) -> Option<i32> { ... } }

Required Methods

Provided Methods

Implementors

impl Material for BasicMaterial
[src]

impl Material for OutlineMaterial
[src]

impl Material for Material
[src]

impl<M: PbrMaterial> Material for M
[src]