소스 검색

Fix small warning

Material glossiness is a float type value...
pull/117/head
victorfisac 8 년 전
부모
커밋
90c62c4cc0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/models.c

+ 1
- 1
src/models.c 파일 보기

@ -2068,7 +2068,7 @@ static Material LoadMTL(const char *fileName)
{
if (buffer[1] == 's') // Ns int Shininess (specular exponent). Ranges from 0 to 1000.
{
sscanf(buffer, "Ns %i", &material.glossiness);
sscanf(buffer, "Ns %f", &material.glossiness);
}
else if (buffer[1] == 'i') // Ni int Refraction index.
{

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