Skip to content

Commit

Permalink
Update Main.metal
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 authored Jul 4, 2024
1 parent 7dba54c commit 343c277
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/ColorfulX/Shaders/Main.metal
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ kernel void SuperBlender(texture2d<float, access::write> output [[texture(4)]],
for (int i = 0; i < uniforms.pointCount; i++)
{
float factor = contribution[i] * inverseContribution;
float3 color_without_alpha = uniforms.colors[i].xyz;
col += float4(color_without_alpha, uniforms.colors[i].w) * factor;
col += uniforms.colors[i] * factor;
}

float3 color_with_out_alpha = LABToRGB(col.xyz);
Expand Down

0 comments on commit 343c277

Please sign in to comment.