Create a new material_map object.
Examples
mat <- material_map(texture(0L, 64L, 64L, 1L, 7L), "red", 0.0)
mat$texture
#> texture(id = 0, width = 64, height = 64, mipmaps = 1, format = 7)
mat$color
#> color(r = 255, g = 0, b = 0, a = 255)
Create a new material_map object.
mat <- material_map(texture(0L, 64L, 64L, 1L, 7L), "red", 0.0)
mat$texture
#> texture(id = 0, width = 64, height = 64, mipmaps = 1, format = 7)
mat$color
#> color(r = 255, g = 0, b = 0, a = 255)