mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T53755: Cycles OpenCL lamp shaders have incorrect normal.
This commit is contained in:
parent
f12ab4e196
commit
2ca933f457
1 changed files with 4 additions and 0 deletions
|
|
@ -169,6 +169,10 @@ ccl_device_inline void object_inverse_normal_transform(KernelGlobals *kg, const
|
|||
Transform tfm = object_fetch_transform(kg, sd->object, OBJECT_TRANSFORM);
|
||||
*N = normalize(transform_direction_transposed(&tfm, *N));
|
||||
}
|
||||
else if(sd->type == PRIMITIVE_LAMP) {
|
||||
Transform tfm = lamp_fetch_transform(kg, sd->lamp, false);
|
||||
*N = normalize(transform_direction_transposed(&tfm, *N));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue