Create a `mvdf_simple_material` object

mvdf_simple_material(
  data = NULL,
  diffuse_color = "diffuse_color",
  metallic = "metallic",
  roughness = "roughness",
  translate_colors = NULL,
  ...
)

Arguments

data

Optionally, a data frame containing all the data necessary to create a `mvdf_simple_material`. If `NULL`, all other arguments are interpreted as data to use in constructing the object; if not `NULL`, arguments are interpreted as the names of columns in `data` containing the values for each slot.

diffuse_color

Diffuse color of the material, in either a RGBA array (if `translate_colors` is `TRUE`) or in any of the formats understood by [grDevices::col2rgb] (if `translate_colors` is `FALSE`). If colors are missing, they are set to gray80. If `translate_colors` is `NULL`, the default, this function attempts to infer if values are already RGBA arrays.

metallic

Amount of mirror reflection for raytrace, as a float from 0-1. If missing, set to 0.

roughness

Roughness of the material, as a float from 0-1. If missing, set to 0.

translate_colors

Logical: use `grDevices` to create RGBA arrays from `diffuse_color`?

...

Additional arguments passed to [mvdf_obj]