* Fix link error in glow material techniques
* DesktopAssetManager now works as before (flipY and generate mips options are enabled) * Fix crash in TestSimpleWater git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9322 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
7ec115a768
commit
ac59c1ffdf
@ -295,6 +295,7 @@ MaterialDef Phong Lighting {
|
||||
}
|
||||
|
||||
Defines {
|
||||
NEED_TEXCOORD1
|
||||
HAS_GLOWMAP : GlowMap
|
||||
HAS_GLOWCOLOR : GlowColor
|
||||
}
|
||||
|
@ -102,6 +102,7 @@ MaterialDef Point Sprite {
|
||||
}
|
||||
|
||||
Defines {
|
||||
NEED_TEXCOORD1
|
||||
HAS_GLOWMAP : GlowMap
|
||||
HAS_GLOWCOLOR : GlowColor
|
||||
}
|
||||
|
@ -58,9 +58,9 @@ MaterialDef Unshaded {
|
||||
}
|
||||
|
||||
Defines {
|
||||
NEED_TEXCOORD1
|
||||
HAS_GLOWMAP : GlowMap
|
||||
HAS_GLOWCOLOR : GlowColor
|
||||
HAS_COLORMAP // Must be passed so that Unshaded.vert exports texCoord.
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -350,7 +350,11 @@ public class DesktopAssetManager implements AssetManager {
|
||||
}
|
||||
|
||||
public Texture loadTexture(String name){
|
||||
return loadTexture(new TextureKey(name, false));
|
||||
TextureKey key = new TextureKey(name, true);
|
||||
key.setGenerateMips(true);
|
||||
Texture tex = loadTexture(key);
|
||||
System.out.println(tex + " - " + tex.getMinFilter());
|
||||
return tex;
|
||||
}
|
||||
|
||||
public AudioData loadAudio(AudioKey key){
|
||||
|
@ -81,7 +81,7 @@ public class TestSimpleWater extends SimpleApplication implements ActionListener
|
||||
|
||||
//create water quad
|
||||
//waterPlane = waterProcessor.createWaterGeometry(100, 100);
|
||||
waterPlane=(Spatial) assetManager.loadAsset("Models/WaterTest/WaterTest.mesh.xml");
|
||||
waterPlane=(Spatial) assetManager.loadModel("Models/WaterTest/WaterTest.mesh.xml");
|
||||
waterPlane.setMaterial(waterProcessor.getMaterial());
|
||||
waterPlane.setLocalScale(40);
|
||||
waterPlane.setLocalTranslation(-5, 0, 5);
|
||||
|
Loading…
x
Reference in New Issue
Block a user