-
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.
Replies: 2 comments
-
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.
-
FYI: In v7 it's possible to detect whether effects can be merged by simply attempting to set postprocessing/src/passes/EffectPass.ts Lines 111 to 136 in 7e61527 |
Beta Was this translation helpful? Give feedback.
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.