diff options
| author | ladevieq <qladevie@wanadev.fr> | 2021-04-01 14:33:29 +0200 |
|---|---|---|
| committer | ladevieq <qladevie@wanadev.fr> | 2021-04-01 14:33:29 +0200 |
| commit | 085d4c6dd995a4da396ddf3d51b619fafb77af7b (patch) | |
| tree | 9d02d527fe68798e1f91c3a2641ddbd7d129addd /src/utils.cpp | |
| parent | b4c2ce16c660c27dbfdeef12a55a0c7d448a83d2 (diff) | |
Remove remaining pregenerated random numbers
Diffstat (limited to 'src/utils.cpp')
| -rw-r--r-- | src/utils.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index eb119e8..d4419b0 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -136,12 +136,6 @@ struct input_data create_inputs(uint32_t width, uint32_t height, uint32_t sample .sample_index = 0, }; - for (size_t rand_number_index = 0; rand_number_index < 1000; rand_number_index += 2) { - vec3 random_unit_disk = random_in_unit_disk(); - inputs.random_disk[rand_number_index] = random_unit_disk.x; - inputs.random_disk[rand_number_index + 1] = random_unit_disk.y; - } - // World hittable objects uint32_t spheres_count = random_scene(inputs.spheres); |
