[SOLVED] Can't scale terrain diffuse map texture

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");
    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.

Do you have a code example of this? I have to admit the way you describe it here makes no sense to me.

terrainMat.setTexture("AlphaMap", assetManager.loadTexture("Textures/Terrain/alpha1.png"));
terrainMat.setTexture("AlphaMap_1", assetManager.loadTexture("Textures/Terrain/alpha2.png"));
terrainMat.setTexture("DiffuseMap", dirt);
terrainMat.setFloat("DiffuseMap_0_scale", 64);