Skip to contents

Set texture for a material map of a model. Modifies the model in place.

Usage

set_model_texture(model, material_id, map_type, texture)

Arguments

model

A model.

material_id

An integer. Material index.

map_type

An integer. Material map type.

texture

A texture.

Examples

if (FALSE) {
model <- load_model("model.obj")
tex <- load_texture("texture.png")
set_model_texture(model, 0L, material_map_index$albedo, tex)
}