Blender Git Commit Log
Git Commits -> Revision bffa168
Revision bffa168 by Kévin Dietrich (master) August 23, 2021, 23:43 (GMT) |
Fix T90854: Cycles, normal map fails with applied transformations Prior to rBb8ecdbcd964a normals were stored both in DeviceScene.tri_vnormal and the float3 attributes buffer. However, the normals in `DeviceScene.tri_vnormal` might have be transformed to world space if the object's transformation was applied, while the data in the float3 attributes buffer were not. This caused shading issues in cases where the objects did have transformation applied, as the math expects the normals to be in object space. To fix this, convert the normals to object space if necessary before applying the normal map. Reviewed By: brecht Maniphest Tasks: T90854 Differential Revision: https://developer.blender.org/D12294 |
Commit Details:
Full Hash: bffa1681577e3c850c4fbab5799612febf32a245
Parent Commit: eec1ea0
Lines Changed: +10, -3