diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-07-28 16:45:46 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-07-28 16:45:46 +0300 |
commit | 9ff7820f62a8f0c6ab0de113b797de77a433cc21 (patch) | |
tree | b54fe2e8fd5345d088fe04512dd6585de43ae6ee /intern | |
parent | 5e232d7a0ba2500a20d1920895c9ba1d3df88b29 (diff) |
Fix T79259: OptiX render with fisheye camera is different to CUDA
The fisheye camera setup causes the edges of the image to not shoot primary rays. This was not
respected by OptiX because of an optimization that tried to reduce conditionals around trace calls.
Removing that does not seem to have an impact on performance anymore however and it fixes
the issue.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/kernel_path.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h index eb6c94fe104..c332d5ad3ec 100644 --- a/intern/cycles/kernel/kernel_path.h +++ b/intern/cycles/kernel/kernel_path.h @@ -665,11 +665,9 @@ ccl_device void kernel_path_trace( kernel_path_trace_setup(kg, sample, x, y, &rng_hash, &ray); -# ifndef __KERNEL_OPTIX__ if (ray.t == 0.0f) { return; } -# endif /* Initialize state. */ float3 throughput = make_float3(1.0f, 1.0f, 1.0f); |