Rename MeshSurfaces to MeshSurfaceIndexes for clarity

This commit is contained in:
Magnus Norddahl 2023-09-02 12:34:00 +02:00
commit 1e47db3cf3
4 changed files with 7 additions and 7 deletions

View file

@ -61,7 +61,7 @@ DoomLevelMesh::DoomLevelMesh(FLevelLocals &doomMap)
MeshElements.Push(pos);
MeshElements.Push(pos + j - 1);
MeshElements.Push(pos + j);
MeshSurfaces.Push((int)i);
MeshSurfaceIndexes.Push((int)i);
}
}
}
@ -72,14 +72,14 @@ DoomLevelMesh::DoomLevelMesh(FLevelLocals &doomMap)
MeshElements.Push(pos + 0);
MeshElements.Push(pos + 1);
MeshElements.Push(pos + 2);
MeshSurfaces.Push((int)i);
MeshSurfaceIndexes.Push((int)i);
}
if (!IsDegenerate(verts[1], verts[2], verts[3]))
{
MeshElements.Push(pos + 3);
MeshElements.Push(pos + 2);
MeshElements.Push(pos + 1);
MeshSurfaces.Push((int)i);
MeshSurfaceIndexes.Push((int)i);
}
}
}

View file

@ -24,7 +24,7 @@ public:
if (hit.fraction == 1.0f)
return true;
int surfaceIndex = MeshSurfaces[hit.triangle];
int surfaceIndex = MeshSurfaceIndexes[hit.triangle];
return Surfaces[surfaceIndex].bSky;
}