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
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-08-18 00:24:46 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-08-18 22:12:39 +0300
commitb8ecdbcd964a7e78d7e077ef84a914b1374ae076 (patch)
tree589d69109b3f70d219ef14a040bc717381266c85 /intern/cycles/render/attribute.cpp
parente5f8db92b696a36e919eb6ac3125190d9e2202d9 (diff)
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
Diffstat (limited to 'intern/cycles/render/attribute.cpp')
0 files changed, 0 insertions, 0 deletions