mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
oops
This commit is contained in:
parent
f57ca63f71
commit
a44cea387d
@ -35,8 +35,12 @@ namespace NewHorizons.Builder.General
|
||||
{
|
||||
var tint = config.tint.ToColor();
|
||||
var key = $"AmbientLight_QM > tint {tint}";
|
||||
if (ImageUtilities.CheckGeneratedTexture(key, out var existingTexture)) light.cookie = existingTexture;
|
||||
|
||||
if (ImageUtilities.CheckGeneratedTexture(key, out var existingTexture))
|
||||
{
|
||||
light.cookie = existingTexture;
|
||||
}
|
||||
else
|
||||
{
|
||||
var baseCubemap = Main.NHPrivateAssetBundle.LoadAsset<Cubemap>("AmbientLight_QM");
|
||||
var cubemap = new Cubemap(baseCubemap.width, baseCubemap.format, baseCubemap.mipmapCount != 1);
|
||||
cubemap.name = key;
|
||||
@ -58,6 +62,7 @@ namespace NewHorizons.Builder.General
|
||||
|
||||
light.cookie = cubemap;
|
||||
}
|
||||
}
|
||||
|
||||
return light;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user