diff options
| author | Bryan <bryan@jeal.ca> | 2025-10-20 21:15:08 -0600 |
|---|---|---|
| committer | Bryan <bryan@jeal.ca> | 2025-10-20 21:15:08 -0600 |
| commit | 7717a4d37f0f8918504134cf0563b61aab244e61 (patch) | |
| tree | f822d62271448dc1024310ab802b871c9815cb71 /util | |
| parent | 98c103f292ed5c454b457d7220132b8ad6c5b053 (diff) | |
[sokol_spine] Fixes issue with rendering slots that use multiply blend
mode.
Ticket #1360
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_spine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/sokol_spine.h b/util/sokol_spine.h index 0a9ed690..644af2b0 100644 --- a/util/sokol_spine.h +++ b/util/sokol_spine.h @@ -3863,10 +3863,10 @@ static sspine_resource_state _sspine_init_context(_sspine_context_t* ctx, const pip_desc.label = "sspine-pip-normal/additive"; ctx->pip.normal_additive = sg_make_pipeline(&pip_desc); - pip_desc.colors[0].blend.src_factor_rgb = SG_BLENDFACTOR_ZERO; - pip_desc.colors[0].blend.dst_factor_rgb = SG_BLENDFACTOR_SRC_COLOR; - pip_desc.colors[0].blend.src_factor_alpha = SG_BLENDFACTOR_ZERO; - pip_desc.colors[0].blend.dst_factor_alpha = SG_BLENDFACTOR_ONE; + pip_desc.colors[0].blend.src_factor_rgb = SG_BLENDFACTOR_DST_COLOR; + pip_desc.colors[0].blend.dst_factor_rgb = SG_BLENDFACTOR_ONE_MINUS_SRC_COLOR; + pip_desc.colors[0].blend.src_factor_alpha = SG_BLENDFACTOR_DST_ALPHA; + pip_desc.colors[0].blend.dst_factor_alpha = SG_BLENDFACTOR_ONE_MINUS_SRC_ALPHA; pip_desc.label = "sspine-pip-multiply"; ctx->pip.multiply = sg_make_pipeline(&pip_desc); |