Split doom specific surface data from common/gpu surface data

This commit is contained in:
Magnus Norddahl 2024-08-20 02:06:05 +02:00
commit 356ad2fe9f
9 changed files with 110 additions and 97 deletions

View file

@ -557,7 +557,7 @@ void VkLevelMeshUploader::UploadSurfaces()
SurfaceInfo* surfaces = (SurfaceInfo*)(data + datapos);
for (int j = 0, count = range.Size; j < count; j++)
{
LevelMeshSurface* surface = Mesh->Mesh->GetSurface(range.Offset + j);
LevelMeshSurface* surface = &Mesh->Mesh->Mesh.Surfaces[range.Offset + j];
SurfaceInfo info;
info.Normal = FVector3(surface->Plane.X, surface->Plane.Z, surface->Plane.Y);