Skip to content

Commit

Permalink
fix color grading as subpass
Browse files Browse the repository at this point in the history
This broke in 48a2c64. Fixes #8401.
  • Loading branch information
pixelflinger committed Feb 3, 2025
1 parent b780cb3 commit b31dc8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filament/src/materials/colorGrading/colorGradingAsSubpass.mat
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ material {
},
{
type : int,
name : fxaa
name : outputLuminance
},
{
type : float,
Expand Down Expand Up @@ -110,10 +110,10 @@ void postProcess(inout PostProcessInputs postProcess) {
color = dither(color, materialParams.temporalNoise);
}

// kill alpha computations when opaque / fxaa luminance
// kill alpha computations when opaque / luminance
#if POST_PROCESS_OPAQUE
color.a = 1.0;
if (materialParams.fxaa > 0) {
if (materialParams.outputLuminance > 0) {
color.a = luminance(color.rgb);
}
#endif
Expand Down

0 comments on commit b31dc8f

Please sign in to comment.