Class RadialBlurPPShader


  • public class RadialBlurPPShader
    extends PPShader
    Shader for the radial blur effect
    Author:
    Darius Dinger
    • Constructor Detail

      • RadialBlurPPShader

        public RadialBlurPPShader()
    • Method Detail

      • setUniformLocations

        protected void setUniformLocations()
        Description copied from class: PPShader
        Setting the effect shader relevant uniforms.
        Specified by:
        setUniformLocations in class PPShader
      • setSize

        public void setSize​(javax.vecmath.Vector2f size)
        Setting the size of the next to blur image texel.
        vec2(1.0f / image.width, 1.0f / image.height)
        Parameters:
        size - Size of a texel of the next to blur image
      • prepareBlur

        public void prepareBlur​(float intensity,
                                float brightness,
                                javax.vecmath.Vector2f origin,
                                int quality)
        Preparing the shader for the next blur
        Parameters:
        intensity - Intensity of the blur
        brightness - Brightnessof the blur
        origin - Origin of the blur
        quality - Quality of the blur