Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-11-26 21:11:14 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-29 20:41:37 +0300
commit4fac3be14660a427a51547e88d7721912fb0577b (patch)
treebe528560471f5b4a6a324eb31be881cdcd67252d /intern/cycles/kernel/device/optix
parent2e6f914e3702ecf8c2dfedb7ad79d980113a43d5 (diff)
Fix Cycles OptiX doing a bit too much work for almost opaque curve shadows
Found in D13353, likely has no significant impact in performance.
Diffstat (limited to 'intern/cycles/kernel/device/optix')
-rw-r--r--intern/cycles/kernel/device/optix/kernel.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/device/optix/kernel.cu b/intern/cycles/kernel/device/optix/kernel.cu
index 70b977b3d84..c9a48315544 100644
--- a/intern/cycles/kernel/device/optix/kernel.cu
+++ b/intern/cycles/kernel/device/optix/kernel.cu
@@ -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 {