Modified terrain.h