pub struct MaterialParams {
    pub pipeline_params: PipelineParams,
    pub uniforms: Vec<(String, UniformType)>,
    pub textures: Vec<String>,
}
Expand description

Params used for material loading. It is not possible to change material params at runtime, so this struct is used only once - at “load_material”.

Fields

pipeline_params: PipelineParams

miniquad pipeline configuration for this material. Things like blending, culling, depth dest

uniforms: Vec<(String, UniformType)>

List of custom uniforms used in this material

textures: Vec<String>

List of textures used in this material

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.