- make VideoRecorderAppState record post effects..

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8717 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 7f17c8d1f1
commit 86956cf130
  1. 5
      engine/src/desktop/com/jme3/app/state/VideoRecorderAppState.java

@ -15,6 +15,7 @@ import java.awt.image.BufferedImage;
import java.io.*;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@ -80,7 +81,9 @@ public class VideoRecorderAppState extends AbstractAppState {
file = new File(filename);
}
processor = new VideoProcessor();
app.getViewPort().addProcessor(processor);
List<ViewPort> vps = app.getRenderManager().getPostViews();
ViewPort last = vps.get(vps.size()-1);
last.addProcessor(processor);
}
@Override

Loading…
Cancel
Save