Fix small warning
Material glossiness is a float type value...
This commit is contained in:
parent
4f1bee3165
commit
90c62c4cc0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue