Set autoclear to false for renderer
This commit is contained in:
parent
937e90b5f4
commit
e7ff4c5493
1 changed files with 1 additions and 1 deletions
|
@ -61,6 +61,7 @@ export function buildScene(container: HTMLElement, extent: Extent) {
|
||||||
renderer.setPixelRatio(window.devicePixelRatio);
|
renderer.setPixelRatio(window.devicePixelRatio);
|
||||||
renderer.setSize(width, height);
|
renderer.setSize(width, height);
|
||||||
renderer.localClippingEnabled = true;
|
renderer.localClippingEnabled = true;
|
||||||
|
renderer.autoClear = false;
|
||||||
renderer.setAnimationLoop(animate);
|
renderer.setAnimationLoop(animate);
|
||||||
|
|
||||||
// Handle window resize event to adapt the aspect ratio
|
// Handle window resize event to adapt the aspect ratio
|
||||||
|
@ -82,7 +83,6 @@ export function buildScene(container: HTMLElement, extent: Extent) {
|
||||||
scene.userData.wireframe = false;
|
scene.userData.wireframe = false;
|
||||||
const backgroundColor = new Color(0xbfd1e5);
|
const backgroundColor = new Color(0xbfd1e5);
|
||||||
scene.background = backgroundColor;
|
scene.background = backgroundColor;
|
||||||
renderer.setClearColor(backgroundColor);
|
|
||||||
|
|
||||||
// Add lights to the scene
|
// Add lights to the scene
|
||||||
buildDefaultLights(scene, extent);
|
buildDefaultLights(scene, extent);
|
||||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue