Fix: calculating localTranslation after gridChange

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
ant..om 14 years ago
parent 8364f4e072
commit dbe1bb0ed6
  1. 4
      engine/src/test/jme3test/terrain/TerrainFractalGridTest.java
  2. 3
      engine/src/test/jme3test/terrain/TerrainGridTest.java

@ -91,6 +91,10 @@ public class TerrainFractalGridTest extends SimpleApplication {
this.mat_terrain.setTexture("region3ColorMap", rock);
this.mat_terrain.setVector3("region3", new Vector3f(198, 260, this.rockScale));
// ROCK texture
this.mat_terrain.setTexture("region4ColorMap", rock);
this.mat_terrain.setVector3("region4", new Vector3f(198, 260, this.rockScale));
this.mat_terrain.setTexture("slopeColorMap", rock);
this.mat_terrain.setFloat("slopeTileFactor", 32);

@ -96,6 +96,9 @@ public class TerrainGridTest extends SimpleApplication {
this.mat_terrain.setTexture("region3ColorMap", rock);
this.mat_terrain.setVector3("region3", new Vector3f(198, 260, this.rockScale));
this.mat_terrain.setTexture("region4ColorMap", rock);
this.mat_terrain.setVector3("region4", new Vector3f(198, 260, this.rockScale));
this.mat_terrain.setTexture("slopeColorMap", rock);
this.mat_terrain.setFloat("slopeTileFactor", 32);

Loading…
Cancel
Save