pub type LitMaterialDesc = PbrMaterial;Expand description
Backward compatibility alias.
Aliased Type§
pub struct LitMaterialDesc {Show 14 fields
pub base_color: [f32; 4],
pub emissive: [f32; 3],
pub roughness: f32,
pub metallic: f32,
pub base_color_tex: Option<u32>,
pub normal_tex: Option<u32>,
pub emissive_tex: Option<u32>,
pub roughness_metalness_tex: Option<u32>,
pub occlusion_tex: Option<u32>,
pub occlusion_strength: f32,
pub normal_scale: f32,
pub emissive_strength: f32,
pub alpha_mode: AlphaMode,
pub double_sided: bool,
}Fields§
§base_color: [f32; 4]Base color (RGBA linear).
emissive: [f32; 3]Emissive color (RGB linear).
roughness: f32Roughness [0..1]. 0 = mirror, 1 = diffuse.
metallic: f32Metallic [0..1]. 0 = dielectric, 1 = metal.
base_color_tex: Option<u32>Optional base color texture handle.
normal_tex: Option<u32>Optional normal map texture handle.
emissive_tex: Option<u32>Optional emissive texture handle.
roughness_metalness_tex: Option<u32>Optional roughness-metalness texture handle (R=metallic, G=roughness, glTF convention).
occlusion_tex: Option<u32>Optional occlusion texture handle.
occlusion_strength: f32Occlusion strength [0..1]. 1.0 = full effect.
normal_scale: f32Normal map scale factor. 1.0 = unmodified normals.
emissive_strength: f32Emissive strength multiplier. 1.0 = use emissive color as-is.
alpha_mode: AlphaModeAlpha blending mode.
double_sided: boolRender both front and back faces.