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: i32Trait Implementations§
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnsafeUnpin for Material
impl UnwindSafe for Material
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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