setMapColor

fun setMapColor(index: Int, color: Color)

Sets the color of a material map directly. This matches the C pattern: material.maps[index].color = RED

Parameters

index

The index of the material map

color

The color to set


fun setMapColor(mapType: MaterialMap.Texture, color: Color)

Sets the color of a material map directly. This matches the C pattern: material.maps[mapType].color = RED

Parameters

mapType

The type of material map (e.g., ALBEDO/DIFFUSE)

color

The color to set