SetMaterialTexture method

void SetMaterialTexture(
  1. Material material,
  2. MaterialMapIndex mapType,
  3. Texture texture
)

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

Implementation

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