From 9ff7820f62a8f0c6ab0de113b797de77a433cc21 Mon Sep 17 00:00:00 2001 From: Patrick Mours Date: Tue, 28 Jul 2020 15:45:46 +0200 Subject: 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. --- intern/cycles/kernel/kernel_path.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'intern') 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); -- cgit v1.2.3