fix camera
This commit is contained in:
@@ -1,8 +1,28 @@
|
||||
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)
|
||||
{
|
||||
var mode = this.presentation || "letterbox"
|
||||
|
||||
Reference in New Issue
Block a user