Old Film Effect filter

@benkibitzer said: Hey, thanks for the cool filter! But it seems like I can only change its propertys by creating a new one, the setter - methods don't have any effect. Example:

[java]
OldFilmFilter off = new OldFilmFilter(ColorRGBA.Blue, .5f, .5f, 1, .9f);
off.setFilterColor(ColorRGBA.Yellow);
filterPostProcessor = new FilterPostProcessor(assetManager);
viewPort.addProcessor(filterPostProcessor);
filterPostProcessor.addFilter(off);
[/java]
The filter is still blue.

There is a validtion on the setter to prevent a NPE if material is not initialized.
[java]
public void setColorDensity(final float colorDensity) {
if (this.material != null) {
this.material.setFloat(M_PARAM_NAME_COLOR_DENSITY, colorDensity);
this.colorDensity = colorDensity;
}
}
[/java]
Perhaps I should move the attribute asignation out of the if