fix camera

This commit is contained in:
2025-10-24 12:45:39 -05:00
parent 175146ab37
commit 8a33be3550

View File

@@ -1,8 +1,28 @@
var cam = {} var cam = {}
var transform = use('transform') /*
presentation can be one of
letterbox
overscan
stretch
... or simply 'null' for no presentation
*/
var basecam = {
pos: [0,0], // where it is
ortho:true,
width: 100,
aspect_ratio: 16/9,
fov:50,
near_z:0,
far_z:1000,
anchor:[0.5,0.5],
rotation:[0,0,0,1],
presentation: "letterbox",
background: {r:1,g:1,b:1,a:0},
viewport: {x:0,y:0,width:1,height:1},
}
var basecam = {}
basecam.draw_rect = function(size) basecam.draw_rect = function(size)
{ {
var mode = this.presentation || "letterbox" var mode = this.presentation || "letterbox"