Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork238
-
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 |
BetaWas this translation helpful?Give feedback.
All reactions
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:
letattributes:EffectAttribute=EffectAttribute.NONE;for(consteffectofeffects){if(attributes&effect.getAttributes()&EffectAttribute.CONVOLUTION)!==0){// Convolution effect conflict.}attributes|=effect.getAttributes();}
I'll add a way to access this information in v7.
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: letattributes:EffectAttribute=EffectAttribute.NONE;for(consteffectofeffects){if(attributes&effect.getAttributes()&EffectAttribute.CONVOLUTION)!==0){// Convolution effect conflict.}attributes|=effect.getAttributes();} I'll add a way to access this information in v7. |
BetaWas this translation helpful?Give feedback.
All reactions
-
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 in7e61527
|
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1