blob: 97974f5a3faaa85f96421f9a34c048c5bc281a6a (
plain)
1
2
3
4
5
6
7
|
return function(entities, id, data)
local camera = entities:getComponent(id, "camera")
if camera then
print("resize camera!")
camera.projection:perspectiveResize(data.width/data.height)
end
end
|