Fix modulation in Invert effect
Thanks to Kevin for spotting and providing a fix. BUG: 322013 FIXED-IN: 4.11
This commit is contained in:
parent
93ca1c4396
commit
71940e879d
2 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ void main()
|
||||||
tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation );
|
tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation );
|
||||||
}
|
}
|
||||||
|
|
||||||
tex *= modulation;
|
|
||||||
tex.rgb = vec3(1.0) - tex.rgb;
|
tex.rgb = vec3(1.0) - tex.rgb;
|
||||||
|
tex *= modulation;
|
||||||
tex.rgb *= tex.a;
|
tex.rgb *= tex.a;
|
||||||
|
|
||||||
gl_FragColor = tex;
|
gl_FragColor = tex;
|
||||||
|
|
|
@ -17,8 +17,8 @@ void main()
|
||||||
tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation );
|
tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation );
|
||||||
}
|
}
|
||||||
|
|
||||||
tex *= modulation;
|
|
||||||
tex.rgb = vec3(1.0) - tex.rgb;
|
tex.rgb = vec3(1.0) - tex.rgb;
|
||||||
|
tex *= modulation;
|
||||||
tex.rgb *= tex.a;
|
tex.rgb *= tex.a;
|
||||||
|
|
||||||
fragColor = tex;
|
fragColor = tex;
|
||||||
|
|
Loading…
Reference in a new issue