let cpu traces pass through non-opaque surfaces

This commit is contained in:
Ricardo Luís Vaz Silva 2025-01-11 19:39:37 -03:00 committed by Magnus Norddahl
commit f4b7c3933e

View file

@ -105,7 +105,7 @@ LevelMeshSurface* LevelMesh::Trace(const FVector3& start, FVector3 direction, fl
hitSurface = &Mesh.Surfaces[Mesh.SurfaceIndexes[hit.triangle]];
int portal = hitSurface->PortalIndex;
if (!portal)
if (!portal && hitSurface->Alpha >= 1.0)
{
break;
}