Skip to content

Commit

Permalink
BleachBypassShader: Use luminance(). (#29056)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Aug 2, 2024
1 parent 7c4fb49 commit 8448be6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/jsm/shaders/BleachBypassShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ const BleachBypassShader = {
vec4 base = texture2D( tDiffuse, vUv );
vec3 lumCoeff = vec3( 0.25, 0.65, 0.1 );
float lum = dot( lumCoeff, base.rgb );
float lum = luminance( base.rgb );
vec3 blend = vec3( lum );
float L = min( 1.0, max( 0.0, 10.0 * ( lum - 0.45 ) ) );
Expand Down

0 comments on commit 8448be6

Please sign in to comment.