Optimize scene change

This commit is contained in:
schmelczerandras 2020-10-01 11:26:23 +02:00
parent 41f9a2b5cf
commit ee29365824
3 changed files with 15 additions and 7 deletions

View file

@ -36,6 +36,7 @@ export class RainScene implements Scene {
ambientLight: rgb(0.2, 0.2, 0.2),
backgroundColor: rgb(1, 1, 1),
colorPalette: [rgb(1, 1, 1), rgb(0.3, 1, 1), rgb(1, 1, 0), rgb(0.3, 1, 1)],
enableHighDpiRendering: false,
});
for (let i = 0; i < (canvas.getBoundingClientRect().width / 800) * 20; i++) {