pub struct MToonMaterial {Show 25 fields
pub transparent_with_z_write: bool,
pub render_queue_offset_number: i32,
pub shade_color: Vec3,
pub shade_multiply_texture: Option<TextureInfo>,
pub shading_shift_factor: f32,
pub shading_shift_texture: Option<TextureInfo>,
pub shading_shift_texture_scale: f32,
pub shading_toony_factor: f32,
pub gi_equalization_factor: f32,
pub matcap_factor: Vec3,
pub matcap_texture: Option<TextureInfo>,
pub parametric_rim_color_factor: Vec3,
pub parametric_rim_fresnel_power_factor: f32,
pub parametric_rim_lift_factor: f32,
pub rim_multiply_texture: Option<TextureInfo>,
pub rim_lighting_mix_factor: f32,
pub outline_width_mode: OutlineWidthMode,
pub outline_width_factor: f32,
pub outline_width_multiply_texture: Option<TextureInfo>,
pub outline_color_factor: Vec3,
pub outline_lighting_mix_factor: f32,
pub uv_animation_mask_texture: Option<TextureInfo>,
pub uv_animation_scroll_x_speed_factor: f32,
pub uv_animation_scroll_y_speed_factor: f32,
pub uv_animation_rotation_speed_factor: f32,
}Expand description
Parameters defined by VRMC_materials_mtoon only.
Fields§
§transparent_with_z_write: boolEnables depth writes for transparent materials.
render_queue_offset_number: i32Offset in the specification-defined MToon render queue range.
shade_color: Vec3Linear RGB shadow-side color multiplier.
shade_multiply_texture: Option<TextureInfo>Optional texture multiplied into Self::shade_color.
shading_shift_factor: f32Shifts the boundary between lit and shaded regions.
shading_shift_texture: Option<TextureInfo>Optional texture that varies the shading shift.
shading_shift_texture_scale: f32Multiplier applied to the shading-shift texture value.
shading_toony_factor: f32Controls the softness of the lit-to-shade transition.
gi_equalization_factor: f32Controls how strongly global illumination affects shading.
matcap_factor: Vec3Linear RGB multiplier for the matcap contribution.
matcap_texture: Option<TextureInfo>Optional sphere-mapped matcap texture.
parametric_rim_color_factor: Vec3Linear RGB color of the procedural rim-light contribution.
parametric_rim_fresnel_power_factor: f32Fresnel exponent of the procedural rim light.
parametric_rim_lift_factor: f32Additive lift applied before evaluating the rim-light Fresnel term.
rim_multiply_texture: Option<TextureInfo>Optional texture multiplied into the rim-light contribution.
rim_lighting_mix_factor: f32Mix factor between direct and indirect rim lighting.
outline_width_mode: OutlineWidthModeCoordinate system used to interpret outline width.
outline_width_factor: f32Base outline width in the units selected by Self::outline_width_mode.
outline_width_multiply_texture: Option<TextureInfo>Optional texture multiplied into the outline width.
outline_color_factor: Vec3Linear RGB outline color.
outline_lighting_mix_factor: f32Mix factor between unlit and lit outline color.
uv_animation_mask_texture: Option<TextureInfo>Optional mask controlling which pixels receive UV animation.
uv_animation_scroll_x_speed_factor: f32Horizontal UV scroll speed in UV units per second.
uv_animation_scroll_y_speed_factor: f32Vertical UV scroll speed in UV units per second.
uv_animation_rotation_speed_factor: f32Counter-clockwise UV rotation speed in radians per second.