Skip to content

Commit

Permalink
Update cBloom.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed May 17, 2023
1 parent 6158829 commit e4eeb32
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shaders/cBloom.fx
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,12 @@ namespace cBloom
float LC = 1.0 / (Max3(C.rgb) + 1.0);
float LD = 1.0 / (Max3(D.rgb) + 1.0);
float LE = 1.0 / (Max3(E.rgb) + 1.0);
float RcpSumL = 1.0 / (LA + LB + LC + LD + LE);

OutputColor += (A * LA);
OutputColor += (B * LB);
OutputColor += (C * LC);
OutputColor += (D * LD);
OutputColor += (E * LE);
OutputColor *= RcpSumL;
}
else
{
Expand Down Expand Up @@ -338,4 +336,4 @@ namespace cBloom
PixelShader = PS_Composite;
}
}
}
}

0 comments on commit e4eeb32

Please sign in to comment.