MCPcopy Create free account
hub / github.com/collidingScopes/iron-interface / onWindowResize

Function onWindowResize

main.js:135–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134// --- WINDOW RESIZE ---
135function 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 ---
150function forcePatternChange() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected