Procházet zdrojové kódy

Small code tweak to avoid warning

pull/1039/head
Ray před 5 roky
rodič
revize
1397242d88
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. +2
    -3
      src/models.c

+ 2
- 3
src/models.c Zobrazit soubor

@ -2372,10 +2372,9 @@ void MeshBinormals(Mesh *mesh)
{
Vector3 normal = { mesh->normals[i*3 + 0], mesh->normals[i*3 + 1], mesh->normals[i*3 + 2] };
Vector3 tangent = { mesh->tangents[i*4 + 0], mesh->tangents[i*4 + 1], mesh->tangents[i*4 + 2] };
kt">float tangentW = mesh->tangents[i*4 + 3];
n">Vector3 binormal = Vector3Multiply(Vector3CrossProduct(normal, tangent), mesh->tangents[i*4 + 3]);
// TODO: Register computed binormal in mesh->binormal?
// Vector3 binormal = Vector3Multiply(Vector3CrossProduct(normal, tangent), tangentW);
}
}

Načítá se…
Zrušit
Uložit