mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
msdfgen: Sync with upstream 1.10
This commit is contained in:
parent
ea6a141fff
commit
3c25dfe0e4
10 changed files with 22 additions and 103 deletions
|
|
@ -1,18 +1,19 @@
|
|||
|
||||
#include "contour-combiners.h"
|
||||
|
||||
#include <cfloat>
|
||||
#include "arithmetics.hpp"
|
||||
|
||||
namespace msdfgen {
|
||||
|
||||
static void initDistance(double &distance) {
|
||||
distance = SignedDistance::INFINITE.distance;
|
||||
distance = -DBL_MAX;
|
||||
}
|
||||
|
||||
static void initDistance(MultiDistance &distance) {
|
||||
distance.r = SignedDistance::INFINITE.distance;
|
||||
distance.g = SignedDistance::INFINITE.distance;
|
||||
distance.b = SignedDistance::INFINITE.distance;
|
||||
distance.r = -DBL_MAX;
|
||||
distance.g = -DBL_MAX;
|
||||
distance.b = -DBL_MAX;
|
||||
}
|
||||
|
||||
static double resolveDistance(double distance) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue