Skip to content

Commit

Permalink
Update OverlayBlend.ts (#10469)
Browse files Browse the repository at this point in the history
fix the overlay blend mode
  • Loading branch information
skyfish-qc committed Apr 30, 2024
1 parent 4ce7191 commit 240adfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/advanced-blend-modes/OverlayBlend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class OverlayBlend extends BlendModeFilter
functions: `
float overlay(float base, float blend)
{
return (blend < 0.5) ? (2.0*base*blend) : (1.0-2.0*(1.0-base)*(1.0-blend));
return (base < 0.5) ? (2.0*base*blend) : (1.0-2.0*(1.0-base)*(1.0-blend));
}
vec3 blendOverlay(vec3 base, vec3 blend, float opacity)
Expand Down

0 comments on commit 240adfd

Please sign in to comment.