()
| 133 | |
| 134 | // --- WINDOW RESIZE --- |
| 135 | function onWindowResize() { |
| 136 | if (!camera || !renderer) return; |
| 137 | |
| 138 | camera.aspect = window.innerWidth / window.innerHeight; |
| 139 | camera.updateProjectionMatrix(); |
| 140 | renderer.setSize(window.innerWidth, window.innerHeight); |
| 141 | renderer.setPixelRatio(window.devicePixelRatio); |
| 142 | |
| 143 | // Update composer size if it exists |
| 144 | if (composer) { |
| 145 | composer.setSize(window.innerWidth, window.innerHeight); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | // --- PATTERN CHANGE / TRANSITION --- |
| 150 | function forcePatternChange() { |
nothing calls this directly
no outgoing calls
no test coverage detected