Fix: calculating localTranslation after gridChange
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7776 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
8364f4e072
commit
dbe1bb0ed6
@ -91,6 +91,10 @@ public class TerrainFractalGridTest extends SimpleApplication {
|
|||||||
this.mat_terrain.setTexture("region3ColorMap", rock);
|
this.mat_terrain.setTexture("region3ColorMap", rock);
|
||||||
this.mat_terrain.setVector3("region3", new Vector3f(198, 260, this.rockScale));
|
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.setTexture("slopeColorMap", rock);
|
||||||
this.mat_terrain.setFloat("slopeTileFactor", 32);
|
this.mat_terrain.setFloat("slopeTileFactor", 32);
|
||||||
|
|
||||||
|
@ -96,6 +96,9 @@ public class TerrainGridTest extends SimpleApplication {
|
|||||||
this.mat_terrain.setTexture("region3ColorMap", rock);
|
this.mat_terrain.setTexture("region3ColorMap", rock);
|
||||||
this.mat_terrain.setVector3("region3", new Vector3f(198, 260, this.rockScale));
|
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.setTexture("slopeColorMap", rock);
|
||||||
this.mat_terrain.setFloat("slopeTileFactor", 32);
|
this.mat_terrain.setFloat("slopeTileFactor", 32);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user