Skip to content

Commit 2cdac70

Browse files
author
Emi
committed
Adapt default scene to run on more hardware.
Basically decreasing the spheres that are rendered
1 parent 53830b4 commit 2cdac70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scene.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ impl Scene {
2222
Sphere::new(Vec3::new(-20.8, -4.57, 10.7), 5., 4),
2323
Sphere::new(Vec3::new(10.22, -6.4, -20.25), 7., 5),
2424
];
25-
for x in 0..10 {
26-
for y in 0..10 {
27-
for z in 1..3 {
28-
let mut f = rand_vec(x + y * 0x43182 + z * 0x13457);
29-
let r = rand_vec((f.x * 100000.) as u32 + x);
25+
for x in 0..8 {
26+
for y in 0..8 {
27+
for z in 1..2 {
28+
let mut f = rand_vec(x + y * 0x43188 + z * 0x13457);
29+
let r = rand_vec((f.x * 100004.) as u32 + x);
3030

3131
let material_index = ((r.length() * 0x483290 as f32) as usize ^ 0x587439) % 5;
3232
let radius = f.y * 1.2;

0 commit comments

Comments
 (0)