From 7ea85a60d586164cfbe5920abf68aec9192c0b77 Mon Sep 17 00:00:00 2001 From: Ion Agorria Date: Wed, 23 Oct 2024 22:43:58 +0200 Subject: [PATCH] sokol: Disable tiles reflection for now until fixed --- Source/Render/tilemap/TileMapRender.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Render/tilemap/TileMapRender.cpp b/Source/Render/tilemap/TileMapRender.cpp index 95d81220..01c1e3dd 100644 --- a/Source/Render/tilemap/TileMapRender.cpp +++ b/Source/Render/tilemap/TileMapRender.cpp @@ -447,6 +447,13 @@ void cTileMapRender::DrawBump(cCamera* DrawNode,eBlendMode MatMode,TILEMAP_DRAW bool use_shadow_map=false; gb_RenderDevice->SetWorldMatXf(MatXf::ID); + + //TODO remove this ifdef once tile reflections stop clipping in soklo +#ifdef PERIMETER_D3D9 + if (!gb_RenderDevice3D && reflection) return; +#else + if (reflection) return; +#endif // setup rendering if(tilemap->GetShadowMap() && !shadow && Option_ShadowType == SHADOW_MAP &&