diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-06 23:19:57 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-06 23:19:57 +0100 |
| commit | bff78aa4483c05df56acfcf3297212126ebc4c11 (patch) | |
| tree | 82f6ca8065adb749eb580af8466ce64b8325353c /shaders/compute.comp | |
| parent | 0d0ce0a318c6c26128f24574cbc63005dcd4a757 (diff) | |
Use renderdoc for debugging
Diffstat (limited to 'shaders/compute.comp')
| -rw-r--r-- | shaders/compute.comp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/compute.comp b/shaders/compute.comp index 83302b9..214b24e 100644 --- a/shaders/compute.comp +++ b/shaders/compute.comp @@ -112,8 +112,8 @@ bool hit_spheres(ray r, float min_t, float max_t, out hit_info info) { float closest_t = max_t; hit_info temp_info; bool hit = false; - for (uint sphere_index = 0; sphere_index < 512; sphere_index++) { - if (hit_sphere(spheres[sphere_index], r, min_t, closest_t, temp_info)) { + for (uint sphere_index = 0; sphere_index < 200; sphere_index++) { + if (spheres[sphere_index].radius > 0.0 && hit_sphere(spheres[sphere_index], r, min_t, closest_t, temp_info)) { info = temp_info; closest_t = temp_info.t; hit = true; |
