File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments