-
Whats an easy way to detect a convolution effect exists in composer.passes so that I can make programmatically make a new effectPass when adding another convolution effect ? eg: Chromatic Abberration and SMAA |
Beta Was this translation helpful? Give feedback.
Answered by
vanruesc
Jul 6, 2023
Replies: 1 comment
-
Sorry for the late response! I don't think there's a way to detect this currently. You could try copy&pasting the EffectAttribute check into your app as a workaround: let attributes: EffectAttribute = EffectAttribute.NONE;
for(const effect of effects) {
if(attributes & effect.getAttributes() & EffectAttribute.CONVOLUTION) !== 0) {
// Convolution effect conflict.
}
attributes |= effect.getAttributes();
} I'll add a way to access this information in v7. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vis-prime
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for the late response! I don't think there's a way to detect this currently. You could try copy&pasting the EffectAttribute check into your app as a workaround:
I'll add a way to access this information in v7.