Created
July 20, 2012 20:21
-
-
Save rectalogic/3153015 to your computer and use it in GitHub Desktop.
multiple filters with MSAA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/test/jme3test/post/TestPosterization.java | |
=================================================================== | |
--- src/test/jme3test/post/TestPosterization.java (revision 9561) | |
+++ src/test/jme3test/post/TestPosterization.java (working copy) | |
@@ -43,6 +43,7 @@ | |
import com.jme3.math.Vector3f; | |
import com.jme3.post.FilterPostProcessor; | |
import com.jme3.post.filters.PosterizationFilter; | |
+import com.jme3.post.filters.CrossHatchFilter; | |
import com.jme3.renderer.queue.RenderQueue.ShadowMode; | |
import com.jme3.scene.Geometry; | |
import com.jme3.scene.Spatial; | |
@@ -118,11 +119,13 @@ | |
rootNode.attachChild(sky); | |
fpp=new FilterPostProcessor(assetManager); | |
+ fpp.setNumSamples(4); | |
PosterizationFilter pf=new PosterizationFilter(); | |
viewPort.addProcessor(fpp); | |
+ fpp.addFilter(new CrossHatchFilter()); | |
fpp.addFilter(pf); | |
initInputs(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment