From a4fe7bbb07d55ec7893d4fef2e65c0d7bc6d6328 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sat, 12 Jul 2025 18:30:42 +0200 Subject: [PATCH] Add DamageFlash component for visual feedback on damage; implement flash effect with customizable duration and color --- Assets/Prefabs/Enemies/Basic Enemy.prefab | 19 +- Assets/Prefabs/Weapons/Pistol.prefab | 2 +- Assets/Scenes/main.meta | 8 + Assets/Scenes/main.unity | 82 +- .../Scenes/main/Global Volume Profile.asset | 109 ++ .../main/Global Volume Profile.asset.meta | 8 + Assets/Scripts/Systems/DamageFlash.cs | 64 + Assets/Scripts/Systems/DamageFlash.cs.meta | 3 + Assets/Shaders.meta | 8 + Assets/Shaders/HitFlash.shadergraph | 1129 +++++++++++++++++ Assets/Shaders/HitFlash.shadergraph.meta | 10 + Assets/Shaders/HitFlashMat.mat | 61 + Assets/Shaders/HitFlashMat.mat.meta | 8 + 13 files changed, 1506 insertions(+), 5 deletions(-) create mode 100644 Assets/Scenes/main.meta create mode 100644 Assets/Scenes/main/Global Volume Profile.asset create mode 100644 Assets/Scenes/main/Global Volume Profile.asset.meta create mode 100644 Assets/Scripts/Systems/DamageFlash.cs create mode 100644 Assets/Scripts/Systems/DamageFlash.cs.meta create mode 100644 Assets/Shaders.meta create mode 100644 Assets/Shaders/HitFlash.shadergraph create mode 100644 Assets/Shaders/HitFlash.shadergraph.meta create mode 100644 Assets/Shaders/HitFlashMat.mat create mode 100644 Assets/Shaders/HitFlashMat.mat.meta diff --git a/Assets/Prefabs/Enemies/Basic Enemy.prefab b/Assets/Prefabs/Enemies/Basic Enemy.prefab index 1b115c8..964b694 100644 --- a/Assets/Prefabs/Enemies/Basic Enemy.prefab +++ b/Assets/Prefabs/Enemies/Basic Enemy.prefab @@ -21,6 +21,7 @@ GameObject: - component: {fileID: 2964327480768693548} - component: {fileID: 435001957072118475} - component: {fileID: 1527323237162929931} + - component: {fileID: 3779661959168575914} m_Layer: 0 m_Name: Basic Enemy m_TagString: Enemy @@ -339,6 +340,22 @@ MonoBehaviour: character: {fileID: 3298396436480561959} aiPath: {fileID: 2964327480768693548} target: {fileID: 0} +--- !u!114 &3779661959168575914 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 204632724861940951} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 858b89cbe8774ee4a74182a9c4195c67, type: 3} + m_Name: + m_EditorClassIdentifier: + flashDuration: 0.1 + flashColor: {r: 1.6817929, g: 1.6817929, b: 1.6817929, a: 1} + health: {fileID: 9093693903318130491} + spriteRenderer: {fileID: 987872320002065258} --- !u!1 &3667932760953165253 GameObject: m_ObjectHideFlags: 0 @@ -394,7 +411,7 @@ SpriteRenderer: m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: - - {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2} + - {fileID: 2100000, guid: 0c6402377b097ca3992a420467f72056, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 diff --git a/Assets/Prefabs/Weapons/Pistol.prefab b/Assets/Prefabs/Weapons/Pistol.prefab index ad84063..e4d554f 100644 --- a/Assets/Prefabs/Weapons/Pistol.prefab +++ b/Assets/Prefabs/Weapons/Pistol.prefab @@ -165,7 +165,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: weaponStats: - damage: 1 + damage: 4 attackSpeed: 2 range: 0 damageType: 1 diff --git a/Assets/Scenes/main.meta b/Assets/Scenes/main.meta new file mode 100644 index 0000000..123a883 --- /dev/null +++ b/Assets/Scenes/main.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ce5ade8f24618d06abed8509b29338bb +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/main.unity b/Assets/Scenes/main.unity index 7eb9ce9..71969ec 100644 --- a/Assets/Scenes/main.unity +++ b/Assets/Scenes/main.unity @@ -465,7 +465,7 @@ MonoBehaviour: m_Bits: 1 m_VolumeTrigger: {fileID: 0} m_VolumeFrameworkUpdateModeOption: 2 - m_RenderPostProcessing: 0 + m_RenderPostProcessing: 1 m_Antialiasing: 0 m_AntialiasingQuality: 2 m_StopNaN: 0 @@ -786,6 +786,10 @@ PrefabInstance: propertyPath: m_Name value: strawberry objectReference: {fileID: 0} + - target: {fileID: 3626916397498700004, guid: 3456e0420235c3e7797d8a191c2de57f, type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: 0c6402377b097ca3992a420467f72056, type: 2} - target: {fileID: 7878350319992209165, guid: 3456e0420235c3e7797d8a191c2de57f, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -836,6 +840,11 @@ Transform: m_CorrespondingSourceObject: {fileID: 7878350319992209165, guid: 3456e0420235c3e7797d8a191c2de57f, type: 3} m_PrefabInstance: {fileID: 628985990} m_PrefabAsset: {fileID: 0} +--- !u!212 &628985992 stripped +SpriteRenderer: + m_CorrespondingSourceObject: {fileID: 3626916397498700004, guid: 3456e0420235c3e7797d8a191c2de57f, type: 3} + m_PrefabInstance: {fileID: 628985990} + m_PrefabAsset: {fileID: 0} --- !u!1 &640255470 GameObject: m_ObjectHideFlags: 0 @@ -6937,6 +6946,7 @@ GameObject: - component: {fileID: 1261447610} - component: {fileID: 1261447609} - component: {fileID: 1261447613} + - component: {fileID: 1261447614} m_Layer: 6 m_Name: Player m_TagString: Player @@ -7041,8 +7051,8 @@ MonoBehaviour: armor: 0 level: 1 experience: 0 - baseExperienceToLevelUp: 25 - damage: 49 + baseExperienceToLevelUp: 5 + damage: 1 rangedDamage: 1 meleeDamage: 1 attackRange: 16 @@ -7190,6 +7200,71 @@ MonoBehaviour: mainCamera: {fileID: 519420031} weapons: [] weaponsManager: {fileID: 1261447612} +--- !u!114 &1261447614 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1261447599} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 858b89cbe8774ee4a74182a9c4195c67, type: 3} + m_Name: + m_EditorClassIdentifier: + flashDuration: 0.1 + flashColor: {r: 1.6934906, g: 1.6934906, b: 1.6934906, a: 1} + health: {fileID: 1261447608} + spriteRenderer: {fileID: 628985992} +--- !u!1 &1265960066 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1265960068} + - component: {fileID: 1265960067} + m_Layer: 0 + m_Name: Global Volume + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1265960067 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1265960066} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IsGlobal: 1 + priority: 0 + blendDistance: 0 + weight: 1 + sharedProfile: {fileID: 11400000, guid: 6e3296081b34c0dce831316c320aa3b2, type: 2} +--- !u!4 &1265960068 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1265960066} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -9.939604, y: -1.4867522, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1300312975 GameObject: m_ObjectHideFlags: 0 @@ -8603,3 +8678,4 @@ SceneRoots: - {fileID: 1791967925} - {fileID: 1368041001} - {fileID: 1953393769} + - {fileID: 1265960068} diff --git a/Assets/Scenes/main/Global Volume Profile.asset b/Assets/Scenes/main/Global Volume Profile.asset new file mode 100644 index 0000000..2964914 --- /dev/null +++ b/Assets/Scenes/main/Global Volume Profile.asset @@ -0,0 +1,109 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-6216573411260604986 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0b2db86121404754db890f4c8dfe81b2, type: 3} + m_Name: Bloom + m_EditorClassIdentifier: + active: 1 + skipIterations: + m_OverrideState: 0 + m_Value: 1 + threshold: + m_OverrideState: 1 + m_Value: 1.5 + intensity: + m_OverrideState: 1 + m_Value: 10 + scatter: + m_OverrideState: 0 + m_Value: 0.7 + clamp: + m_OverrideState: 0 + m_Value: 65472 + tint: + m_OverrideState: 0 + m_Value: {r: 1, g: 1, b: 1, a: 1} + highQualityFiltering: + m_OverrideState: 0 + m_Value: 0 + downscale: + m_OverrideState: 0 + m_Value: 0 + maxIterations: + m_OverrideState: 0 + m_Value: 6 + dirtTexture: + m_OverrideState: 0 + m_Value: {fileID: 0} + dimension: 1 + dirtIntensity: + m_OverrideState: 0 + m_Value: 0 +--- !u!114 &-5693558520953604991 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 81180773991d8724ab7f2d216912b564, type: 3} + m_Name: ChromaticAberration + m_EditorClassIdentifier: + active: 0 + intensity: + m_OverrideState: 1 + m_Value: 0.382 +--- !u!114 &-107271883349870001 +MonoBehaviour: + m_ObjectHideFlags: 3 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 899c54efeace73346a0a16faa3afe726, type: 3} + m_Name: Vignette + m_EditorClassIdentifier: + active: 1 + color: + m_OverrideState: 1 + m_Value: {r: 0, g: 0, b: 0, a: 1} + center: + m_OverrideState: 1 + m_Value: {x: 0.5, y: 0.5} + intensity: + m_OverrideState: 1 + m_Value: 0.543 + smoothness: + m_OverrideState: 1 + m_Value: 0.18 + rounded: + m_OverrideState: 1 + m_Value: 0 +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3} + m_Name: Global Volume Profile + m_EditorClassIdentifier: + components: + - {fileID: -6216573411260604986} + - {fileID: -107271883349870001} + - {fileID: -5693558520953604991} diff --git a/Assets/Scenes/main/Global Volume Profile.asset.meta b/Assets/Scenes/main/Global Volume Profile.asset.meta new file mode 100644 index 0000000..501ef7a --- /dev/null +++ b/Assets/Scenes/main/Global Volume Profile.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6e3296081b34c0dce831316c320aa3b2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Systems/DamageFlash.cs b/Assets/Scripts/Systems/DamageFlash.cs new file mode 100644 index 0000000..dd9ee9f --- /dev/null +++ b/Assets/Scripts/Systems/DamageFlash.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections; +using KBCore.Refs; +using UnityEngine; + +namespace Systems +{ + public class DamageFlash : MonoBehaviour + { + private static readonly int MarkerFlashColor = Shader.PropertyToID("_FlashColor"); + private static readonly int MarkerFlashAmount = Shader.PropertyToID("_FlashAmount"); + private Material material; + private Coroutine damageFlashCoroutine; + + [SerializeField] private float flashDuration; + [ColorUsage(true, true)][SerializeField] private Color flashColor = Color.white; + [SerializeField, Self] private Health health; + [SerializeField, Child] private SpriteRenderer spriteRenderer; + + private void OnEnable() + { + health.OnTakeDamage += OnHit; + + Initialize(); + } + + private void OnDisable() + { + health.OnTakeDamage -= OnHit; + } + + private void Initialize() + { + if (!spriteRenderer) return; + + material = spriteRenderer.material; + } + + private void OnHit() + { + damageFlashCoroutine = StartCoroutine(Flash()); + } + + private IEnumerator Flash() + { + SetFlashColor(flashColor); + var elapsedTime = 0f; + + while (elapsedTime < flashDuration) + { + elapsedTime += Time.deltaTime; + var currentFlashAmount = Mathf.Lerp(1f, 0f, elapsedTime / flashDuration); + material.SetFloat(MarkerFlashAmount, currentFlashAmount); + yield return null; + } + } + + private void SetFlashColor(Color color) + { + if (!material) return; + material.SetColor(MarkerFlashColor, color); + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Systems/DamageFlash.cs.meta b/Assets/Scripts/Systems/DamageFlash.cs.meta new file mode 100644 index 0000000..0c1bc59 --- /dev/null +++ b/Assets/Scripts/Systems/DamageFlash.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 858b89cbe8774ee4a74182a9c4195c67 +timeCreated: 1752336999 \ No newline at end of file diff --git a/Assets/Shaders.meta b/Assets/Shaders.meta new file mode 100644 index 0000000..154089d --- /dev/null +++ b/Assets/Shaders.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c432d87e544cb3f229cf2fc6d831a62a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Shaders/HitFlash.shadergraph b/Assets/Shaders/HitFlash.shadergraph new file mode 100644 index 0000000..aa65a4f --- /dev/null +++ b/Assets/Shaders/HitFlash.shadergraph @@ -0,0 +1,1129 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "590538505ab04b7286051f6ac8370aa1", + "m_Properties": [ + { + "m_Id": "f3bfa908791046d5a7919a86f5e7feee" + }, + { + "m_Id": "98849ceb7d6a4a43aa79235e137d2672" + }, + { + "m_Id": "3e54a522652d446a8b9932d15603f209" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "22c1ea73569248c188f8aaea86b10457" + } + ], + "m_Nodes": [ + { + "m_Id": "110a908e09374b17808356da0b044812" + }, + { + "m_Id": "40befd67ce66492baa6979fa7d3a8569" + }, + { + "m_Id": "4c3768769c4d426b94798c94f3f88b13" + }, + { + "m_Id": "06cbcd1ea75c456fa162ff9a45b20746" + }, + { + "m_Id": "ca43c68e86c04cdfa4d493a97af5b3af" + }, + { + "m_Id": "2d3635e42b9b45dd9f810cfbca384a04" + }, + { + "m_Id": "0b33920121a440cb899c5e87c13b8b65" + }, + { + "m_Id": "1f459ea585734ddd94b5e8384745bcd9" + }, + { + "m_Id": "448ab484840b4d23a8a29c66f2da2e8a" + }, + { + "m_Id": "a8530e1784cf43f08f81fa4f146bb287" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b33920121a440cb899c5e87c13b8b65" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1f459ea585734ddd94b5e8384745bcd9" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b33920121a440cb899c5e87c13b8b65" + }, + "m_SlotId": 7 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ca43c68e86c04cdfa4d493a97af5b3af" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1f459ea585734ddd94b5e8384745bcd9" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "06cbcd1ea75c456fa162ff9a45b20746" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2d3635e42b9b45dd9f810cfbca384a04" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0b33920121a440cb899c5e87c13b8b65" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "448ab484840b4d23a8a29c66f2da2e8a" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1f459ea585734ddd94b5e8384745bcd9" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a8530e1784cf43f08f81fa4f146bb287" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1f459ea585734ddd94b5e8384745bcd9" + }, + "m_SlotId": 3 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "110a908e09374b17808356da0b044812" + }, + { + "m_Id": "40befd67ce66492baa6979fa7d3a8569" + }, + { + "m_Id": "4c3768769c4d426b94798c94f3f88b13" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "06cbcd1ea75c456fa162ff9a45b20746" + }, + { + "m_Id": "ca43c68e86c04cdfa4d493a97af5b3af" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 1, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "09478b1b6cb7420c9960f2ba07f9ce30" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "000ea8ef503847af86fc0f956b6a7015", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot", + "m_ObjectId": "02c94c44cca843fd95243f3045e8829d", + "m_Id": 0, + "m_DisplayName": "_MainTex", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "06cbcd1ea75c456fa162ff9a45b20746", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a19e12c8b628496fb6b07ad29acccce3" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "073fbc6d3acc40be973034acda1bde35", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "09478b1b6cb7420c9960f2ba07f9ce30", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "cf836874892f4b46b61821683cbe8897" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 0, + "m_ZTestMode": 4, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "0b33920121a440cb899c5e87c13b8b65", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1173.9998779296875, + "y": -27.999996185302736, + "width": 207.99993896484376, + "height": 432.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "aa4f822739a64823a90f6b5664330b73" + }, + { + "m_Id": "3e41ab3aa47e45348c6d327e010b7e72" + }, + { + "m_Id": "43fd0a6fc6674af1aa4dd797be71b1e1" + }, + { + "m_Id": "c1258e837c23404a900cca0442a4af6a" + }, + { + "m_Id": "e4e08105cb09448b841a5deb3e4756fe" + }, + { + "m_Id": "cf0db123d0ae467a9e6331adfc6a4ea9" + }, + { + "m_Id": "38cbaeb7e4ef40dab5ba30cf19efc4c7" + }, + { + "m_Id": "c9201a34a01a46d790b7ab9d2e131b8d" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_TextureType": 0, + "m_NormalMapSpace": 0, + "m_EnableGlobalMipBias": true, + "m_MipSamplingMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "110a908e09374b17808356da0b044812", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "073fbc6d3acc40be973034acda1bde35" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "11b264958512444b9ce6557c8a694ce8", + "m_Id": 1, + "m_DisplayName": "Blend", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Blend", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlendNode", + "m_ObjectId": "1f459ea585734ddd94b5e8384745bcd9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Blend", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -569.9999389648438, + "y": -27.99998664855957, + "width": 207.99996948242188, + "height": 360.0 + } + }, + "m_Slots": [ + { + "m_Id": "bc45585b93f64eadbce976fcceb7c054" + }, + { + "m_Id": "11b264958512444b9ce6557c8a694ce8" + }, + { + "m_Id": "e2d90af49801462590091fd0b240e7b8" + }, + { + "m_Id": "fc9eb86eeb5344fd9f37e5bb79dd9491" + } + ], + "synonyms": [ + "burn", + "darken", + "difference", + "dodge", + "divide", + "exclusion", + "hard light", + "hard mix", + "linear burn", + "linear dodge", + "linear light", + "multiply", + "negate", + "overlay", + "pin light", + "screen", + "soft light", + "subtract", + "vivid light", + "overwrite" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_BlendMode": 21 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "22c1ea73569248c188f8aaea86b10457", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "f3bfa908791046d5a7919a86f5e7feee" + }, + { + "m_Id": "98849ceb7d6a4a43aa79235e137d2672" + }, + { + "m_Id": "3e54a522652d446a8b9932d15603f209" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "2d3635e42b9b45dd9f810cfbca384a04", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1341.9998779296875, + "y": -12.000003814697266, + "width": 133.0, + "height": 33.99999237060547 + } + }, + "m_Slots": [ + { + "m_Id": "02c94c44cca843fd95243f3045e8829d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "f3bfa908791046d5a7919a86f5e7feee" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "34c50b7921f54b86b0c2254cd7e3b715", + "m_Id": 0, + "m_DisplayName": "FlashColor", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "38cbaeb7e4ef40dab5ba30cf19efc4c7", + "m_Id": 2, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3bf6daefa69e4aafbcdb33f943dfc1ca", + "m_Id": 0, + "m_DisplayName": "FlashAmount", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "3e41ab3aa47e45348c6d327e010b7e72", + "m_Id": 4, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "3e54a522652d446a8b9932d15603f209", + "m_Guid": { + "m_GuidSerialized": "00a04f6a-926b-4648-82c7-604cc0ea2bb5" + }, + "m_Name": "FlashAmount", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "FlashAmount", + "m_DefaultReferenceName": "_FlashAmount", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 1.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "40befd67ce66492baa6979fa7d3a8569", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "851f3387fee44ba6b8dd3cf069aef4eb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "43fd0a6fc6674af1aa4dd797be71b1e1", + "m_Id": 5, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "448ab484840b4d23a8a29c66f2da2e8a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -794.9999389648438, + "y": 38.000003814697269, + "width": 133.0, + "height": 33.999996185302737 + } + }, + "m_Slots": [ + { + "m_Id": "34c50b7921f54b86b0c2254cd7e3b715" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "98849ceb7d6a4a43aa79235e137d2672" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "4c3768769c4d426b94798c94f3f88b13", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "000ea8ef503847af86fc0f956b6a7015" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "7d68c075e7834e0ba9b4b47a0b0c6b88", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "851f3387fee44ba6b8dd3cf069aef4eb", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "98849ceb7d6a4a43aa79235e137d2672", + "m_Guid": { + "m_GuidSerialized": "85f25d00-c9a8-4512-b78a-608119d6ef43" + }, + "m_Name": "FlashColor", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "FlashColor", + "m_DefaultReferenceName": "_FlashColor", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 1.0, + "g": 1.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 1 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "a19e12c8b628496fb6b07ad29acccce3", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "a8530e1784cf43f08f81fa4f146bb287", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -804.9999389648438, + "y": 85.99999237060547, + "width": 143.0, + "height": 34.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "3bf6daefa69e4aafbcdb33f943dfc1ca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "3e54a522652d446a8b9932d15603f209" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "aa4f822739a64823a90f6b5664330b73", + "m_Id": 0, + "m_DisplayName": "RGBA", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "RGBA", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "bc45585b93f64eadbce976fcceb7c054", + "m_Id": 0, + "m_DisplayName": "Base", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Base", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c1258e837c23404a900cca0442a4af6a", + "m_Id": 6, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SamplerStateMaterialSlot", + "m_ObjectId": "c9201a34a01a46d790b7ab9d2e131b8d", + "m_Id": 3, + "m_DisplayName": "Sampler", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Sampler", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "ca43c68e86c04cdfa4d493a97af5b3af", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "7d68c075e7834e0ba9b4b47a0b0c6b88" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "cf0db123d0ae467a9e6331adfc6a4ea9", + "m_Id": 1, + "m_DisplayName": "Texture", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Texture", + "m_StageCapability": 3, + "m_BareResource": false, + "m_Texture": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalSpriteUnlitSubTarget", + "m_ObjectId": "cf836874892f4b46b61821683cbe8897" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e2d90af49801462590091fd0b240e7b8", + "m_Id": 3, + "m_DisplayName": "Opacity", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Opacity", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e4e08105cb09448b841a5deb3e4756fe", + "m_Id": 7, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "f3bfa908791046d5a7919a86f5e7feee", + "m_Guid": { + "m_GuidSerialized": "2e9444e8-90f3-453e-a99a-a5b8e8393cf3" + }, + "m_Name": "_MainTex", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "_MainTex", + "m_DefaultReferenceName": "_MainTex", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "m_SerializedTexture": "", + "m_Guid": "" + }, + "isMainTexture": false, + "useTilingAndOffset": false, + "useTexelSize": true, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "fc9eb86eeb5344fd9f37e5bb79dd9491", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + diff --git a/Assets/Shaders/HitFlash.shadergraph.meta b/Assets/Shaders/HitFlash.shadergraph.meta new file mode 100644 index 0000000..80cc0e5 --- /dev/null +++ b/Assets/Shaders/HitFlash.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 8571b09ed78ce48c6b5b2e588909ffdb +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/Shaders/HitFlashMat.mat b/Assets/Shaders/HitFlashMat.mat new file mode 100644 index 0000000..349ff55 --- /dev/null +++ b/Assets/Shaders/HitFlashMat.mat @@ -0,0 +1,61 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: HitFlashMat + m_Shader: {fileID: -6465566751694194690, guid: 8571b09ed78ce48c6b5b2e588909ffdb, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _FlashAmount: 0 + m_Colors: + - _FlashColor: {r: 2, g: 2, b: 2, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &8597859836182365986 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 10 diff --git a/Assets/Shaders/HitFlashMat.mat.meta b/Assets/Shaders/HitFlashMat.mat.meta new file mode 100644 index 0000000..78fede0 --- /dev/null +++ b/Assets/Shaders/HitFlashMat.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0c6402377b097ca3992a420467f72056 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: