mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix scatterer being off
This commit is contained in:
parent
9f550a2562
commit
d66f179eb7
@ -53,7 +53,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
var height = radius;
|
var height = radius;
|
||||||
if (heightMapTexture != null)
|
if (heightMapTexture != null)
|
||||||
{
|
{
|
||||||
var sphericals = CoordinateUtilities.CartesianToSpherical(point);
|
var sphericals = CoordinateUtilities.CartesianToSpherical(point, false);
|
||||||
float longitude = sphericals.x;
|
float longitude = sphericals.x;
|
||||||
float latitude = sphericals.y;
|
float latitude = sphericals.y;
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
if (config.Water != null && height - 1f < config.Water.size) continue;
|
if (config.Water != null && height - 1f < config.Water.size) continue;
|
||||||
|
|
||||||
// Move it slightly into the ground
|
// Move it slightly into the ground
|
||||||
height -= 0.1f;
|
height -= 0.01f;
|
||||||
}
|
}
|
||||||
|
|
||||||
var prop = DetailBuilder.MakeDetail(go, sector, prefab, (MVector3)(point.normalized * height), null, propInfo.scale, true);
|
var prop = DetailBuilder.MakeDetail(go, sector, prefab, (MVector3)(point.normalized * height), null, propInfo.scale, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user