| 9 | namespace msdfgen { |
| 10 | |
| 11 | static float distVal(float dist, DistanceMapping mapping) { |
| 12 | return (float) clamp(mapping(dist)+.5); |
| 13 | } |
| 14 | |
| 15 | void renderSDF(const BitmapSection<float, 1> &output, const BitmapConstSection<float, 1> &sdf, Range sdfPxRange, float sdThreshold) { |
| 16 | Vector2 scale((double) sdf.width/output.width, (double) sdf.height/output.height); |