Add color blending for lights

This commit is contained in:
RaveYard 2023-09-20 22:44:05 +02:00 committed by Magnus Norddahl
commit eb134d3fbf
5 changed files with 47 additions and 7 deletions

View file

@ -66,6 +66,7 @@ struct LevelMeshSurface
//
FTextureID texture = FNullTextureID();
float alpha = 1.0;
int portalIndex = 0;
int sectorGroup = 0;

View file

@ -137,6 +137,8 @@ void VkRaytrace::CreateBuffers()
info.TextureIndex = -1;
}
info.Alpha = surface->alpha;
surfaceInfo.Push(info);
}

View file

@ -34,7 +34,7 @@ struct SurfaceInfo
float SamplingDistance;
uint32_t PortalIndex;
int32_t TextureIndex;
float Padding;
float Alpha;
};
struct SurfaceVertex