mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
typo
This commit is contained in:
parent
cb25e5d113
commit
a19700554f
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user