AB包,shader问题修复
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user