Skip to content

Commit a8ebdd9

Browse files
committed
unbreak (disable) ground plane with simple transparency
1 parent 74b971d commit a8ebdd9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/render/ground_plane.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ void GroundPlane::draw(bool isRedraw) {
178178
// don't draw ground in planar mode
179179
if (view::style == view::NavigateStyle::Planar) return;
180180

181+
// don't draw the ground in Simple transparency mode
182+
// (there's not really any way to do so that doesn't look weird at the horizon boundary)
183+
if (render::engine->getTransparencyMode() == TransparencyMode::Simple) {
184+
return;
185+
}
186+
181187
if (!groundPlanePrepared || groundPlanePreparedMode != options::groundPlaneMode) {
182188
prepare();
183189
}
@@ -382,7 +388,6 @@ void GroundPlane::draw(bool isRedraw) {
382388

383389
// Render the ground plane
384390
render::engine->applyTransparencySettings();
385-
render::engine->setDepthMode(DepthMode::Less);
386391
setUniforms();
387392
groundPlaneProgram->draw();
388393
}

0 commit comments

Comments
 (0)