AB包,shader问题修复

This commit is contained in:
SoulliesOfficial
2025-05-01 23:30:34 -04:00
parent 6f1ed89221
commit 99f839dc47
15 changed files with 90 additions and 34 deletions

View File

@@ -48,7 +48,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
dtmTrail.headSize = headSize;
dtmTrail.SetUpTweeners();
dtmTrail.renderers.ForEach(rend => rend.InitializeShader());
return dtmTrail;
}
@@ -84,12 +85,17 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
if (colorSubmodule.emissionEnabled)
{
rend.material.EnableKeyword("_EMISSION_ON");
Debug.Log("Enable emission");
}
else
{
rend.material.DisableKeyword("_EMISSION_ON");
}
rend.material.EnableKeyword("_USEREDASALPHA_ON");
Debug.Log(rend.material.IsKeywordEnabled("_EMISSION_ON") + " " + rend.material.IsKeywordEnabled("_USEREDASALPHA_ON"));
rend.material.SetColor("_BaseColor", colorSubmodule.currentBaseColor);
rend.material.SetColor("_EmissionColor", colorSubmodule.GetCurrentEmissionColor());
});