From e7034c5077f11ecf5e112801263f7979a184401a Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 28 Jan 2019 23:28:47 +1100 Subject: [PATCH] made crop premultiply compliant --- effects/crop.frag | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/effects/crop.frag b/effects/crop.frag index 7dcf1b939..7fed98944 100644 --- a/effects/crop.frag +++ b/effects/crop.frag @@ -25,12 +25,10 @@ void main(void) { if (bottom > 0.0) alpha = alpha * clamp((((1.0-vTexCoord.y)+(0.5/f))-(bottom*0.01))*f, 0.0, 1.0); // bottom } - - gl_FragColor = vec4( - textureColor.r, - textureColor.g, - textureColor.b, + textureColor.r*alpha, + textureColor.g*alpha, + textureColor.b*alpha, alpha ); } \ No newline at end of file