添加粒子效果

This commit is contained in:
2025-06-05 20:00:16 +08:00
parent 04ffc99c1a
commit a5880633a6
23 changed files with 428 additions and 29 deletions

View File

@@ -0,0 +1,3 @@
{
"uuid": "0f26c893-976a-43fb-b90e-51f65c5da90e"
}

View File

@@ -0,0 +1,55 @@
{
"version": "LAYAMATERIAL:04",
"props": {
"textures": [
{
"path": "res://bc6b3297-0b09-4ab3-ba5d-9a8249f4a98e",
"constructParams": [
128,
128,
1,
false,
false,
true
],
"propertyParams": {
"filterMode": 1,
"wrapModeU": 1,
"wrapModeV": 1,
"anisoLevel": 1
},
"name": "u_texture"
}
],
"type": "PARTICLESHURIKEN",
"renderQueue": 3000,
"materialRenderMode": 2,
"u_AlphaTestValue": 0.5,
"s_Cull": 2,
"s_Blend": 1,
"s_BlendSrc": 6,
"s_BlendDst": 7,
"s_BlendSrcRGB": 1,
"s_BlendDstRGB": 0,
"s_BlendSrcAlpha": 1,
"s_BlendDstAlpha": 0,
"s_DepthTest": 1,
"s_DepthWrite": false,
"u_TilingOffset": [
1,
1,
0,
0
],
"u_Tintcolor": [
1,
1,
1,
1
],
"defines": [
"DIFFUSEMAP",
"TINTCOLOR"
]
}
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "972bb0d4-6b6c-4abb-8af4-b37ee29641da"
}

View File

@@ -0,0 +1,55 @@
{
"version": "LAYAMATERIAL:04",
"props": {
"textures": [
{
"path": "res://da748b9e-ed0a-45d0-bf07-57c69aa0f65a",
"constructParams": [
232,
232,
1,
false,
false,
true
],
"propertyParams": {
"filterMode": 1,
"wrapModeU": 1,
"wrapModeV": 1,
"anisoLevel": 1
},
"name": "u_texture"
}
],
"type": "PARTICLESHURIKEN",
"renderQueue": 3000,
"materialRenderMode": 2,
"u_AlphaTestValue": 0.5,
"s_Cull": 2,
"s_Blend": 1,
"s_BlendSrc": 6,
"s_BlendDst": 7,
"s_BlendSrcRGB": 1,
"s_BlendDstRGB": 0,
"s_BlendSrcAlpha": 1,
"s_BlendDstAlpha": 0,
"s_DepthTest": 1,
"s_DepthWrite": false,
"u_TilingOffset": [
1,
1,
0,
0
],
"u_Tintcolor": [
0.5,
0.5,
0.5,
1
],
"defines": [
"DIFFUSEMAP",
"TINTCOLOR"
]
}
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "87437940-0279-4fa2-b9b4-eaf7adfbbc8f"
}

View File

