StandardMaterial

StandardMaterial

  • base_color : bevy_color::color::Color
  • base_color_channel : bevy_pbr::pbr_material::UvChannel
  • base_color_texture : core::option::Option<bevy_asset::handle::Handle<bevy_image::image::Image>>
  • emissive : bevy_color::linear_rgba::LinearRgba
  • emissive_exposure_weight : f32
  • emissive_channel : bevy_pbr::pbr_material::UvChannel
  • emissive_texture : core::option::Option<bevy_asset::handle::Handle<bevy_image::image::Image>>
  • perceptual_roughness : f32
  • metallic : f32
  • metallic_roughness_channel : bevy_pbr::pbr_material::UvChannel
  • metallic_roughness_texture : core::option::Option<bevy_asset::handle::Handle<bevy_image::image::Image>>
  • reflectance : f32
  • diffuse_transmission : f32
  • specular_transmission : f32
  • thickness : f32
  • ior : f32
  • attenuation_distance : f32
  • attenuation_color : bevy_color::color::Color
  • normal_map_channel : bevy_pbr::pbr_material::UvChannel
  • normal_map_texture : core::option::Option<bevy_asset::handle::Handle<bevy_image::image::Image>>
  • flip_normal_map_y : bool
  • occlusion_channel : bevy_pbr::pbr_material::UvChannel
  • occlusion_texture : core::option::Option<bevy_asset::handle::Handle<bevy_image::image::Image>>
  • clearcoat : f32
  • clearcoat_perceptual_roughness : f32
  • anisotropy_strength : f32
  • anisotropy_rotation : f32
  • double_sided : bool
  • unlit : bool
  • fog_enabled : bool
  • alpha_mode : bevy_render::alpha::AlphaMode
  • depth_bias : f32
  • depth_map : core::option::Option<bevy_asset::handle::Handle<bevy_image::image::Image>>
  • parallax_depth_scale : f32
  • parallax_mapping_method : bevy_pbr::parallax::ParallaxMappingMethod
  • max_parallax_layer_count : f32
  • lightmap_exposure : f32
  • opaque_render_method : bevy_pbr::material::OpaqueRendererMethod
  • deferred_lighting_pass_id : u8
  • uv_transform : glam::Affine2

Description

A material with "standard" properties used in PBR lighting Standard property values with pictures here https://google.github.io/filament/Material%20Properties.pdf.

May be created directly from a [Color] or an [Image].

Functions