Better normal map for water
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8044 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
6c9395c4e9
commit
75b320b7d6
Binary file not shown.
@ -267,7 +267,7 @@ public class SimpleWaterProcessor implements SceneProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void loadTextures(AssetManager manager) {
|
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");
|
dudvTexture = (Texture2D) manager.loadTexture("Common/MatDefs/Water/Textures/dudv_map.jpg");
|
||||||
normalTexture.setWrap(WrapMode.Repeat);
|
normalTexture.setWrap(WrapMode.Repeat);
|
||||||
dudvTexture.setWrap(WrapMode.Repeat);
|
dudvTexture.setWrap(WrapMode.Repeat);
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user