mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Cycles: Orthographic camera ray differential dy uses dx
These are almost always the same, but still code was wrong. Pull Request: https://projects.blender.org/blender/blender/pulls/157244
This commit is contained in:
parent
dcac328db3
commit
bd3776a2f4
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ ccl_device Spectrum camera_sample_orthographic(KernelGlobals kg,
|
|||
/* ray differential */
|
||||
differential3 dP;
|
||||
dP.dx = make_float3(kernel_data.cam.dx);
|
||||
dP.dy = make_float3(kernel_data.cam.dx);
|
||||
dP.dy = make_float3(kernel_data.cam.dy);
|
||||
|
||||
ray->dP = differential_make_compact(dP) * kernel_data.cam.differential_scale;
|
||||
ray->dD = differential_zero_compact();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue