1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Reduced scene flicker when resizing

This commit is contained in:
Jon Ziebell 2022-08-26 14:31:29 -04:00
parent 36fd1b9586
commit 1828852f48

View File

@ -65,6 +65,7 @@ beestat.component.scene.prototype.set_width = function(width) {
this.camera_.updateProjectionMatrix();
this.renderer_.setSize(this.width_, this.height_);
this.renderer_.render(this.scene_, this.camera_);
};
/**
@ -75,6 +76,9 @@ beestat.component.scene.prototype.set_width = function(width) {
beestat.component.scene.prototype.decorate_ = function(parent) {
const self = this;
// Dark background to help reduce apparant flicker when resizing
parent.style('background', '#202a30');
this.debug_ = {
'axes': false,
// 'directional_light_moon_helper': false,