Fix some of the effects in qmlvideofx
* TiltShift was sometimes applying the effect in the wrong place. * Blur had some QML properties duplicated * Blur kernel wasn't quite summing to 1, and was applying opacity twice * The target width for the second pass was incorrect, so it was blending darkness, resulting in a dreary image. Change-Id: Ib8ba93d979c597cf4d225b3d24d26a22d0cdffc2 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
8af2548473
commit
2307825461
@@ -55,7 +55,7 @@ void main()
|
||||
c += texture2D(source, uv - vec2(3.0*blurSize, 0.0)) * 0.09;
|
||||
c += texture2D(source, uv - vec2(2.0*blurSize, 0.0)) * 0.12;
|
||||
c += texture2D(source, uv - vec2(1.0*blurSize, 0.0)) * 0.15;
|
||||
c += texture2D(source, uv) * 0.16;
|
||||
c += texture2D(source, uv) * 0.18;
|
||||
c += texture2D(source, uv + vec2(1.0*blurSize, 0.0)) * 0.15;
|
||||
c += texture2D(source, uv + vec2(2.0*blurSize, 0.0)) * 0.12;
|
||||
c += texture2D(source, uv + vec2(3.0*blurSize, 0.0)) * 0.09;
|
||||
|
||||
Reference in New Issue
Block a user