mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
todo
This commit is contained in:
parent
c131661761
commit
cc9adcf732
@ -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;
|
if (sampleX > heightMap.width) sampleX -= heightMap.width; // TODO: find out if this actually doesnt anything
|
||||||
|
|
||||||
float relativeHeight = heightMap.GetPixel((int)sampleX, (int)sampleY).r;
|
float relativeHeight = heightMap.GetPixel((int)sampleX, (int)sampleY).r;
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ namespace NewHorizons.Builder.Body
|
|||||||
|
|
||||||
if (useLOD)
|
if (useLOD)
|
||||||
{
|
{
|
||||||
var level2Res = (int)Mathf.Clamp(resolution / 2f, 35, 100);
|
var level2Res = (int)Mathf.Clamp(resolution / 2f, 1 /*cube moment*/, 100);
|
||||||
var level2 = MakeLODTerrain(cubeSphere, heightMap, textureMap, module.minHeight, module.maxHeight, level2Res, stretch);
|
var level2 = MakeLODTerrain(cubeSphere, heightMap, textureMap, module.minHeight, module.maxHeight, level2Res, stretch);
|
||||||
|
|
||||||
var LODGroup = cubeSphere.AddComponent<LODGroup>();
|
var LODGroup = cubeSphere.AddComponent<LODGroup>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user