Create wall surfaces directly from the HWWall output

This commit is contained in:
dpjudas 2023-10-27 23:18:44 +02:00 committed by Magnus Norddahl
commit 9ca058ccc9
7 changed files with 100 additions and 196 deletions

View file

@ -305,9 +305,9 @@ void VkRaytrace::UploadMeshes(bool dynamicOnly)
info.SamplingDistance = (float)surface->sampleDimension;
info.Sky = surface->bSky;
info.Alpha = surface->alpha;
if (surface->texture.isValid())
if (surface->texture)
{
auto mat = FMaterial::ValidateTexture(TexMan.GetGameTexture(surface->texture), 0);
auto mat = FMaterial::ValidateTexture(surface->texture, 0);
info.TextureIndex = fb->GetBindlessTextureIndex(mat, CLAMP_NONE, 0);
}
else