High quality image
This commit is contained in:
parent
745fafeaad
commit
266a199333
1 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ fn ray_color(r: &Ray, world: &HittableList, depth: u32) -> Color {
|
|||
fn random_world() -> HittableList {
|
||||
let mut world = HittableList::new();
|
||||
|
||||
let material_ground = Arc::new(Lambertian::new(&Color::new(0.01, 0.01, 0.01)));
|
||||
let material_ground = Arc::new(Lambertian::new(&Color::new(0.05, 0.05, 0.05)));
|
||||
|
||||
world.add(Box::<Sphere>::new(Sphere::new(
|
||||
Point3::new(0.0, -50000.0, 0.0),
|
||||
|
@ -146,9 +146,9 @@ fn main() {
|
|||
|
||||
// Image
|
||||
let aspect_ratio = 16.0 / 9.0;
|
||||
let image_width = 1000;
|
||||
let image_width = 1920;
|
||||
let image_height = (image_width as f64 / aspect_ratio) as u32;
|
||||
let samples_per_pixel = 100_u32;
|
||||
let samples_per_pixel = 200_u32;
|
||||
let max_depth = 50;
|
||||
|
||||
let vfov = 25.0;
|
||||
|
|
Loading…
Reference in a new issue