                    {
                        return 0.0;
                    }
                }
            }

            return value;
        }

        float localMaximumWithDistance(vec2 p, vec2 onePixel, float value, float radius)
        {
            int size = int(radius);
            float max_value = value;
            float min_dist = radius * radius;

            for(int x = -size; x <= size; x++)
            {
                for(int y = -size; y <= size; y++)
                {
             