小改shader

Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
2026-06-20 12:12:01 +08:00
parent 78fc7fb468
commit 93b085f3cd
6 changed files with 20455 additions and 19873 deletions

View File

@@ -37,25 +37,27 @@ Material:
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- _AddPrecomputedVelocity: 1
- _AlphaCutoff: 0.5 - _AlphaCutoff: 0.5
- _Opacity: 1 - _Opacity: 2.03
- _QueueControl: 0 - _QueueControl: 0
- _QueueOffset: 0 - _QueueOffset: 0
- _ReceiveShadows: 1 - _ReceiveShadows: 1
- _count: 8 - _XRMotionVectorsPass: 1
- _cube_radius: 0.033 - _count: 6
- _cube_radius: 0
- _cube_softness: 0 - _cube_softness: 0
- _cube_width: 0.05 - _cube_width: 0.1
- _gap_softness: 0 - _gap_softness: 0.48
- _gapsize: 0.5 - _gapsize: 0.46
- _ring_radius: 0.5 - _ring_radius: 0.73
- _ring_rotation: 0 - _ring_rotation: 0
- _ring_rotation_angle: 0 - _ring_rotation_angle: 0
- _ring_softness: 0 - _ring_softness: 0
- _ring_width: 0.01 - _ring_width: 0.1
m_Colors: m_Colors:
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1} - _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
- _ImageColor: {r: 2, g: 2, b: 2, a: 1} - _ImageColor: {r: 0.7490196, g: 0.7490196, b: 0.7490196, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
m_AllowLocking: 1 m_AllowLocking: 1
--- !u!114 &2669937578497038573 --- !u!114 &2669937578497038573

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -9846,6 +9846,7 @@ MonoBehaviour:
isSwitchingReturnType: 0 isSwitchingReturnType: 0
lastReturnType: 0 lastReturnType: 0
returnType: 0 returnType: 0
EffectMaterial: {fileID: 0}
--- !u!95 &5521744977626316896 --- !u!95 &5521744977626316896
Animator: Animator:
serializedVersion: 7 serializedVersion: 7

View File

@@ -17,16 +17,19 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
public GameObject trailBody; public GameObject trailBody;
public List<Renderer> renderers = new List<Renderer>(); public List<Renderer> renderers = new List<Renderer>();
public bool isHeadEnabled; public bool isHeadEnabled;
public TrailRenderer trailRenderer { get; set; } public TrailRenderer trailRenderer { get; set; }
public AnimationCurve widthCurve; //trailBody的宽度曲线默认为常数0.5。 public AnimationCurve widthCurve; //trailBody的宽度曲线默认为常数0.5。
public Gradient trailAlphaGradient; //trailBody的渐变只控制Alpha默认为1Color必须为白色。 public Gradient trailAlphaGradient; //trailBody的渐变只控制Alpha默认为1Color必须为白色。
public FlexibleFloat visibleTimeLength; //trailBody的可见时间长度如果没有动画则默认为1秒。 public FlexibleFloat visibleTimeLength; //trailBody的可见时间长度如果没有动画则默认为1秒。
public FlexibleBool enableTimes; // headPoint和headCircle的启用/禁用时间,如果没有动画,则一直禁用。 public FlexibleBool enableTimes; // headPoint和headCircle的启用/禁用时间,如果没有动画,则一直禁用。
public float enableProcessTime = 0.5f; // headPointheadCircle的启用/禁用过程时间默认为0.5秒启用完成后sparks开启禁用开始时sparks关闭。 public float enableProcessTime = 0.5f; // headPointheadCircle的启用/禁用过程时间默认为0.5秒启用完成后sparks开启禁用开始时sparks关闭。
public float headSize = 1f; // headPoint和headCircle的目标大小默认为1。 public float headSize = 1f; // headPoint和headCircle的目标大小默认为1。
public FlexibleFloat headRotateSpeed; // headCircle的旋转速度(Particle.rotationOverLifetime的angular velocity) public FlexibleFloat headRotateSpeed; // headCircle的旋转速度(Particle.rotationOverLifetime的angular velocity)
public Material EffectMaterial;
float IHaveTrail.visibleTimeLength float IHaveTrail.visibleTimeLength
{ {
get => visibleTimeLength.animations.Count > 0 ? visibleTimeLength.value : 5f; get => visibleTimeLength.animations.Count > 0 ? visibleTimeLength.value : 5f;
@@ -71,8 +74,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
dtmTrail.widthCurve = widthCurve ?? DefaultWidthCurve(); dtmTrail.widthCurve = widthCurve ?? DefaultWidthCurve();
dtmTrail.trailAlphaGradient = trailGradient ?? DefaultTrailGradient(); dtmTrail.trailAlphaGradient = trailGradient ?? DefaultTrailGradient();
if(isFirstGenerated) dtmTrail.AfterInitialize(); if (isFirstGenerated) dtmTrail.AfterInitialize();
return dtmTrail; return dtmTrail;
} }
@@ -117,7 +120,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
{ {
rend.InitializeShader(); rend.InitializeShader();
} }
sparks.gameObject.SetActive(false); sparks.gameObject.SetActive(false);
headPoint.transform.localScale = Vector3.zero; headPoint.transform.localScale = Vector3.zero;
headCircle.transform.localScale = Vector3.zero; headCircle.transform.localScale = Vector3.zero;
@@ -215,8 +218,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
} }
} }
/// <summary> /// <summary>
/// 用 baseColor 作为固定颜色,从 alphaSource 中提取 Alpha 曲线,合成最终的 TrailRenderer Gradient /// 用 baseColor 作为固定颜色,从 alphaSource 中提取 Alpha 曲线,合成最终的 TrailRenderer Gradient
/// </summary> /// </summary>
@@ -266,7 +269,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
trailRenderer.time = visibleTimeLength.value; trailRenderer.time = visibleTimeLength.value;
} }
} }
private Sequence enableHeadSequence; private Sequence enableHeadSequence;
private Sequence disableHeadSequence; private Sequence disableHeadSequence;
private Sequence headBounceSequence; private Sequence headBounceSequence;
@@ -288,7 +291,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
disableHeadSequence.Join(headCircle.transform.DOScale(0, enableProcessTime).SetEase(Ease.OutQuad)); disableHeadSequence.Join(headCircle.transform.DOScale(0, enableProcessTime).SetEase(Ease.OutQuad));
disableHeadSequence.Play(); disableHeadSequence.Play();
} }
public void TriggerInteraction() public void TriggerInteraction()
{ {
headBounceSequence = DOTween.Sequence(); headBounceSequence = DOTween.Sequence();

View File

@@ -10,11 +10,11 @@
} }
}, },
"com.unity.2d.animation": { "com.unity.2d.animation": {
"version": "13.0.4", "version": "13.0.5",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "12.0.2", "com.unity.2d.common": "12.0.3",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.collections": "2.4.3", "com.unity.collections": "2.4.3",
"com.unity.modules.animation": "1.0.0", "com.unity.modules.animation": "1.0.0",
@@ -23,11 +23,11 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.aseprite": { "com.unity.2d.aseprite": {
"version": "3.0.1", "version": "3.0.2",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "12.0.1", "com.unity.2d.common": "12.0.3",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.2d.tilemap": "1.0.0", "com.unity.2d.tilemap": "1.0.0",
"com.unity.mathematics": "1.2.6", "com.unity.mathematics": "1.2.6",
@@ -36,7 +36,7 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.common": { "com.unity.2d.common": {
"version": "12.0.2", "version": "12.0.3",
"depth": 2, "depth": 2,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
@@ -60,11 +60,11 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.psdimporter": { "com.unity.2d.psdimporter": {
"version": "12.0.1", "version": "12.0.2",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "12.0.1", "com.unity.2d.common": "12.0.3",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.2d.tilemap": "1.0.0" "com.unity.2d.tilemap": "1.0.0"
}, },
@@ -97,7 +97,7 @@
} }
}, },
"com.unity.2d.tilemap.extras": { "com.unity.2d.tilemap.extras": {
"version": "6.0.1", "version": "6.0.2",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
@@ -108,11 +108,11 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.2d.tooling": { "com.unity.2d.tooling": {
"version": "1.0.2", "version": "1.0.3",
"depth": 1, "depth": 1,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {
"com.unity.2d.common": "12.0.2", "com.unity.2d.common": "12.0.3",
"com.unity.modules.uielements": "1.0.0" "com.unity.modules.uielements": "1.0.0"
}, },
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
@@ -172,15 +172,15 @@
"depth": 0, "depth": 0,
"source": "builtin", "source": "builtin",
"dependencies": { "dependencies": {
"com.unity.2d.animation": "13.0.4", "com.unity.2d.animation": "13.0.5",
"com.unity.2d.pixel-perfect": "5.1.1", "com.unity.2d.pixel-perfect": "5.1.1",
"com.unity.2d.psdimporter": "12.0.1", "com.unity.2d.psdimporter": "12.0.2",
"com.unity.2d.sprite": "1.0.0", "com.unity.2d.sprite": "1.0.0",
"com.unity.2d.spriteshape": "13.0.0", "com.unity.2d.spriteshape": "13.0.0",
"com.unity.2d.tilemap": "1.0.0", "com.unity.2d.tilemap": "1.0.0",
"com.unity.2d.tilemap.extras": "6.0.1", "com.unity.2d.tilemap.extras": "6.0.2",
"com.unity.2d.aseprite": "3.0.1", "com.unity.2d.aseprite": "3.0.2",
"com.unity.2d.tooling": "1.0.2" "com.unity.2d.tooling": "1.0.3"
} }
}, },
"com.unity.ide.rider": { "com.unity.ide.rider": {