mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add some light to asteroids why not
This commit is contained in:
parent
65fd7abba7
commit
d770cc6bd3
@ -39,7 +39,8 @@ namespace NewHorizons.Builder.Body
|
||||
{
|
||||
surfaceGravity = belt.gravity,
|
||||
surfaceSize = size,
|
||||
gravityFallOff = GravityFallOff.InverseSquared
|
||||
gravityFallOff = GravityFallOff.InverseSquared,
|
||||
hasFluidDetector = false
|
||||
};
|
||||
|
||||
config.Orbit = new OrbitModule()
|
||||
@ -86,6 +87,10 @@ namespace NewHorizons.Builder.Body
|
||||
{
|
||||
config.ProcGen = belt.procGen;
|
||||
config.ProcGen.scale = size;
|
||||
if (belt.procGen.color == null)
|
||||
{
|
||||
config.ProcGen.color = new MColor(126, 94, 73);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -95,6 +100,7 @@ namespace NewHorizons.Builder.Body
|
||||
color = new MColor(126, 94, 73)
|
||||
};
|
||||
}
|
||||
config.AmbientLights = new[] { new AmbientLightModule() { outerRadius = size * 1.2f, intensity = 0.6f } };
|
||||
|
||||
var asteroid = new NewHorizonsBody(config, mod);
|
||||
PlanetCreationHandler.GenerateBody(asteroid);
|
||||
|
||||
@ -43,10 +43,9 @@ namespace NewHorizons.Builder.Body
|
||||
material.name = planetGO.name;
|
||||
|
||||
material.mainTexture = ImageUtilities.TintImage(ImageUtilities.ClearTexture(1, 1), colour);
|
||||
material.SetFloat("_Smoothness", 0.2f);
|
||||
material.SetFloat("_Metallic", 0.2f);
|
||||
material.SetFloat("_Smoothness", 0.1f);
|
||||
material.SetFloat("_Metallic", 0.1f);
|
||||
break;
|
||||
|
||||
}
|
||||
material.color = colour;
|
||||
cubeSphereMR.material = material;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user