terrain now uses bytes instead of floats