Skip to content

Commit e3d5b5e

Browse files
Changed the materials on the explosion effect to not draw in front of all geometry and to instead be soft particles that blend into the ground to fix the look of them clipping into the ground
1 parent 719d311 commit e3d5b5e

7 files changed

+350
-2
lines changed

Assets/Prefabs/Game/ImpTossedItemExplosion.prefab

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ PrefabInstance:
162162
propertyPath: playOnAwake
163163
value: 1
164164
objectReference: {fileID: 0}
165+
- target: {fileID: 9188933456858419562, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
166+
propertyPath: m_Materials.Array.data[0]
167+
value:
168+
objectReference: {fileID: 2100000, guid: acf7ec135b305884296735a4429270f7, type: 2}
165169
- target: {fileID: 9188933456874364122, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
166170
propertyPath: m_RootOrder
167171
value: 0
@@ -218,14 +222,26 @@ PrefabInstance:
218222
propertyPath: playOnAwake
219223
value: 1
220224
objectReference: {fileID: 0}
225+
- target: {fileID: 9188933457039593246, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
226+
propertyPath: m_Materials.Array.data[0]
227+
value:
228+
objectReference: {fileID: 2100000, guid: 639f4c8180d3ac046a0e0b8b5c3c20a9, type: 2}
221229
- target: {fileID: 9188933457051544072, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
222230
propertyPath: playOnAwake
223231
value: 1
224232
objectReference: {fileID: 0}
233+
- target: {fileID: 9188933457051544073, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
234+
propertyPath: m_Materials.Array.data[0]
235+
value:
236+
objectReference: {fileID: 2100000, guid: acf7ec135b305884296735a4429270f7, type: 2}
225237
- target: {fileID: 9188933457604141804, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
226238
propertyPath: playOnAwake
227239
value: 1
228240
objectReference: {fileID: 0}
241+
- target: {fileID: 9188933457604141805, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
242+
propertyPath: m_Materials.Array.data[0]
243+
value:
244+
objectReference: {fileID: 2100000, guid: 639f4c8180d3ac046a0e0b8b5c3c20a9, type: 2}
229245
- target: {fileID: 9188933457798338994, guid: 1584e7f6ab607ab468ee75b5534ddf7b, type: 3}
230246
propertyPath: playOnAwake
231247
value: 1
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!21 &2100000
4+
Material:
5+
serializedVersion: 8
6+
m_ObjectHideFlags: 0
7+
m_CorrespondingSourceObject: {fileID: 0}
8+
m_PrefabInstance: {fileID: 0}
9+
m_PrefabAsset: {fileID: 0}
10+
m_Name: FX_M_Glow_SoftParticleAlpha_02
11+
m_Shader: {fileID: -6465566751694194690, guid: a9ba79dc821093a4c9041bcede85096b, type: 3}
12+
m_ValidKeywords:
13+
- _SURFACE_TYPE_TRANSPARENT
14+
m_InvalidKeywords: []
15+
m_LightmapFlags: 4
16+
m_EnableInstancingVariants: 1
17+
m_DoubleSidedGI: 0
18+
m_CustomRenderQueue: 3050
19+
stringTagMap:
20+
RenderType: Transparent
21+
disabledShaderPasses:
22+
- DepthOnly
23+
- SHADOWCASTER
24+
m_SavedProperties:
25+
serializedVersion: 3
26+
m_TexEnvs:
27+
- Texture2D_18dd9c2b051049a8a28d6c1aa5822ea7:
28+
m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0}
29+
m_Scale: {x: 1, y: 1}
30+
m_Offset: {x: 0, y: 0}
31+
- _BaseMap:
32+
m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0}
33+
m_Scale: {x: 1, y: 1}
34+
m_Offset: {x: 0, y: 0}
35+
- _BumpMap:
36+
m_Texture: {fileID: 0}
37+
m_Scale: {x: 1, y: 1}
38+
m_Offset: {x: 0, y: 0}
39+
- _EmissionMap:
40+
m_Texture: {fileID: 0}
41+
m_Scale: {x: 1, y: 1}
42+
m_Offset: {x: 0, y: 0}
43+
- _MainTex:
44+
m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0}
45+
m_Scale: {x: 1, y: 1}
46+
m_Offset: {x: 0, y: 0}
47+
- _MainTexture:
48+
m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
51+
- _MetallicGlossMap:
52+
m_Texture: {fileID: 0}
53+
m_Scale: {x: 1, y: 1}
54+
m_Offset: {x: 0, y: 0}
55+
- _OcclusionMap:
56+
m_Texture: {fileID: 0}
57+
m_Scale: {x: 1, y: 1}
58+
m_Offset: {x: 0, y: 0}
59+
- _SpecGlossMap:
60+
m_Texture: {fileID: 0}
61+
m_Scale: {x: 1, y: 1}
62+
m_Offset: {x: 0, y: 0}
63+
- _Texture:
64+
m_Texture: {fileID: 10300, guid: 0000000000000000f000000000000000, type: 0}
65+
m_Scale: {x: 1, y: 1}
66+
m_Offset: {x: 0, y: 0}
67+
- _texcoord:
68+
m_Texture: {fileID: 0}
69+
m_Scale: {x: 1, y: 1}
70+
m_Offset: {x: 0, y: 0}
71+
- unity_Lightmaps:
72+
m_Texture: {fileID: 0}
73+
m_Scale: {x: 1, y: 1}
74+
m_Offset: {x: 0, y: 0}
75+
- unity_LightmapsInd:
76+
m_Texture: {fileID: 0}
77+
m_Scale: {x: 1, y: 1}
78+
m_Offset: {x: 0, y: 0}
79+
- unity_ShadowMasks:
80+
m_Texture: {fileID: 0}
81+
m_Scale: {x: 1, y: 1}
82+
m_Offset: {x: 0, y: 0}
83+
m_Ints: []
84+
m_Floats:
85+
- Boolean_f3c76e1f79d04ab0a9f91a5dd13e3822: 0
86+
- _AlphaClip: 0
87+
- _AlphaCutoff: 0.5
88+
- _Blend: 0
89+
- _BlendOp: 0
90+
- _BumpScale: 1
91+
- _CameraFadingEnabled: 0
92+
- _CameraFarFadeDistance: 0
93+
- _CameraNearFadeDistance: 5.03
94+
- _CastShadows: 0
95+
- _ColorMask: 41.28
96+
- _ColorMode: 1
97+
- _Cull: 2
98+
- _CullMode: 0
99+
- _Cutoff: 0.5
100+
- _Depth_Blend: 1
101+
- _DistortionBlend: 0.5
102+
- _DistortionEnabled: 0
103+
- _DistortionStrength: 1
104+
- _DistortionStrengthScaled: 0.1
105+
- _DstBlend: 10
106+
- _EmissionEnabled: 0
107+
- _EnvironmentReflections: 1
108+
- _FlipbookBlending: 0
109+
- _FlipbookMode: 0
110+
- _GlossMapScale: 0
111+
- _Glossiness: 0
112+
- _GlossyReflections: 0
113+
- _InvFade: 1
114+
- _LightingEnabled: 0
115+
- _Metallic: 0
116+
- _Mode: 0
117+
- _OcclusionStrength: 1
118+
- _QueueControl: 0
119+
- _QueueOffset: 50
120+
- _ReceiveShadows: 1
121+
- _SampleGI: 0
122+
- _Smoothness: 0.5
123+
- _SmoothnessTextureChannel: 0
124+
- _SoftParticlesEnabled: 0
125+
- _SoftParticlesFarFadeDistance: 1
126+
- _SoftParticlesNearFadeDistance: 0
127+
- _SpecularHighlights: 1
128+
- _SrcBlend: 5
129+
- _Stencil: 0
130+
- _StencilComp: 287.04
131+
- _StencilOp: 131.3
132+
- _StencilReadMask: 255
133+
- _StencilWriteMask: 255
134+
- _Surface: 1
135+
- _UseAlpha: 0
136+
- _UseSoftParticles: 1
137+
- _UseUIAlphaClip: 0
138+
- _Use_alpha: 0
139+
- _WorkflowMode: 1
140+
- _ZTest: 4
141+
- _ZWrite: 0
142+
- _ZWriteControl: 0
143+
- __dirty: 0
144+
m_Colors:
145+
- Color_acca830da4044b5fa948c859784be316: {r: 1.3041189, g: 1.3041189, b: 1.3041189, a: 1}
146+
- Vector4_1f7562654797436e96becd4b67df1223: {r: 1, g: 1, b: 0, a: 0}
147+
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
148+
- _BaseColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
149+
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
150+
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
151+
- _Color: {r: 1.3041189, g: 1.3041189, b: 1.3041189, a: 1}
152+
- _ColorAddSubDiff: {r: 1, g: 0, b: 0, a: 0}
153+
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
154+
- _MainTextureTilingOffset: {r: 1, g: 1, b: 0, a: 0}
155+
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
156+
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
157+
- _TintColor: {r: 0.638, g: 0.638, b: 0.638, a: 0.5}
158+
m_BuildTextureStacks: []
159+
--- !u!114 &8601509238882469189
160+
MonoBehaviour:
161+
m_ObjectHideFlags: 11
162+
m_CorrespondingSourceObject: {fileID: 0}
163+
m_PrefabInstance: {fileID: 0}
164+
m_PrefabAsset: {fileID: 0}
165+
m_GameObject: {fileID: 0}
166+
m_Enabled: 1
167+
m_EditorHideFlags: 0
168+
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
169+
m_Name:
170+
m_EditorClassIdentifier:
171+
version: 5

Assets/VFX/Materials/FX_M_Glow_SoftParticleAlpha_02.mat.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/VFX/Materials/FX_M_GroundClick.mat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Material:
1515
m_LightmapFlags: 4
1616
m_EnableInstancingVariants: 0
1717
m_DoubleSidedGI: 0
18-
m_CustomRenderQueue: -1
18+
m_CustomRenderQueue: 3000
1919
stringTagMap:
2020
RenderType: Transparent
2121
disabledShaderPasses:
@@ -150,6 +150,7 @@ Material:
150150
- _ColorMode: 3
151151
- _Cull: 2
152152
- _Cutoff: 0.123
153+
- _Depth_Blend: 0
153154
- _DetailNormalMapScale: 1
154155
- _DiffuseAmount: 0.2
155156
- _DistortionBlend: 0.5
@@ -195,6 +196,7 @@ Material:
195196
- _Tighten: 0.3
196197
- _UVSec: 0
197198
- _UseAlpha: 1
199+
- _UseSoftParticles: 0
198200
- _UseUIAlphaClip: 0
199201
- _ZTest: 4
200202
- _ZWrite: 0

Assets/VFX/Materials/FX_M_Smoke.mat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Material:
9090
- _CastShadows: 0
9191
- _Cull: 2
9292
- _Cutoff: 0.5
93+
- _Depth_Blend: 0
9394
- _DstBlend: 10
9495
- _EnvironmentReflections: 1
9596
- _GlossMapScale: 0
@@ -108,9 +109,10 @@ Material:
108109
- _Surface: 1
109110
- _Switch_Alpha: 1
110111
- _UseAlpha: 1
112+
- _UseSoftParticles: 0
111113
- _Use_alpha: 1
112114
- _WorkflowMode: 1
113-
- _ZTest: 8
115+
- _ZTest: 4
114116
- _ZWrite: 0
115117
- _ZWriteControl: 0
116118
- __dirty: 0

0 commit comments

Comments
 (0)