pub struct EvaluatedMaterial {
pub material_id: MaterialId,
pub base_color_factor: [f32; 4],
pub emissive_factor: [f32; 3],
pub shade_color_factor: [f32; 3],
pub matcap_factor: [f32; 3],
pub rim_color_factor: [f32; 3],
pub outline_color_factor: [f32; 3],
pub texture_transform: TextureTransform,
pub uv_animation: UvAnimationState,
}Expand description
Final dynamic values of one material for an evaluated frame.
Static texture references and render-state settings remain on crate::Material.
This value contains the parameters that can change because of VRM expressions
or MToon UV animation, so renderers do not need to reimplement VRM blending.
Fields§
§material_id: MaterialIdStable identifier of the source crate::Material.
base_color_factor: [f32; 4]Base color after all active VRM expression binds are accumulated.
emissive_factor: [f32; 3]Expression-adjusted emissive color with the selected HDR strength already applied.
shade_color_factor: [f32; 3]MToon shade color after active expression binds are accumulated.
matcap_factor: [f32; 3]MToon matcap color after active expression binds are accumulated.
rim_color_factor: [f32; 3]MToon rim color after active expression binds are accumulated.
outline_color_factor: [f32; 3]MToon outline color after active expression binds are accumulated.
texture_transform: TextureTransformMaterial-wide transform produced by VRM expression binds.
uv_animation: UvAnimationStateTime-dependent MToon transform, applied before expression and texture transforms.