I have terrain[height][width] and what I\'m doing is drawing differently colored squares on the screen depending on the material at terrain[y][x].
terrain[height][width]
terrain[y][x]