msdf-error-correction.h 456 B

123456789101112131415
  1. #pragma once
  2. #include "Vector2.h"
  3. #include "BitmapRef.hpp"
  4. #define MSDFGEN_DEFAULT_ERROR_CORRECTION_THRESHOLD 1.001
  5. namespace msdfgen {
  6. /// Attempts to patch multi-channel signed distance field values that may cause interpolation artifacts. (Already called by generateMSDF)
  7. void msdfErrorCorrection(const BitmapRef<float, 3> &output, const Vector2 &threshold);
  8. void msdfErrorCorrection(const BitmapRef<float, 4> &output, const Vector2 &threshold);
  9. }