Skip to main content

Material

Struct Material 

Source
pub struct Material {
Show 91 fields pub name: String, pub description: String, pub override_ambient_color: bool, pub ambient_color_factor: f64, pub ambient_color_value: i32, pub override_diffuse_color: bool, pub diffuse_color_factor: f64, pub diffuse_color_value: i32, pub diffuse_map_blend_factor: f64, pub use_image_file_for_diffuse_map: bool, pub diffuse_map_file_name: String, pub diffuse_map_projection_method: MapProjectionMethod, pub diffuse_map_tiling_method: MapTilingMethod, pub diffuse_map_auto_transform_method: MapAutoTransformMethod, pub diffuse_map_transformation_matrix: TransformationMatrix, pub specular_gloss_factor: f64, pub override_specular_color: bool, pub specular_color_factor: f64, pub specular_color_value: i32, pub specular_map_blend_factor: f64, pub use_image_file_for_specular_map: bool, pub specular_map_file_name: String, pub specular_map_projection_method: MapProjectionMethod, pub specular_map_tiling_method: MapTilingMethod, pub specular_map_auto_transform_method: MapAutoTransformMethod, pub specular_map_transformation_matrix: TransformationMatrix, pub reflection_map_blend_factor: f64, pub use_image_file_for_reflection_map: bool, pub reflection_map_file_name: String, pub reflection_map_projection_method: MapProjectionMethod, pub reflection_map_tiling_method: MapTilingMethod, pub reflection_map_auto_transform_method: MapAutoTransformMethod, pub reflection_map_transformation_matrix: TransformationMatrix, pub opacity_factor: f64, pub opacity_map_blend_factor: f64, pub use_image_file_for_opacity_map: bool, pub opacity_map_file_name: String, pub opacity_map_projection_method: MapProjectionMethod, pub opacity_map_tiling_method: MapTilingMethod, pub opacity_map_auto_transform_method: MapAutoTransformMethod, pub opacity_map_transformation_matrix: TransformationMatrix, pub bump_map_blend_factor: f64, pub use_image_file_for_bump_map: bool, pub bump_map_file_name: String, pub bump_map_projection_method: MapProjectionMethod, pub bump_map_tiling_method: MapTilingMethod, pub bump_map_auto_transform_method: MapAutoTransformMethod, pub bump_map_transformation_matrix: TransformationMatrix, pub refraction_index: f64, pub refraction_map_blend_factor: f64, pub use_image_file_for_refraction_map: bool, pub refraction_map_file_name: String, pub refraction_map_projection_method: MapProjectionMethod, pub refraction_map_tiling_method: MapTilingMethod, pub refraction_map_auto_transform_method: MapAutoTransformMethod, pub refraction_map_transformation_matrix: TransformationMatrix, pub color_bleed_scale: f64, pub indirect_dump_scale: f64, pub reflectance_scale: f64, pub transmittance_scale: f64, pub is_two_sided: bool, pub luminance: f64, pub luminance_mode: i16, pub normal_map_method: i16, pub normal_map_strength: f64, pub normal_map_blend_factor: f64, pub use_image_file_for_normal_map: bool, pub normal_map_file_name: String, pub normal_map_projection_method: MapProjectionMethod, pub normal_map_tiling_method: MapTilingMethod, pub normal_map_auto_transform_method: MapAutoTransformMethod, pub normal_map_transformation_matrix: TransformationMatrix, pub is_anonymous: bool, pub global_illumination_mode: i16, pub final_gather_mode: i16, pub gen_proc_name: String, pub gen_proc_boolean_value: bool, pub gen_proc_integer_value: i16, pub gen_proc_real_value: f64, pub gen_proc_text_value: String, pub gen_proc_table_end: bool, pub gen_proc_color_index_value: Color, pub gen_proc_color_rgb_value: i32, pub gen_proc_color_name: String, pub map_u_tile: i16, pub map_v_tile: i16, pub translucence: f64, pub self_illumination: i32, pub reflectivity: f64, pub illumination_model: i32, pub channel_flags: i32, /* private fields */
}

