From 665ae244d78743a997955177921db32c7bbd0213 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Mon, 13 Jun 2022 21:22:20 -0700 Subject: [PATCH] rtiow: get build_all_features.sh working again. --- rtiow/noise_explorer/src/main.rs | 12 ------------ rtiow/renderer/src/texture/mandelbrot.rs | 2 -- 2 files changed, 14 deletions(-) diff --git a/rtiow/noise_explorer/src/main.rs b/rtiow/noise_explorer/src/main.rs index c38d682..c9d0a3f 100644 --- a/rtiow/noise_explorer/src/main.rs +++ b/rtiow/noise_explorer/src/main.rs @@ -32,13 +32,6 @@ struct Opt { /// HTTP listen address #[structopt(long = "addr", default_value = "0.0.0.0:8889")] pub addr: String, - - /// Width of noise images - #[structopt(short = "w", long = "width", default_value = "128")] - pub width: u32, - /// Height of noise images - #[structopt(short = "h", long = "height", default_value = "128")] - pub height: u32, } #[derive(Copy, Clone, Debug, Deserialize, PartialEq)] @@ -63,11 +56,6 @@ struct OptionalParams { pixel_scale: f32, } -#[derive(Debug, Deserialize)] -struct NoiseSourceParam { - noise_source: NoiseSource, -} - #[derive(Debug, Deserialize)] struct NoiseParams { width: u32, diff --git a/rtiow/renderer/src/texture/mandelbrot.rs b/rtiow/renderer/src/texture/mandelbrot.rs index e0585f0..bb783ce 100644 --- a/rtiow/renderer/src/texture/mandelbrot.rs +++ b/rtiow/renderer/src/texture/mandelbrot.rs @@ -7,7 +7,6 @@ use crate::vec3::Vec3; #[derive(Debug)] pub struct Mandelbrot { - scale: f32, palette: Vec, } @@ -49,7 +48,6 @@ fn generate_palette(num: usize) -> Vec { impl Default for Mandelbrot { fn default() -> Self { Mandelbrot { - scale: 2.0, palette: generate_palette(10), } }