Change testscene interface
This commit is contained in:
parent
829476c602
commit
0b3daf9441
12 changed files with 313 additions and 223 deletions
|
|
@ -97,17 +97,17 @@ fn main() {
|
|||
|
||||
for scene in scenes {
|
||||
let f = map.get(scene).unwrap();
|
||||
let e = f();
|
||||
|
||||
let s = f.get_scene();
|
||||
|
||||
let c = BasicCamera::from_look_at(
|
||||
args.width,
|
||||
args.height,
|
||||
e.camera_pos,
|
||||
e.camera_look_at,
|
||||
e.camera_up,
|
||||
e.horizontal_fov,
|
||||
f.get_camera_pos(),
|
||||
f.get_camera_look_at(),
|
||||
f.get_camera_up(),
|
||||
f.get_horizontal_fov(),
|
||||
);
|
||||
let s = (e.scene)();
|
||||
|
||||
let r = DepthRenderer::new(args.width, args.height);
|
||||
render_image(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue