e1e21c01d5
In transitions, because the 'to' and 'from' are always rendered to textures, the end result will always have premultiplied alpha. This would cause alpha to have blackish edges during transition, and cause semi-transparent images to appear darker than they were supposed to. To replicate, simply set the transparency of a source to 50%, then transition between that scene and another scene. The source will appear to "pop" in and out unnaturally due to the premultiplied alpha effect of the render targets. To fix this, the solution is to simply convert premultiplied alpha to straight alpha in the transition pixel shaders. |
||
---|---|---|
.. | ||
data | ||
CMakeLists.txt | ||
easings.h | ||
obs-transitions.c | ||
transition-cut.c | ||
transition-fade-to-color.c | ||
transition-fade.c | ||
transition-luma-wipe.c | ||
transition-slide.c | ||
transition-swipe.c |