A night vision filter is now available in the ShaderBlow Plugin, it was adapted from here:
Usage:
[java]
NightVisionFilter nightVisFilter = new NightVisionFilter();
// Create a green filter
nightVisFilter.setColor(new ColorRGBA(0.0f, 1.0f, 0.0f, 1.0f));
// Create Noise and mask textures
nightVisFilter.setNoiseTexture(assetManager.loadTexture(“TestTextures/NightVision/Noise.png”));
nightVisFilter.setMaskTexture(assetManager.loadTexture(“TestTextures/NightVision/BinocularsMask.png”));
fpp.addFilter(nightVisFilter);
viewPort.addProcessor(fpp);[/java]
As this was the first filter I have wrote, I used the structure of the ColorScaleFilter as the basis for it