home projects git about
1 2 3 4 5 6
return function(entities, id, data) local camera = entities:getComponent(id, "camera") if camera then camera.projection:perspectiveResize(data.width/data.height) end end