Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/vtfpp/DistanceMapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ enum class Dither {

enum class Flags : uint32_t {
NONE = 0,
DISTANCEAA = 1 << 0, ///< Experimental; interpret the alpha channel as antialiased. Can result in a more precise distance map, but produces nonsense if large gradients are present.
EUCLIDEAN = 1 << 1, ///< The distance-mapping algorithm is a brute-force scan of a *square* area. If this is enabled, only accept distance hits in a circular area.
DISTANCEAA = 1 << 0, ///< Experimental; interpret the alpha channel as antialiased. Can result in a more precise distance map, but can produce nonsense at sharp corners.
EUCLIDEAN = 1 << 1, ///< Meaningless. Preserved for backward compatibility. Never actually did anything.
SAMPLECENTERED = 1 << 2, ///< Search from the center of pixels (in destination coordinate space) rather than in their north-west corners. Can mitigate a perceived southeast shift at extreme reductions.

};
SOURCEPP_BITFLAGS_ENUM(Flags)

Expand Down
Loading
Loading