Explorar el Código

Fix small warning

Material glossiness is a float type value...
pull/117/head
victorfisac hace 8 años
padre
commit
90c62c4cc0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/models.c

+ 1
- 1
src/models.c Ver fichero

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

Cargando…
Cancelar
Guardar