fix: correct 3d rendering
This commit is contained in:
+12
@@ -21,6 +21,10 @@ pub struct Cli {
|
||||
#[arg(long)]
|
||||
pub buddhabrot: bool,
|
||||
|
||||
/// Rendering mode to use.
|
||||
#[arg(long)]
|
||||
pub rendering_kind: Option<RenderingKindArg>,
|
||||
|
||||
/// Exponent for the Multibrot kind (z -> z^power + c), clamped to [2, 8].
|
||||
#[arg(long)]
|
||||
pub power: Option<u32>,
|
||||
@@ -144,6 +148,14 @@ pub enum KindArg {
|
||||
ComplexMultibrot,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, ValueEnum)]
|
||||
pub enum RenderingKindArg {
|
||||
Classic,
|
||||
Shadow,
|
||||
#[value(alias = "3d")]
|
||||
Dimension3,
|
||||
}
|
||||
|
||||
impl From<KindArg> for FractalKind {
|
||||
fn from(k: KindArg) -> Self {
|
||||
match k {
|
||||
|
||||
Reference in New Issue
Block a user