()
| 994 | }); |
| 995 | } |
| 996 | calcSize() { |
| 997 | const width = Math.max( |
| 998 | 1, |
| 999 | Math.round(this.options.resolution * Common.width) |
| 1000 | ); |
| 1001 | const height = Math.max( |
| 1002 | 1, |
| 1003 | Math.round(this.options.resolution * Common.height) |
| 1004 | ); |
| 1005 | this.cellScale.set(1 / width, 1 / height); |
| 1006 | this.fboSize.set(width, height); |
| 1007 | } |
| 1008 | resize() { |
| 1009 | this.calcSize(); |
| 1010 | for (const key in this.fbos) { |