diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2014-08-19 13:39:40 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2014-08-19 13:40:33 +0400 |
commit | 8d3cc431d7fdcc9f3243cc24dfdcb94124be0993 (patch) | |
tree | 1e8b70f6bc1e3c6157484dc8c46c181f103163d5 /intern/cycles/render/bake.cpp | |
parent | 37da1dadb66dfedaef9f9b32b1f8ea64566d6062 (diff) |
Fix T41471 Cycles Bake: Setting small tile size results in wrong bake with stripes rather than the expected noise pattern
This problem was introduced in 983cbafd1877f8dbaae60b064a14e27b5b640f18
Basically the issue is that we were not getting a unique index in the
baking routine for the RNG (random number generator).
Reviewers: sergey
Differential Revision: https://developer.blender.org/D749
Diffstat (limited to 'intern/cycles/render/bake.cpp')
-rw-r--r-- | intern/cycles/render/bake.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/bake.cpp b/intern/cycles/render/bake.cpp index ac0fb817ba5..5723a22dd84 100644 --- a/intern/cycles/render/bake.cpp +++ b/intern/cycles/render/bake.cpp @@ -179,6 +179,7 @@ bool BakeManager::bake(Device *device, DeviceScene *dscene, Scene *scene, Progre task.shader_output = d_output.device_pointer; task.shader_eval_type = shader_type; task.shader_x = 0; + task.offset = shader_offset; task.shader_w = d_output.size(); task.num_samples = this->num_samples; task.get_cancel = function_bind(&Progress::get_cancel, &progress); |