|
|
@ -251,7 +251,7 @@ public class WaterFilter extends Filter { |
|
|
|
reflectionProcessor = new ReflectionProcessor(reflectionCam, reflectionPass.getRenderFrameBuffer(), plane); |
|
|
|
reflectionProcessor = new ReflectionProcessor(reflectionCam, reflectionPass.getRenderFrameBuffer(), plane); |
|
|
|
reflectionView.addProcessor(reflectionProcessor); |
|
|
|
reflectionView.addProcessor(reflectionProcessor); |
|
|
|
|
|
|
|
|
|
|
|
normalTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/gradient_map.jpg"); |
|
|
|
normalTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/water_normalmap.dds"); |
|
|
|
if (foamTexture == null) { |
|
|
|
if (foamTexture == null) { |
|
|
|
foamTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/foam.jpg"); |
|
|
|
foamTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/foam.jpg"); |
|
|
|
} |
|
|
|
} |
|
|
|