Skip to content

Commit

Permalink
rename filter
Browse files Browse the repository at this point in the history
  • Loading branch information
codex128 committed Mar 21, 2024
1 parent b0f1cdc commit b91d9c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
*
* @author codex
*/
public class PBRBloomFilter extends Filter {
public class SoftBloomFilter extends Filter {

private AssetManager assetManager;
private RenderManager renderManager;
Expand All @@ -79,8 +79,8 @@ public class PBRBloomFilter extends Filter {
/**
* Creates filter with default settings.
*/
public PBRBloomFilter() {
super("PBRBloomFilter");
public SoftBloomFilter() {
super("SoftBloomFilter");
}

@Override
Expand Down Expand Up @@ -127,7 +127,6 @@ public void beforeRender() {
};
pass.init(renderer, w, h, format, Image.Format.Depth, 1, downsampleMat);
pass.getRenderedTexture().setMinFilter(Texture.MinFilter.BilinearNoMipMaps);
pass.getRenderedTexture().setMagFilter(Texture.MagFilter.Bilinear);
postRenderPasses.add(pass);
downsamplingPasses[i] = pass;
}
Expand Down
6 changes: 3 additions & 3 deletions jme3-examples/src/main/java/jme3test/post/TestPBRBloom.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.post.FilterPostProcessor;
import com.jme3.post.filters.PBRBloomFilter;
import com.jme3.post.filters.SoftBloomFilter;
import com.jme3.renderer.queue.RenderQueue.ShadowMode;
import com.jme3.scene.Geometry;
import com.jme3.scene.Spatial;
Expand All @@ -50,7 +50,7 @@
import com.jme3.util.SkyFactory.EnvMapType;

/**
* Tests {@link PBRBloomFilter} with HDR.
* Tests {@link SoftBloomFilter} with HDR.
* <p>
* Note: the camera is pointed directly at the ground, which is completely
* black for some reason.
Expand Down Expand Up @@ -135,7 +135,7 @@ public void simpleInitApp() {
rootNode.addControl(new EnvironmentProbeControl(assetManager, 256));

fpp = new FilterPostProcessor(assetManager);
PBRBloomFilter bloom = new PBRBloomFilter();
SoftBloomFilter bloom = new SoftBloomFilter();
fpp.addFilter(bloom);
viewPort.addProcessor(fpp);

Expand Down

0 comments on commit b91d9c6

Please sign in to comment.