diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-05-11 05:11:44 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-05-11 05:11:44 +0200 |
| commit | fbbfe0ea8037a71cc36449cbe6bbfc490ef485b7 (patch) | |
| tree | b11ed4310965dfb21358c6c242fd4c7096d18b50 | |
| parent | c6fb6e7750de9aa1a77ba9e3a69640af179d54ea (diff) | |
better antigrain curves params
| -rw-r--r-- | src/vkvg_context_internal.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index f415531..262ac76 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -177,7 +177,7 @@ void _record_draw_cmd (VkvgContext ctx){ //DEBUG /*vkCmdBindPipeline(ctx->cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, ctx->pSurf->dev->pipelineWired); vkCmdDrawIndexed(ctx->cmd, ctx->indCount - ctx->curIndStart, 1, ctx->curIndStart, 0, 1); - vkCmdBindPipeline(ctx->cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, ctx->pSurf->dev->pipeline);*/ + vkCmdBindPipeline(ctx->cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, ctx->pSurf->dev->pipe_OVER);*/ ////////// ctx->curIndStart = ctx->indCount; @@ -578,12 +578,12 @@ void _free_ctx_save (vkvg_context_save_t* sav){ #define m_approximation_scale 1.0 -#define m_angle_tolerance 0.05 -#define m_distance_tolerance 0.1 -#define m_cusp_limit 0.25 -#define curve_recursion_limit 16 -#define curve_collinearity_epsilon 0.001 -#define curve_angle_tolerance_epsilon 0.1 +#define m_angle_tolerance 0.01 +#define m_distance_tolerance 1.0 +#define m_cusp_limit 0.01 +#define curve_recursion_limit 10 +#define curve_collinearity_epsilon 1.7 +#define curve_angle_tolerance_epsilon 0.001 void _recursive_bezier (VkvgContext ctx, float x1, float y1, float x2, float y2, |