Skip to content

Commit

Permalink
Set blend modes in g2.kong
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jun 11, 2024
1 parent 040ffdc commit b3cdabe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions KongShaders/g2.kong
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ fun kinc_g2_colored_fragment(input: kinc_g2_colored_vertex_out): float4 {
struct kinc_g2_colored_pipeline {
vertex = kinc_g2_colored_vertex;
fragment = kinc_g2_colored_fragment;
blend_source = BLEND_ONE;
blend_destination = BLEND_INV_SOURCE_ALPHA;
alpha_blend_source = BLEND_ONE;
alpha_blend_destination = BLEND_INV_SOURCE_ALPHA;
}

struct kinc_g2_image_vertex_in {
Expand Down Expand Up @@ -70,6 +74,10 @@ fun kinc_g2_image_fragment(input: kinc_g2_image_vertex_out): float4 {
struct kinc_g2_image_pipeline {
vertex = kinc_g2_image_vertex;
fragment = kinc_g2_image_fragment;
blend_source = BLEND_ONE;
blend_destination = BLEND_INV_SOURCE_ALPHA;
alpha_blend_source = BLEND_ONE;
alpha_blend_destination = BLEND_INV_SOURCE_ALPHA;
}

/*
Expand Down

0 comments on commit b3cdabe

Please sign in to comment.