Skip to contents

Set texture for a material map type. Modifies the material in place.

Usage

set_material_texture(material, map_type, texture)

Arguments

material

A material.

map_type

An integer. Material map type.

texture

A texture.

See also

Examples

if (FALSE) {
mat <- load_material_default()
tex <- load_texture("texture.png")
set_material_texture(mat, material_map_index$albedo, tex)
}