218317b8b9bc0b4ebf73bcfd5d71a36fbcd15e86
Since VSE HDR preview was implemented (18110744a2), the preview image is put into RGBA 16F format "color texture", and the overlay (checkerboard, grids etc.) is put into RGBA 8U format "overlay texture". This was rendering the color image as NON premultiplied alpha in the viewport color texture, which is not what happens in other places (e.g. image space). Later commit (c279d894db) fixed transparency of the overlay texture, in order to make pure emissive (color non zero, alpha zero) colors from EXR files show up in VSE preview. However that exposed the issue that underlying color texture is not premultiplied. Fix this by premultiplying the output color in gpu_shader_display_transform that is used by VSE preview. This is done at the end of the shader isntead of using fixed function blending, since premultiplication needs to happen in a way that preserves pure-emissive colors. Comparison images in the PR. Pull Request: https://projects.blender.org/blender/blender/pulls/147892
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
