mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- fixed culling of mirrored voxels for real this time.
This commit is contained in:
parent
7f1a3431ca
commit
eeabe0fe6d
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ void HWSprite::DrawSprite(HWDrawInfo* di, FRenderState& state, bool translucent)
|
|||
state.SetDepthFunc(DF_LEqual);
|
||||
state.EnableTexture(true);
|
||||
model->BuildVertexBuffer(&mr);
|
||||
bool mirrored = ((Sprite->cstat & CSTAT_SECTOR_XFLIP) != 0) ^ ((Sprite->cstat & CSTAT_SECTOR_YFLIP) != 0) ^ portalState.isMirrored();
|
||||
bool mirrored = ((Sprite->cstat & CSTAT_SPRITE_XFLIP) != 0) ^ ((Sprite->cstat & CSTAT_SPRITE_YFLIP) != 0) ^ portalState.isMirrored();
|
||||
mr.BeginDrawModel(RenderStyle, nullptr, rotmat, mirrored);
|
||||
mr.SetupFrame(model, 0, 0, 0);
|
||||
model->RenderFrame(&mr, TexMan.GetGameTexture(model->GetPaletteTexture()), 0, 0, 0.f, TRANSLATION(Translation_Remap + curbasepal, palette));
|
||||
|
|
Loading…
Reference in a new issue