diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-09-22 14:05:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-09-22 16:07:55 +0300 |
commit | 9f6313498a0af386f08ed17c83bf33b8c2c3b5b3 (patch) | |
tree | e8a2c08e58108855533b29bcffe7bb7e3fa7e0fd /intern/cycles/render/buffers.cpp | |
parent | f7a492d460543fd42386cb0c941d247ea902f290 (diff) |
Fix missing samples count pass when using tiles
Samples count pass is normalized to the overall number of samples.
This means that we need to store actual value of the samples in the
tile buffer file.
A bit annoying to pull all those settings to BufferParams and need
to find a more generic solution, but for now this is easiest and a
quickest solution.
Differential Revision: https://developer.blender.org/D12597
Diffstat (limited to 'intern/cycles/render/buffers.cpp')
-rw-r--r-- | intern/cycles/render/buffers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp index 186699596ac..1882510cd70 100644 --- a/intern/cycles/render/buffers.cpp +++ b/intern/cycles/render/buffers.cpp @@ -105,6 +105,7 @@ NODE_DEFINE(BufferParams) SOCKET_STRING(layer, "Layer", ustring()); SOCKET_STRING(view, "View", ustring()); + SOCKET_INT(samples, "Samples", 0); SOCKET_FLOAT(exposure, "Exposure", 1.0f); SOCKET_BOOLEAN(use_approximate_shadow_catcher, "Use Approximate Shadow Catcher", false); SOCKET_BOOLEAN(use_transparent_background, "Transparent Background", false); |