Skip to main content

material

Function material 

Source
pub fn material(
    path_id: i64,
    material_name: &[u8],
    shader: (i32, i64),
    floats: &[(&str, f32)],
    colors: &[(&str, [f32; 4])],
    textures: &[(&str, V)],
) -> Object
Expand description

A Material with explicitly supplied properties and default render queue. Entries are kept in caller order; duplicate names can exercise hostile input.