Blender Git Loki
Git Commits -> Revision b8ecdbc
Revision b8ecdbc by Kévin Dietrich (master) August 18, 2021, 19:12 (GMT) |
Cycles: avoid copying vertex normals attribute twice to the devices Vertex normals are needed for normals maps and therefore are packed and send to the device alongside the other float3 attributes. However, we already pack and send vertex normals through `DeviceScene.tri_vnormal`. This removes the packing of vertex normals from the attributes buffer, and reuses `tri_vnormal` in the kernel for normals lookup for normal maps, which reduces memory usage a bit, and speeds up device updates. This also fixes potential missing normals updates following rB12a06292af86, since the need for vertex normals for normals maps was overlooked. Reviewed By: brecht Differential Revision: https://developer.blender.org/D12237 |
Commit Details:
Full Hash: b8ecdbcd964a7e78d7e077ef84a914b1374ae076
Parent Commit: e5f8db9
Lines Changed: +32, -5