Fix Cycles OptiX doing a bit too much work for almost opaque curve shadows

Found in D13353, likely has no significant impact in performance.
This commit is contained in:
Brecht Van Lommel 2021-11-26 19:11:14 +01:00
parent 2e6f914e37
commit 4fac3be146
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ extern "C" __global__ void __anyhit__kernel_optix_shadow_all_hit()
optixSetPayload_2(uint16_pack_to_uint(num_recorded_hits, num_hits + 1));
if (throughput < CURVE_SHADOW_TRANSPARENCY_CUTOFF) {
optixSetPayload_4(true);
optixSetPayload_5(true);
return optixTerminateRay();
}
else {