Skip to content

Commit

Permalink
Fix shader chunk error for tonemapped compressed GS (#6670)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored and marklundin committed Jun 6, 2024
1 parent f4352e1 commit 630bb32
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 630bb32

Please sign in to comment.