feat: wire vertical exaggeration through the shell #13

Merged
moldybits merged 25 commits from feat/terrain-gen-abstraction into main 2026-05-20 23:00:29 -04:00
Showing only changes of commit daeb30ac29 - Show all commits
+9 -7
View File
@@ -4,9 +4,10 @@ use clap::{Args, Parser, Subcommand, ValueEnum};
use image::ImageError; use image::ImageError;
use crate::render::{ use crate::render::{
RenderQualityPreset, demo_camera_for, render_perspective_to_path, render_top_down_to_path, RenderQualityPreset, demo_camera_for, render_perspective_with_quality,
render_top_down_with_quality,
}; };
use crate::scene::Scene;
use crate::scene_file::{self, SceneFileError}; use crate::scene_file::{self, SceneFileError};
use crate::script_exec::{self, ScriptError}; use crate::script_exec::{self, ScriptError};
use crate::terrain::{HeightGrid, TerrainError}; use crate::terrain::{HeightGrid, TerrainError};
@@ -164,10 +165,6 @@ pub fn supported_presets() -> &'static [&'static str] {
&["plane", "hill"] &["plane", "hill"]
} }
pub fn supported_quality_presets() -> &'static [&'static str] {
&["preview", "balanced", "final"]
}
pub fn supported_importers() -> &'static [&'static str] { pub fn supported_importers() -> &'static [&'static str] {
#[cfg(all( #[cfg(all(
feature = "hgt", feature = "hgt",
@@ -241,7 +238,12 @@ pub fn info_text() -> String {
let mut text = String::new(); let mut text = String::new();
writeln!(&mut text, "openvistapro {}", env!("CARGO_PKG_VERSION")).unwrap(); writeln!(&mut text, "openvistapro {}", env!("CARGO_PKG_VERSION")).unwrap();
writeln!(&mut text, "presets: {}", supported_presets().join(", ")).unwrap(); writeln!(&mut text, "presets: {}", supported_presets().join(", ")).unwrap();
writeln!(&mut text, "quality: {}", supported_quality_presets().join(", ")).unwrap(); writeln!(
&mut text,
"quality: {}",
supported_quality_presets().join(", ")
)
.unwrap();
let importers = supported_importers(); let importers = supported_importers();
if importers.is_empty() { if importers.is_empty() {
writeln!(&mut text, "importers: (none)").unwrap(); writeln!(&mut text, "importers: (none)").unwrap();