MCPcopy
hub / github.com/bgstaal/multipleWindow3dScene / resize

Function resize

main.js:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186
187 // resize the renderer to fit the window size
188 function resize ()
189 {
190 let width = window.innerWidth;
191 let height = window.innerHeight
192
193 camera = new t.OrthographicCamera(0, width, 0, height, -10000, 10000);
194 camera.updateProjectionMatrix();
195 renderer.setSize( width, height );
196 }
197}

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected