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
path: root/intern
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2022-11-10 01:23:52 +0300
committerRay Molenkamp <github@lazydodo.com>2022-11-10 01:23:52 +0300
commit24bd098dbaf8d26511cb416badb8489d1fcfe00b (patch)
tree53e8f3f468da28fc80550db57d62afb16c6bb569 /intern
parent32aebe8c55963d42a6b541e266e85cac25f96311 (diff)
parentd49dec896aaae5e2cdb5f2e2926f3bd010f4a0fe (diff)
Merge remote-tracking branch 'origin/master' into tmp-vfx-platform-2023
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/integrator/init_from_bake.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/cycles/kernel/integrator/init_from_bake.h b/intern/cycles/kernel/integrator/init_from_bake.h
index 667ba949760..cc3fbe3fe39 100644
--- a/intern/cycles/kernel/integrator/init_from_bake.h
+++ b/intern/cycles/kernel/integrator/init_from_bake.h
@@ -156,6 +156,13 @@ ccl_device bool integrator_init_from_bake(KernelGlobals kg,
u = v;
v = 1.0f - tmp - v;
+ const float tmpdx = dudx;
+ const float tmpdy = dudy;
+ dudx = dvdx;
+ dudy = dvdy;
+ dvdx = -tmpdx - dvdx;
+ dvdy = -tmpdy - dvdy;
+
/* Position and normal on triangle. */
const int object = kernel_data.bake.object_index;
float3 P, Ng;