How to add grass in the upbge

How to add grass in a terrain with deformities in the same upbge as is done in unity 3d
Like in this video

can be scripted