This commit is contained in:
JohnCorby 2022-07-21 18:55:25 -07:00
parent cb25e5d113
commit a19700554f

View File

@ -132,7 +132,7 @@ namespace NewHorizons.Builder.Body.Geometry
float sampleX = heightMap.width * longitude / 360f; float sampleX = heightMap.width * longitude / 360f;
float sampleY = heightMap.height * latitude / 180f; float sampleY = heightMap.height * latitude / 180f;
if (sampleX > heightMap.width) sampleX -= heightMap.width; // TODO: find out if this actually doesnt anything if (sampleX > heightMap.width) sampleX -= heightMap.width; // TODO: find out if this actually does anything
float relativeHeight = heightMap.GetPixel((int)sampleX, (int)sampleY).r; float relativeHeight = heightMap.GetPixel((int)sampleX, (int)sampleY).r;