One way to solve this type of problem is with the texture used by the terrain, first select it and then change the Alpha Source value from "Input Texture Alpha" to "From Gray Scale". This option solved my problem.