mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2026-10-14 02:39:40 -07:00
Made sure alpha sharpen is only applied when the color alpha is at or above 1.0
This commit is contained in:
1 parent
d56e1d608c
commit
dbe97a7176
4 files changed
+85
-41
No files matched your search
@@ -231,12 +231,12 @@ init :: proc "c" ()
|
||||
|
||||
shaper_opts := ve.Init_Shaper_Params_Default
|
||||
shaper_opts.snap_glyph_position = true
|
||||
|
||||
|
||||
ve.startup( & demo_ctx.ve_ctx, .STB_TrueType, allocator = context.allocator,
|
||||
glyph_draw_params = glyph_draw_opts,
|
||||
shaper_params = shaper_opts,
|
||||
px_scalar = 1.8,
|
||||
alpha_sharpen = 0.05,
|
||||
px_scalar = 1.6,
|
||||
alpha_sharpen = 0.4,
|
||||
)
|
||||
ve_sokol.setup_gfx_objects( & demo_ctx.render_ctx, & demo_ctx.ve_ctx, vert_cap = 256 * 1024, index_cap = 512 * 1024 )
|
||||
|
||||
|
||||
Reference in new issue
Block a user