Color Management: fixed color management-less texture rendering
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 10 Oct 2012 05:56:49 +0000 (05:56 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 10 Oct 2012 05:56:49 +0000 (05:56 +0000)
commit9829ba31b9654fd402ef6ca5cee78cc474d01225
tree108a3a77df9daeef96f9b9bee5ca4bc38c45de1d
parent7dc19e0bc7c1ae4094fefeadc13019e64eb20e08
Color Management: fixed color management-less texture rendering

There was a missing check for whether color management enabled or not when
converting byte textures to linear space.

This commit also fixes wrong texture preview rendering, which was applying
sRGB transform twice, making procedural textures bright. This will make
float textures being previewed dark (in a linear space) but that's how it
used to behave in pre-OCIO color management.
source/blender/editors/render/render_preview.c
source/blender/render/intern/include/render_types.h
source/blender/render/intern/source/envmap.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/render_texture.c