Skip to content

Commit 12bde20

Browse files
committed
Don't decrease depth upwards when rendering terrain tiles
This can apparently break depth rendering for extra graphics of flat tiles
1 parent 4a79546 commit 12bde20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TSMapEditor/Rendering/MapView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public void DrawVisibleMapPortion()
369369
SetPaletteEffectParams(palettedColorDrawEffect, TheaterGraphics.TheaterPalette.GetTexture(), true, false, 1.0f);
370370
palettedColorDrawEffect.Parameters["ComplexDepth"].SetValue(false);
371371
palettedColorDrawEffect.Parameters["IncreaseDepthUpwards"].SetValue(false);
372-
palettedColorDrawEffect.Parameters["DecreaseDepthUpwards"].SetValue(true);
372+
palettedColorDrawEffect.Parameters["DecreaseDepthUpwards"].SetValue(false);
373373
var palettedColorDrawSettings = new SpriteBatchSettings(spriteSortMode, BlendState.Opaque, null, depthRenderStencilState, null, palettedColorDrawEffect);
374374
Renderer.PushSettings(palettedColorDrawSettings);
375375
DoForVisibleCells(DrawTerrainTileAndRegisterObjects);

0 commit comments

Comments
 (0)