Skip to content

Commit

Permalink
fix(troika-three-utils): add colorspace_fragment (introduced in Thr…
Browse files Browse the repository at this point in the history
…ee r154) to the list of fragment shaders to process in `upgradeShaders()` (#325)
  • Loading branch information
asyncore authored Aug 8, 2024
1 parent 6969e85 commit 9169ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/troika-three-utils/src/DerivedMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function upgradeShaders(material, {vertexShader, fragmentShader}, options, key)
// this particular derivation doesn't have a fragmentColorTransform, other derivations may,
// so we still mark them.
fragmentShader = fragmentShader.replace(
/^[ \t]*#include <((?:tonemapping|encodings|fog|premultiplied_alpha|dithering)_fragment)>/gm,
/^[ \t]*#include <((?:tonemapping|encodings|colorspace|fog|premultiplied_alpha|dithering)_fragment)>/gm,
'\n//!BEGIN_POST_CHUNK $1\n$&\n//!END_POST_CHUNK\n'
)
fragmentShader = expandShaderIncludes(fragmentShader)
Expand Down

0 comments on commit 9169ebf

Please sign in to comment.