@@ -0,0 +1,1631 @@
+package com.shuyu.gsyvideoplayer.effect;%0A%0Aimport android.opengl.GLSurfaceView;%0A%0Aimport com.shuyu.gsyvideoplayer.GSYVideoGLView;%0A%0A/**%0A * Created by guoshuyu on 2017/9/17.%0A */%0A%0Apublic class OverlayEffect implements GSYVideoGLView.ShaderInterface %7B%0A%0A    float fstep = 0.0015f;%0A%0A    public OverlayEffect() %7B%0A        super();%0A    %7D%0A%0A    public OverlayEffect(float fstep) %7B%0A       this.fstep = fstep;%0A    %7D%0A%0A    @Override%0A    public String getShader(GLSurfaceView mGlSurfaceView) %7B%0A        return  %22#extension GL_OES_EGL_image_external : require%5Cn%22 +%0A                %22precision mediump float;%5Cn%22 +%0A                %22             uniform samplerExternalOES sTexture; %5Cn%22 +%0A                %22             varying vec2 vTextureCoord; %5Cn%22 +%0A                %22  %5Cn%22 +%0A                %22             void main() %5Cn%22 +%0A                %22             %7B %5Cn%22 +%0A                %22              vec4 sample0,sample1,sample2,sample3; %5Cn%22 +%0A                %22              float fstep=%22 + fstep +%22; %5Cn%22 +%0A                %22              sample0=texture2D(sTexture,vec2(vTextureCoord.x-fstep,vTextureCoord.y-fstep)); %5Cn%22 +%0A                %22              sample1=texture2D(sTexture,vec2(vTextureCoord.x+fstep,vTextureCoord.y-fstep)); %5Cn%22 +%0A                %22              sample2=texture2D(sTexture,vec2(vTextureCoord.x+fstep,vTextureCoord.y+fstep)); %5Cn%22 +%0A                %22              sample3=texture2D(sTexture,vec2(vTextureCoord.x-fstep,vTextureCoord.y+fstep)); %5Cn%22 +%0A                %22              vec4 color=(sample0+sample1+sample2+sample3) / 4.0; %5Cn%22 +%0A                %22              gl_FragColor=color; %5Cn%22 +%0A                %22             %7D %22;%0A    %7D%0A%7D%0A

add new effect (2017-09-16）