mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
added support for colors for nodes
This commit is contained in:
parent
060d7a0fb0
commit
28c4ba1591
@ -194,11 +194,24 @@ namespace NewHorizons.Builder.Props
|
|||||||
// TODO: change the colors
|
// TODO: change the colors
|
||||||
//
|
//
|
||||||
|
|
||||||
//var effects = SearchUtilities.FindChild(brambleNode, "Effects");
|
var effects = SearchUtilities.FindChild(brambleNode, "Effects");
|
||||||
//var fogRenderer = SearchUtilities.FindChild(effects, "InnerWarpFogSphere");
|
var fogRenderer = SearchUtilities.FindChild(effects, "InnerWarpFogSphere").GetComponent<OWRenderer>();
|
||||||
//var lightShafts = SearchUtilities.FindChild(effects, "DB_BrambleLightShafts");
|
var lightShafts = SearchUtilities.FindChild(effects, "DB_BrambleLightShafts");
|
||||||
|
|
||||||
//var lightShaft1 = SearchUtilities.FindChild(lightShafts, "BrambleLightShaft1");
|
|
||||||
|
if (config.fogTint != null) fogRenderer.SetColor(config.fogTint.ToColor());
|
||||||
|
if (config.lightTint != null)
|
||||||
|
{
|
||||||
|
var lightShaft1 = SearchUtilities.FindChild(lightShafts, "BrambleLightShaft1");
|
||||||
|
var mat = lightShaft1.GetComponent<MeshRenderer>().material;
|
||||||
|
mat.color = config.lightTint.ToColor();
|
||||||
|
|
||||||
|
for (int i = 1; i <= 6; i++)
|
||||||
|
{
|
||||||
|
var lightShaft = SearchUtilities.FindChild(lightShafts, $"BrambleLightShaft{i}");
|
||||||
|
lightShaft.GetComponent<MeshRenderer>().sharedMaterial = mat;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// set up warps
|
// set up warps
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user