mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Port window spawners to a render pass
This commit is contained in:
parent
a1f34edeab
commit
82ffcc032a
3 changed files with 126 additions and 58 deletions
|
|
@ -171,8 +171,9 @@ fn run(opt: &Opt, command: &Command, context: &mut Context) {
|
|||
grid: map.z_level(z),
|
||||
min: (min.x - 1, min.y - 1),
|
||||
max: (max.x - 1, max.y - 1),
|
||||
render_passes: &render_passes,
|
||||
};
|
||||
let image = minimap::generate(minimap_context, &mut context.icon_cache, &render_passes).unwrap();
|
||||
let image = minimap::generate(minimap_context, &mut context.icon_cache).unwrap();
|
||||
let outfile = format!("{}/{}-{}.png", output, path.file_stem().unwrap().to_string_lossy(), 1 + z);
|
||||
println!(" saving {}", outfile);
|
||||
image.to_file(outfile.as_ref()).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue