|
|
@ -417,10 +417,10 @@ public class HeightMap { |
|
|
|
|
|
|
|
|
|
|
|
//get height of the 4 vertices.
|
|
|
|
//get height of the 4 vertices.
|
|
|
|
|
|
|
|
|
|
|
|
float topLeftHeight = 0; |
|
|
|
float topLeftHeight; |
|
|
|
float topRightHeight = 0; |
|
|
|
float topRightHeight; |
|
|
|
float bottomLeftHeight = 0; |
|
|
|
float bottomLeftHeight; |
|
|
|
float bottomRightHeight = 0; |
|
|
|
float bottomRightHeight; |
|
|
|
|
|
|
|
|
|
|
|
int nextY = gridY + 1; |
|
|
|
int nextY = gridY + 1; |
|
|
|
int nextX = gridX + 1; |
|
|
|
int nextX = gridX + 1; |
|
|
|