pub struct MeshMaterial {Show 30 fields
pub diffuse: [f32; 4],
pub ambient: [f32; 4],
pub specular: [f32; 4],
pub emissive: [f32; 4],
pub power: f32,
pub lighting_type: MeshLightingType,
pub shading_type: MeshShadingType,
pub shader_option: u32,
pub rim_light_color: [f32; 4],
pub rim_light_power: f32,
pub parallax_max_height: f32,
pub alpha_test_enable: bool,
pub alpha_ref: f32,
pub cull_disable: bool,
pub shadow_map_enable: bool,
pub use_mesh_tex: bool,
pub use_mrbd: bool,
pub mrbd: [f32; 4],
pub use_rgb: bool,
pub rgb_rate: [f32; 4],
pub add_rgb: [f32; 4],
pub use_mul_vertex_color: bool,
pub mul_vertex_color_rate: f32,
pub depth_buffer_shadow_bias: f32,
pub directional_light_ids: Vec<i32>,
pub point_light_ids: Vec<i32>,
pub spot_light_ids: Vec<i32>,
pub normal_texture_path: Option<PathBuf>,
pub toon_texture_path: Option<PathBuf>,
pub effect_filename: Option<String>,
}Fields§
§diffuse: [f32; 4]§ambient: [f32; 4]§specular: [f32; 4]§emissive: [f32; 4]§power: f32§lighting_type: MeshLightingType§shading_type: MeshShadingType§shader_option: u32§rim_light_color: [f32; 4]§rim_light_power: f32§parallax_max_height: f32§alpha_test_enable: bool§alpha_ref: f32§cull_disable: bool§shadow_map_enable: bool§use_mesh_tex: bool§use_mrbd: bool§mrbd: [f32; 4]§use_rgb: bool§rgb_rate: [f32; 4]§add_rgb: [f32; 4]§use_mul_vertex_color: bool§mul_vertex_color_rate: f32§depth_buffer_shadow_bias: f32§directional_light_ids: Vec<i32>§point_light_ids: Vec<i32>§spot_light_ids: Vec<i32>§normal_texture_path: Option<PathBuf>§toon_texture_path: Option<PathBuf>§effect_filename: Option<String>Trait Implementations§
Source§impl Clone for MeshMaterial
impl Clone for MeshMaterial
Source§fn clone(&self) -> MeshMaterial
fn clone(&self) -> MeshMaterial
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshMaterial
impl Debug for MeshMaterial
Source§impl Default for MeshMaterial
impl Default for MeshMaterial
Source§fn default() -> MeshMaterial
fn default() -> MeshMaterial
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MeshMaterial
impl RefUnwindSafe for MeshMaterial
impl Send for MeshMaterial
impl Sync for MeshMaterial
impl Unpin for MeshMaterial
impl UnsafeUnpin for MeshMaterial
impl UnwindSafe for MeshMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.