feat(hero): 新增英雄按等级切换不同颜色描边的功能

新增紫色描边shader与对应材质资源,为英雄预制体注册四种颜色描边材质
重构FlashSprite组件支持按等级切换描边,在英雄初始化与升级时自动更新描边样式
This commit is contained in:
walkpan
2026-05-17 14:01:30 +08:00
parent 2d0620fb00
commit 8417e8699f
7 changed files with 300 additions and 8 deletions

View File

@@ -0,0 +1,41 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"_effectAsset": {
"__uuid__": "22f6acfb-c03d-4213-918a-4d3b0cce76b4",
"__expectedType__": "cc.EffectAsset"
},
"_techIdx": 0,
"_defines": [
{
"USE_TEXTURE": true
}
],
"_states": [
{
"rasterizerState": {},
"depthStencilState": {},
"blendState": {
"targets": [
{}
]
}
}
],
"_props": [
{
"glowColor": {
"__type__": "cc.Color",
"r": 130,
"g": 46,
"b": 255,
"a": 255
},
"glowWidth": 0.002,
"glowThreshold": 0.887
}
]
}

View File

@@ -0,0 +1 @@
{"ver":"1.0.21","importer":"material","imported":true,"uuid":"acf230af-e9ae-42f8-80a1-552d7d10390f","files":[".json"],"subMetas":{},"userData":{}}