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