Multires baker: fix wrong normalization if baking happens to multiple images
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 21 Jan 2013 18:34:27 +0000 (18:34 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 21 Jan 2013 18:34:27 +0000 (18:34 +0000)
commit709a86a8d96825069820dca4b68da5739bcd791c
tree709d12886c10058c696b526c3dc433065aab7df3
parenteffaa79ffbc9357414209ea3f17529b7b4318328
Multires baker: fix wrong normalization if baking happens to multiple images

Previously normalization will happen per image buffer individually, which
was wrong in cases different faces of the sane mesh uses different images.

Also solved possible threading issues when calculating min.max displacement.
source/blender/render/extern/include/RE_shader_ext.h
source/blender/render/intern/source/multires_bake.c
source/blender/render/intern/source/rendercore.c