Skip to content

Commit

Permalink
Fix shader chunk error for tonemapped compressed GS (playcanvas#6670)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Jun 6, 2024
1 parent 7f3f8d7 commit 4db640b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scene/gsplat/gsplat-compressed-material.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ vec4 evalSplat() {
#endif
#ifdef TONEMAP_ENABLED
color.rgb = gammaCorrectOutput(toneMap(decodeGamma(color.rgb)));
return vec4(gammaCorrectOutput(toneMap(decodeGamma(color.rgb))), B);
#else
return vec4(color.rgb, B);
#endif
return vec4(color.rgb, B);
}
`;

Expand Down

0 comments on commit 4db640b

Please sign in to comment.