Lines Matching refs:matTerrain
66 Material matTerrain;
98 matTerrain = new Material(assetManager, "Common/MatDefs/Terrain/TerrainLighting.j3md");
99 matTerrain.setBoolean("useTriPlanarMapping", false);
100 matTerrain.setFloat("Shininess", 0.0f);
103 matTerrain.setTexture("AlphaMap", assetManager.loadTexture("Textures/Terrain/splat/alpha1.png"));
104 matTerrain.setTexture("AlphaMap_1", assetManager.loadTexture("Textures/Terrain/splat/alpha2.png"));
112 //matTerrain.setTexture("DiffuseMap_1", grass);
113 //matTerrain.setFloat("DiffuseMap_1_scale", grassScale);
118 matTerrain.setTexture("DiffuseMap", dirt);
119 matTerrain.setFloat("DiffuseMap_0_scale", dirtScale);
124 //matTerrain.setTexture("DiffuseMap_2", rock);
125 //matTerrain.setFloat("DiffuseMap_2_scale", rockScale);
130 //matTerrain.setTexture("DiffuseMap_3", brick);
131 //matTerrain.setFloat("DiffuseMap_3_scale", rockScale);
136 //matTerrain.setTexture("DiffuseMap_4", riverRock);
137 //matTerrain.setFloat("DiffuseMap_4_scale", rockScale);
146 matTerrain.setTexture("NormalMap", normalMap0);
147 //matTerrain.setTexture("NormalMap_1", normalMap2);
148 //matTerrain.setTexture("NormalMap_2", normalMap2);
149 //matTerrain.setTexture("NormalMap_4", normalMap2);
182 terrain.setMaterial(matTerrain);
230 terrain.setMaterial(matTerrain);
235 matTerrain.setBoolean("useTriPlanarMapping", true);
239 matTerrain.setFloat("DiffuseMap_0_scale", 1f / (float) (512f / grassScale));
240 matTerrain.setFloat("DiffuseMap_1_scale", 1f / (float) (512f / dirtScale));
241 matTerrain.setFloat("DiffuseMap_2_scale", 1f / (float) (512f / rockScale));
242 matTerrain.setFloat("DiffuseMap_3_scale", 1f / (float) (512f / rockScale));
243 matTerrain.setFloat("DiffuseMap_4_scale", 1f / (float) (512f / rockScale));
245 matTerrain.setBoolean("useTriPlanarMapping", false);
246 matTerrain.setFloat("DiffuseMap_0_scale", grassScale);
247 matTerrain.setFloat("DiffuseMap_1_scale", dirtScale);
248 matTerrain.setFloat("DiffuseMap_2_scale", rockScale);
249 matTerrain.setFloat("DiffuseMap_3_scale", rockScale);
250 matTerrain.setFloat("DiffuseMap_4_scale", rockScale);