SetMaterialTexture method

void SetMaterialTexture(
  1. MaterialD material,
  2. MaterialMapIndex mapType,
  3. TextureD texture
)

Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)

Implementation

void SetMaterialTexture(
  MaterialD material,
  MaterialMapIndex mapType,
  TextureD texture,
) => run(
  () => _debugLabels.SetMaterialTexture(material, mapType, texture),
  () => material.maps[mapType.value].texture = texture,
);