|
|
|
@ -38,6 +38,7 @@ import com.jme3.renderer.*; |
|
|
|
|
import com.jme3.renderer.queue.RenderQueue; |
|
|
|
|
import com.jme3.texture.FrameBuffer; |
|
|
|
|
import com.jme3.texture.Image.Format; |
|
|
|
|
import com.jme3.texture.Texture; |
|
|
|
|
import com.jme3.texture.Texture2D; |
|
|
|
|
import com.jme3.ui.Picture; |
|
|
|
|
import com.jme3.util.SafeArrayList; |
|
|
|
@ -285,6 +286,12 @@ public class FilterPostProcessor implements SceneProcessor, Savable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
boolean wantsBilinear = filter.isRequiresBilinear(); |
|
|
|
|
if (wantsBilinear) { |
|
|
|
|
tex.setMagFilter(Texture.MagFilter.Bilinear); |
|
|
|
|
tex.setMinFilter(Texture.MinFilter.BilinearNoMipMaps); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
buff = outputBuffer; |
|
|
|
|
if (i != lastFilterIndex) { |
|
|
|
|
buff = filter.getRenderFrameBuffer(); |
|
|
|
@ -293,6 +300,11 @@ public class FilterPostProcessor implements SceneProcessor, Savable { |
|
|
|
|
} |
|
|
|
|
renderProcessing(r, buff, mat); |
|
|
|
|
filter.postFilter(r, buff); |
|
|
|
|
|
|
|
|
|
if (wantsBilinear) { |
|
|
|
|
tex.setMagFilter(Texture.MagFilter.Nearest); |
|
|
|
|
tex.setMinFilter(Texture.MinFilter.NearestNoMipMaps); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|