Fixed Terrain Rendering

Added back in texture functions