Fields§

§name: String§description: String§override_ambient_color: bool§ambient_color_factor: f64§ambient_color_value: i32§override_diffuse_color: bool§diffuse_color_factor: f64§diffuse_color_value: i32§diffuse_map_blend_factor: f64§use_image_file_for_diffuse_map: bool§diffuse_map_file_name: String§diffuse_map_projection_method: MapProjectionMethod§diffuse_map_tiling_method: MapTilingMethod§diffuse_map_auto_transform_method: MapAutoTransformMethod§diffuse_map_transformation_matrix: TransformationMatrix§specular_gloss_factor: f64§override_specular_color: bool§specular_color_factor: f64§specular_color_value: i32§specular_map_blend_factor: f64§use_image_file_for_specular_map: bool§specular_map_file_name: String§specular_map_projection_method: MapProjectionMethod§specular_map_tiling_method: MapTilingMethod§specular_map_auto_transform_method: MapAutoTransformMethod§specular_map_transformation_matrix: TransformationMatrix§reflection_map_blend_factor: f64§use_image_file_for_reflection_map: bool§reflection_map_file_name: String§reflection_map_projection_method: MapProjectionMethod§reflection_map_tiling_method: MapTilingMethod§reflection_map_auto_transform_method: MapAutoTransformMethod§reflection_map_transformation_matrix: TransformationMatrix§opacity_factor: f64§opacity_map_blend_factor: f64§use_image_file_for_opacity_map: bool§opacity_map_file_name: String§opacity_map_projection_method: MapProjectionMethod§opacity_map_tiling_method: MapTilingMethod§opacity_map_auto_transform_method: MapAutoTransformMethod§opacity_map_transformation_matrix: TransformationMatrix§bump_map_blend_factor: f64§use_image_file_for_bump_map: bool§bump_map_file_name: String§bump_map_projection_method: MapProjectionMethod§bump_map_tiling_method: MapTilingMethod§bump_map_auto_transform_method: MapAutoTransformMethod§bump_map_transformation_matrix: TransformationMatrix§refraction_index: f64§refraction_map_blend_factor: f64§use_image_file_for_refraction_map: bool§refraction_map_file_name: String§refraction_map_projection_method: MapProjectionMethod§refraction_map_tiling_method: MapTilingMethod§refraction_map_auto_transform_method: MapAutoTransformMethod§refraction_map_transformation_matrix: TransformationMatrix§color_bleed_scale: f64§indirect_dump_scale: f64§reflectance_scale: f64§transmittance_scale: f64§is_two_sided: bool§luminance: f64§luminance_mode: i16§normal_map_method: i16§normal_map_strength: f64§normal_map_blend_factor: f64§use_image_file_for_normal_map: bool§normal_map_file_name: String§normal_map_projection_method: MapProjectionMethod§normal_map_tiling_method: MapTilingMethod§normal_map_auto_transform_method: MapAutoTransformMethod§normal_map_transformation_matrix: TransformationMatrix§is_anonymous: bool§global_illumination_mode: i16§final_gather_mode: i16§gen_proc_name: String§gen_proc_boolean_value: bool§gen_proc_integer_value: i16§gen_proc_real_value: f64§gen_proc_text_value: String§gen_proc_table_end: bool§gen_proc_color_index_value: Color§gen_proc_color_rgb_value: i32§gen_proc_color_name: String§map_u_tile: i16§map_v_tile: i16§translucence: f64§self_illumination: i32§reflectivity: f64§illumination_model: i32§channel_flags: i32

Trait Implementations§

Source§

impl Clone for Material

Source§

fn clone(&self) -> Material

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Material

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Material

Source§

fn default() -> Material

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

impl PartialEq for Material

Source§

fn eq(&self, other: &Material) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Material

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.