Removed unused variable, fixed painting materials on heightfields with greater
resolution.