From 511e5956d8e517a38d2f8b97e5331a8984c683f1 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 2 Nov 2017 16:17:35 -0700 Subject: [PATCH] Don't clear away the scenery after drawing it! Fixes the 3D view. --- demo/client/src/renderer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/client/src/renderer.ts b/demo/client/src/renderer.ts index 7321db71..ac3ba085 100644 --- a/demo/client/src/renderer.ts +++ b/demo/client/src/renderer.ts @@ -111,9 +111,6 @@ export abstract class Renderer { renderContext.atlasRenderingTimerQuery); } - // Draw "scenery" (used in the 3D view). - this.drawSceneryIfNecessary(); - // Antialias. const antialiasingStrategy = unwrapNull(this.antialiasingStrategy); antialiasingStrategy.antialias(this); @@ -124,6 +121,9 @@ export abstract class Renderer { // Clear. this.clearForDirectRendering(); + // Draw "scenery" (used in the 3D view). + this.drawSceneryIfNecessary(); + // Perform direct rendering (Loop-Blinn). if (antialiasingStrategy.directRenderingMode !== 'none') this.renderDirect();