SetMaterialTexture method

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

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

Implementation

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