feat: add AA in headless exports
This commit is contained in:
@@ -41,7 +41,8 @@ Native CLI flags (`src/cli.rs`, applied in `FractalApp::apply_cli`): `--kind`,
|
|||||||
`--power`, `--julia re,im`, `--phoenix-p re,im`, `--lambda-l re,im`,
|
`--power`, `--julia re,im`, `--phoenix-p re,im`, `--lambda-l re,im`,
|
||||||
`--palette`, `--share <fragment>`,
|
`--palette`, `--share <fragment>`,
|
||||||
`--view re,im,half_height[,iterations]`, `--rendering-kind`,
|
`--view re,im,half_height[,iterations]`, `--rendering-kind`,
|
||||||
`--yaw`/`--pitch` (3D camera, degrees), `--de`, `--buddhabrot`,
|
`--yaw`/`--pitch` (3D camera, degrees), `--de`, `--antialias` (2×2),
|
||||||
|
`--buddhabrot`,
|
||||||
`--buddha-palette`. `--headless` (`src/headless.rs`) skips the window
|
`--buddha-palette`. `--headless` (`src/headless.rs`) skips the window
|
||||||
entirely: it builds the same view from the other flags, creates its own
|
entirely: it builds the same view from the other flags, creates its own
|
||||||
offscreen wgpu device, and renders straight to a PNG (`--width`/`--height`,
|
offscreen wgpu device, and renders straight to a PNG (`--width`/`--height`,
|
||||||
|
|||||||
@@ -847,6 +847,9 @@ impl FractalApp {
|
|||||||
if cli.de {
|
if cli.de {
|
||||||
self.de_coloring = true;
|
self.de_coloring = true;
|
||||||
}
|
}
|
||||||
|
if cli.antialias {
|
||||||
|
self.antialias = true;
|
||||||
|
}
|
||||||
if cli.buddhabrot {
|
if cli.buddhabrot {
|
||||||
self.mode = FractalMode::Buddhabrot;
|
self.mode = FractalMode::Buddhabrot;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,6 +74,10 @@ pub struct Cli {
|
|||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub de: bool,
|
pub de: bool,
|
||||||
|
|
||||||
|
/// Enable 2×2 antialiasing (supersampling; ~4× slower).
|
||||||
|
#[arg(long)]
|
||||||
|
pub antialias: bool,
|
||||||
|
|
||||||
/// Coloring palette index.
|
/// Coloring palette index.
|
||||||
#[arg(long, value_name = "INDEX")]
|
#[arg(long, value_name = "INDEX")]
|
||||||
pub palette: Option<u32>,
|
pub palette: Option<u32>,
|
||||||
|
|||||||
Reference in New Issue
Block a user