do _n_o_t_ invert y-axis"
This commit is contained in:
parent
b02c7178d1
commit
39f629312d
1 changed files with 5 additions and 6 deletions
|
@ -70,13 +70,12 @@ bool ofxMsdfgen::Atlas::generate(){
|
|||
}
|
||||
// Apply MSDF edge coloring. See edge-coloring.h for other coloring strategies.
|
||||
for(msdf_atlas::GlyphGeometry & glyph : glyphs){
|
||||
//glyph.getShape().inverseYAxis = true;
|
||||
//FIXME: we do not need to inverse y axis, something else is wrong
|
||||
msdfgen::Shape & shape = const_cast <msdfgen::Shape &>(glyph.getShape());
|
||||
shape.inverseYAxis = true;
|
||||
glyph.edgeColoring(&msdfgen::edgeColoringInkTrap,
|
||||
settings.maxCornerAngle,
|
||||
0);
|
||||
// msdfgen::Shape & shape = const_cast <msdfgen::Shape &>(glyph.getShape());
|
||||
// shape.inverseYAxis = true;
|
||||
glyph.edgeColoring(&msdfgen::edgeColoringInkTrap, // strategy
|
||||
settings.maxCornerAngle, // angleThreshold
|
||||
0); // seed
|
||||
}
|
||||
// TightAtlasPacker class computes the layout of the atlas.
|
||||
msdf_atlas::TightAtlasPacker packer;
|
||||
|
|
Loading…
Reference in a new issue