Skip to content

Commit

Permalink
game_dir: glsl: fixed monochrome effect for screen and movie surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Dec 13, 2024
1 parent 018e9d6 commit 1412509
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions game_dir/glsl/forward/scene_bmodel_fp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ void main( void )
albedo = colormap2D( u_ColorMap, vec_TexDiffuse );
#endif

#if defined( MONOCHROME )
albedo.rgb = vec3(GetLuminance(albedo.rgb));
#endif

#if !defined( ALPHA_BLENDING ) && !defined( USING_SCREENCOPY ) && !defined( APPLY_TERRAIN )
albedo.a = AlphaRescaling( u_ColorMap, vec_TexDiffuse, albedo.a );
#endif
Expand Down

0 comments on commit 1412509

Please sign in to comment.