@@ -0,0 +1,105 @@
{
"_$ver": 1,
"_$id": "hk7m93of",
"_$type": "Sprite3D",
"name": "Particle3D_0",
"_$child": [
{
"_$id": "t4efy2dz",
"_$type": "Sprite3D",
"name": "Particle3D",
"transform": {
"localRotation": {
"_$type": "Quaternion",
"x": -0.7071067811865475,
"w": 0.7071067811865476
}
},
"_$comp": [
{
"_$type": "ShurikenParticleRenderer",
"lightmapScaleOffset": {
"_$type": "Vector4"
},
"sharedMaterials": [
{
"_$uuid": "972bb0d4-6b6c-4abb-8af4-b37ee29641da",
"_$type": "Material"
}
],
"_particleSystem": {
"_isPlaying": true,
"duration": 1,
"startLifetimeConstant": 10,
"startSpeedConstant": 1,
"startSizeType": 2,
"startSizeConstant": 0.5,
"startSizeConstantMin": 1,
"startSizeConstantMax": 2,
"startSizeConstantSeparate": {
"_$type": "Vector3",
"x": 1,
"y": 1,
"z": 1
},
"startSizeConstantMinSeparate": {
"_$type": "Vector3"
},
"startSizeConstantMaxSeparate": {
"_$type": "Vector3",
"x": 1,
"y": 1,
"z": 1
},
"startRotationType": 2,
"threeDStartRotation": true,
"startRotationConstantSeparate": {
"_$type": "Vector3"
},
"startRotationConstantMinSeparate": {
"_$type": "Vector3",
"z": 180
},
"startRotationConstantMaxSeparate": {
"_$type": "Vector3",
"z": 180
},
"startColorConstant": {
"_$type": "Vector4",
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"startColorConstantMin": {
"_$type": "Vector4"
},
"startColorConstantMax": {
"_$type": "Vector4",
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"maxParticles": 100,
"randomSeed": {
"_$type": "Uint32Array",
"value": [
0
]
},
"emission": {
"emissionRate": 2
},
"shape": {
"_$type": "ConeShape",
"angleDEG": 0,
"radius": 5,
"length": 10
}
}
}
]
}
]
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "065a4525-af3c-4ec2-8a9a-d23940fb316a"
}

View File

@@ -0,0 +1,105 @@
{
"_$ver": 1,
"_$id": "7pd12x9m",
"_$type": "Sprite3D",
"name": "Particle3D_1",
"_$child": [
{
"_$id": "dcjedgpn",
"_$type": "Sprite3D",
"name": "Particle3D",
"transform": {
"localRotation": {
"_$type": "Quaternion",
"x": -0.7071067811865475,
"w": 0.7071067811865476
}
},
"_$comp": [
{
"_$type": "ShurikenParticleRenderer",
"lightmapScaleOffset": {
"_$type": "Vector4"
},
"sharedMaterials": [
{
"_$uuid": "87437940-0279-4fa2-b9b4-eaf7adfbbc8f",
"_$type": "Material"
}
],
"_particleSystem": {
"_isPlaying": true,
"duration": 1,
"startLifetimeConstant": 5,
"startSpeedConstant": 1,
"startSizeType": 2,
"startSizeConstant": 0.5,
"startSizeConstantMin": 1,
"startSizeConstantMax": 2,
"startSizeConstantSeparate": {
"_$type": "Vector3",
"x": 1,
"y": 1,
"z": 1
},
"startSizeConstantMinSeparate": {
"_$type": "Vector3"
},
"startSizeConstantMaxSeparate": {
"_$type": "Vector3",
"x": 1,
"y": 1,
"z": 1
},
"startRotationType": 2,
"threeDStartRotation": true,
"startRotationConstantSeparate": {
"_$type": "Vector3"
},
"startRotationConstantMinSeparate": {
"_$type": "Vector3",
"z": 180
},
"startRotationConstantMaxSeparate": {
"_$type": "Vector3",
"z": 180
},
"startColorConstant": {
"_$type": "Vector4",
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"startColorConstantMin": {
"_$type": "Vector4"
},
"startColorConstantMax": {
"_$type": "Vector4",
"x": 1,
"y": 1,
"z": 1,
"w": 1
},
"maxParticles": 100,
"randomSeed": {
"_$type": "Uint32Array",
"value": [
0
]
},
"emission": {
"emissionRate": 2
},
"shape": {
"_$type": "ConeShape",
"angleDEG": 0,
"radius": 2,
"length": 10
}
}
}
]
}
]
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "95371d68-d67d-4a76-b586-e77dc05187da"
}

View File

@@ -0,0 +1,5 @@
{
"width": 1024,
"height": 1024,
"colorFormat": 17
}

View File

@@ -0,0 +1,3 @@
{
"uuid": "c664507a-67fa-47cb-802f-dd7a41c0029c"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

View File

@@ -0,0 +1,6 @@
{
"uuid": "bc6b3297-0b09-4ab3-ba5d-9a8249f4a98e",
"importer": {
"textureType": 2
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -0,0 +1,6 @@
{
"uuid": "da748b9e-ed0a-45d0-bf07-57c69aa0f65a",
"importer": {
"textureType": 2
}
}