mirror of
https://github.com/beestat/app.git
synced 2025-06-23 15:30:43 -04:00
Reduced scene flicker when resizing
This commit is contained in:
parent
36fd1b9586
commit
1828852f48
@ -65,6 +65,7 @@ beestat.component.scene.prototype.set_width = function(width) {
|
|||||||
this.camera_.updateProjectionMatrix();
|
this.camera_.updateProjectionMatrix();
|
||||||
|
|
||||||
this.renderer_.setSize(this.width_, this.height_);
|
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) {
|
beestat.component.scene.prototype.decorate_ = function(parent) {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
|
// Dark background to help reduce apparant flicker when resizing
|
||||||
|
parent.style('background', '#202a30');
|
||||||
|
|
||||||
this.debug_ = {
|
this.debug_ = {
|
||||||
'axes': false,
|
'axes': false,
|
||||||
// 'directional_light_moon_helper': false,
|
// 'directional_light_moon_helper': false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user