- fixed. Boom's generalized crushers must stop 8 units above the floor

This required changing the special, so a new one was added to avoid altering Generic_Crusher.
This commit is contained in:
Christoph Oelckers 2023-09-15 00:34:45 +02:00
commit 096b9cdc4f
4 changed files with 11 additions and 1 deletions

View file

@ -82,6 +82,7 @@ void FHWModelRenderer::EndDrawModel(FRenderStyle style, FSpriteModelFrame *smf)
void FHWModelRenderer::BeginDrawHUDModel(FRenderStyle style, const VSMatrix &objectToWorldMatrix, bool mirrored)
{
state.SetDepthFunc(DF_LEqual);
state.SetDepthClamp(true);
// [BB] In case the model should be rendered translucent, do back face culling.
// This solves a few of the problems caused by the lack of depth sorting.