Better normal map for water

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8044 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 6c9395c4e9
commit 75b320b7d6
  1. BIN
      engine/src/core-data/Common/MatDefs/Water/Textures/water_normalmap.dds
  2. 2
      engine/src/desktop-fx/com/jme3/water/SimpleWaterProcessor.java
  3. 2
      engine/src/desktop-fx/com/jme3/water/WaterFilter.java

@ -267,7 +267,7 @@ public class SimpleWaterProcessor implements SceneProcessor {
}
protected void loadTextures(AssetManager manager) {
normalTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/gradient_map.jpg");
normalTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/water_normalmap.dds");
dudvTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/dudv_map.jpg");
normalTexture.setWrap(WrapMode.Repeat);
dudvTexture.setWrap(WrapMode.Repeat);

@ -251,7 +251,7 @@ public class WaterFilter extends Filter {
reflectionProcessor = new ReflectionProcessor(reflectionCam, reflectionPass.getRenderFrameBuffer(), plane);
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) {
foamTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/foam.jpg");
}

Loading…
Cancel
Save