Ejemplo n.º 1
0
  private void updatePassesList() {
    mPasses.clear();

    for (int i = 0; i < mComponents.size(); i++) {
      IPostProcessingComponent component = mComponents.get(i);
      if (component.getType() == PostProcessingComponentType.PASS) {
        mPasses.add((IPass) component);
      } else if (component.getType() == PostProcessingComponentType.EFFECT) {
        IPostProcessingEffect effect = (IPostProcessingEffect) component;
        mPasses.addAll(effect.getPasses());
      }
    }

    mNumPasses = mPasses.size();
  }
Ejemplo n.º 2
0
 public void insertEffect(int index, IPostProcessingEffect multiPass) {
   multiPass.initialize(mRenderer);
   mComponents.addAll(index, multiPass.getPasses());
   mComponentsDirty = true;
 }
Ejemplo n.º 3
0
 public void removeEffect(IPostProcessingEffect multiPass) {
   mComponents.removeAll(multiPass.getPasses());
   mComponentsDirty = true;
 }
Ejemplo n.º 4
0
 public void addEffect(IPostProcessingEffect multiPass) {
   multiPass.initialize(mRenderer);
   mComponents.addAll(multiPass.getPasses());
   mComponentsDirty = true;
 }