Struct me3_framework::overlay::epaint::tessellator::TessellationOptions
source · [−]pub struct TessellationOptions {
pub feathering: bool,
pub feathering_size_in_pixels: f32,
pub coarse_tessellation_culling: bool,
pub prerasterized_discs: bool,
pub round_text_to_pixels: bool,
pub debug_paint_clip_rects: bool,
pub debug_paint_text_rects: bool,
pub debug_ignore_clip_rects: bool,
pub bezier_tolerance: f32,
pub epsilon: f32,
}
Expand description
Tessellation quality options
Fields
feathering: bool
Use “feathering” to smooth out the edges of shapes as a form of anti-aliasing.
Feathering works by making each edge into a thin gradient into transparency.
The size of this edge is controlled by Self::feathering_size_in_pixels
.
This makes shapes appear smoother, but requires more triangles and is therefore slower.
This setting does not affect text.
Default: true
.
feathering_size_in_pixels: f32
The size of the the feathering, in physical pixels.
The default, and suggested, value for this is 1.0
.
If you use a larger value, edges will appear blurry.
coarse_tessellation_culling: bool
If true
(default) cull certain primitives before tessellating them.
This likely makes
prerasterized_discs: bool
If true
, small filled circled will be optimized by using pre-rasterized circled
from the font atlas.
round_text_to_pixels: bool
If true
(default) align text to mesh grid.
This makes the text sharper on most platforms.
debug_paint_clip_rects: bool
Output the clip rectangles to be painted.
debug_paint_text_rects: bool
Output the text-containing rectangles.
debug_ignore_clip_rects: bool
If true, no clipping will be done.
bezier_tolerance: f32
The maximum distance between the original curve and the flattened curve.
epsilon: f32
The default value will be 1.0e-5, it will be used during float compare.
Trait Implementations
sourceimpl Clone for TessellationOptions
impl Clone for TessellationOptions
sourcefn clone(&self) -> TessellationOptions
fn clone(&self) -> TessellationOptions
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more