summaryrefslogtreecommitdiff
path: root/scripts/cameraHandleResize.lua
blob: 7d1713ddeec403f4d3073e4586539c84f29f157c (plain)
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