Class GrainEffect

    • Constructor Detail

      • GrainEffect

        public GrainEffect​(float strength)
        Initialize Effect
        Parameters:
        strength - Float, between 0 and 1. Zero means no distortion, while 1 indicates the maximum amount of adjustment.
    • Method Detail

      • getShader

        public String getShader​(GLSurfaceView mGlSurfaceView)
        Description copied from interface: ShaderInterface
        Returns Shader code
        Specified by:
        getShader in interface ShaderInterface
        Parameters:
        mGlSurfaceView - send this for every shader but this will only be used when the shader needs it.
        Returns:
        complete shader code in C