Fix small warning

Material glossiness is a float type value...
This commit is contained in:
victorfisac 2016-05-20 14:07:50 +02:00
parent 4f1bee3165
commit 90c62c4cc0

View file

@ -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.
{