Hello, here is a code I use to load a diffuse texture for my terrain:
Texture cell_terrain_df = assetManager.loadTexture("Textures/Gen/cell_terrain_diff.png"); cell_terrain_df.setWrap(Texture.WrapMode.Repeat); terrainMat.setTexture("DiffuseMap", cell_terrain_df); terrainMat.setFloat("DiffuseMap_0_scale", 64f);
However, I don’t see any effect of setting DiffuseMap_0_scale to 64, as shown in the picture:
We see a single texture stretched. This is the original texture:
SOLUTION In order to scale the diffuse texture, one has to add a useful or a stub AlphaMap texture.