Optimize scene change
This commit is contained in:
parent
41f9a2b5cf
commit
ee29365824
2 changed files with 15 additions and 7 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ export class TunnelScene implements Scene {
|
|||
ambientLight: rgb(0.35, 0.1, 0.45),
|
||||
backgroundColor: rgba(1, 1, 1, 1),
|
||||
colorPalette: [rgb(0.4, 0.5, 0.6), rgb(0, 0, 0), rgb(0, 0, 0), rgb(0, 0, 0)],
|
||||
enableHighDpiRendering: false,
|
||||
});
|
||||
|
||||
for (let i = 0; i < 200; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue