소스 검색

LoadIQM() set model.meshMaterial[] (#4092)

pull/4096/head
SuperUserNameMan 11 달 전
committed by GitHub
부모
커밋
7773254022
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      src/rmodels.c

+ 2
- 0
src/rmodels.c 파일 보기

@ -4326,6 +4326,8 @@ static Model LoadIQM(const char *fileName)
model.materials[i] = LoadMaterialDefault();
model.materials[i].maps[MATERIAL_MAP_ALBEDO].texture = LoadTexture(TextFormat("%s/%s", basePath, material));
model.meshMaterial[i] = i;
TRACELOG(LOG_DEBUG, "MODEL: [%s] mesh name (%s), material (%s)", fileName, name, material);
model.meshes[i].vertexCount = imesh[i].num_vertexes;

불러오는 중...
취소
저장