diff --git a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/剑背狼/剑背狼/剑背狼_0_skin.mat b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/剑背狼/剑背狼/剑背狼_0_skin.mat index 2110fc4892..9fe8574935 100644 --- a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/剑背狼/剑背狼/剑背狼_0_skin.mat +++ b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/剑背狼/剑背狼/剑背狼_0_skin.mat @@ -8,18 +8,16 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: "\u5251\u80CC\u72FC_0_skin" - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: -6465566751694194690, guid: d26dc91fe77d59a40968b97beab44055, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _ALPHATEST_ON + m_ValidKeywords: [] m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 - m_CustomRenderQueue: 2450 - stringTagMap: - RenderType: TransparentCutout + m_CustomRenderQueue: -1 + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -85,7 +83,9 @@ Material: m_Ints: [] m_Floats: - _AddPrecomputedVelocity: 0 + - _Alpha: 1 - _AlphaClip: 1 + - _AlphaThreshold: 0.005 - _AlphaToMask: 1 - _Blend: 0 - _BlendModePreserveSpecular: 1 @@ -105,6 +105,7 @@ Material: - _Metallic: 0 - _OcclusionStrength: 1 - _Parallax: 0.005 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 - _Smoothness: 0.5 diff --git a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/小星星/小星星/小星星_0_skin.mat b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/小星星/小星星/小星星_0_skin.mat index fb96d4dffa..34ea84bb27 100644 --- a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/小星星/小星星/小星星_0_skin.mat +++ b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/2014/小星星/小星星/小星星_0_skin.mat @@ -8,24 +8,18 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: "\u5C0F\u661F\u661F_0_skin" - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: -6465566751694194690, guid: d26dc91fe77d59a40968b97beab44055, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _ALPHAPREMULTIPLY_ON - - _ALPHATEST_ON - - _SURFACE_TYPE_TRANSPARENT + m_ValidKeywords: [] m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 - m_CustomRenderQueue: 3000 - stringTagMap: - RenderType: Transparent + m_CustomRenderQueue: -1 + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS - - DepthOnly - - SHADOWCASTER m_LockedProperties: m_SavedProperties: serializedVersion: 3 @@ -89,7 +83,9 @@ Material: m_Ints: [] m_Floats: - _AddPrecomputedVelocity: 0 + - _Alpha: 1 - _AlphaClip: 1 + - _AlphaThreshold: 0 - _AlphaToMask: 0 - _Blend: 0 - _BlendModePreserveSpecular: 1 @@ -109,6 +105,7 @@ Material: - _Metallic: 0 - _OcclusionStrength: 1 - _Parallax: 0.005 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 - _Smoothness: 0.5 diff --git a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/38饲养兽/兔幼年/兔幼年/兔幼年_0_skin.mat b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/38饲养兽/兔幼年/兔幼年/兔幼年_0_skin.mat index 9ca13222c1..b56b1d2fce 100644 --- a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/38饲养兽/兔幼年/兔幼年/兔幼年_0_skin.mat +++ b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/38饲养兽/兔幼年/兔幼年/兔幼年_0_skin.mat @@ -8,18 +8,16 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: "\u5154\u5E7C\u5E74_0_skin" - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: -6465566751694194690, guid: d26dc91fe77d59a40968b97beab44055, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _ALPHATEST_ON + m_ValidKeywords: [] m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 - m_CustomRenderQueue: 2450 - stringTagMap: - RenderType: TransparentCutout + m_CustomRenderQueue: -1 + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -85,15 +83,17 @@ Material: m_Ints: [] m_Floats: - _AddPrecomputedVelocity: 0 - - _AlphaClip: 1 - - _AlphaToMask: 1 + - _Alpha: 1 + - _AlphaClip: 0 + - _AlphaThreshold: 0 + - _AlphaToMask: 0 - _Blend: 0 - _BlendModePreserveSpecular: 1 - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 - _Cull: 2 - - _Cutoff: 0.001 + - _Cutoff: 0 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 @@ -105,8 +105,9 @@ Material: - _Metallic: 0 - _OcclusionStrength: 1 - _Parallax: 0.005 + - _QueueControl: 0 - _QueueOffset: 0 - - _ReceiveShadows: 1 + - _ReceiveShadows: 0 - _Smoothness: 0.5 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 diff --git a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/野兽/狼/狼/狼_0_skin.mat b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/野兽/狼/狼/狼_0_skin.mat index f09f40ae0c..a9abd49a3f 100644 --- a/Assets/ModelRenderer/Art/Models/models/npcs/怪物/野兽/狼/狼/狼_0_skin.mat +++ b/Assets/ModelRenderer/Art/Models/models/npcs/怪物/野兽/狼/狼/狼_0_skin.mat @@ -21,18 +21,16 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: "\u72FC_0_skin" - m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Shader: {fileID: -6465566751694194690, guid: d26dc91fe77d59a40968b97beab44055, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 - m_ValidKeywords: - - _ALPHATEST_ON + m_ValidKeywords: [] m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 - m_CustomRenderQueue: 2450 - stringTagMap: - RenderType: TransparentCutout + m_CustomRenderQueue: -1 + stringTagMap: {} disabledShaderPasses: - MOTIONVECTORS m_LockedProperties: @@ -98,7 +96,9 @@ Material: m_Ints: [] m_Floats: - _AddPrecomputedVelocity: 0 + - _Alpha: 1 - _AlphaClip: 1 + - _AlphaThreshold: 0 - _AlphaToMask: 1 - _Blend: 0 - _BlendModePreserveSpecular: 1 @@ -118,6 +118,7 @@ Material: - _Metallic: 0 - _OcclusionStrength: 1 - _Parallax: 0.005 + - _QueueControl: 0 - _QueueOffset: 0 - _ReceiveShadows: 1 - _Smoothness: 0.5 diff --git a/Assets/ModelRenderer/Art/Shaders/Shader Graphs_SimpleLitShader.mat b/Assets/ModelRenderer/Art/Shaders/Shader Graphs_SimpleLitShader.mat new file mode 100644 index 0000000000..a1ebc54368 --- /dev/null +++ b/Assets/ModelRenderer/Art/Shaders/Shader Graphs_SimpleLitShader.mat @@ -0,0 +1,63 @@ +%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: Shader Graphs_SimpleLitShader + m_Shader: {fileID: -6465566751694194690, guid: d26dc91fe77d59a40968b97beab44055, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 2 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _Albedo: + 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: + - _Alpha: 0 + - _QueueControl: 0 + - _QueueOffset: 0 + m_Colors: [] + m_BuildTextureStacks: [] + m_AllowLocking: 1 +--- !u!114 &2236772491388985537 +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/ModelRenderer/Art/Shaders/Shader Graphs_SimpleLitShader.mat.meta b/Assets/ModelRenderer/Art/Shaders/Shader Graphs_SimpleLitShader.mat.meta new file mode 100644 index 0000000000..ce9870879f --- /dev/null +++ b/Assets/ModelRenderer/Art/Shaders/Shader Graphs_SimpleLitShader.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7e4ab6931a4e19645a71bdfa4b4a6d69 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ModelRenderer/Art/Shaders/SimpleLitShader.shadergraph b/Assets/ModelRenderer/Art/Shaders/SimpleLitShader.shadergraph new file mode 100644 index 0000000000..3a7732b70b --- /dev/null +++ b/Assets/ModelRenderer/Art/Shaders/SimpleLitShader.shadergraph @@ -0,0 +1,1505 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "4f9cd13c16c24ba79667a5c72990e7cd", + "m_Properties": [ + { + "m_Id": "9e314827c27a493bac7a83b3349f66be" + }, + { + "m_Id": "704cfeb19be74965b70ca6ae7afa5f97" + }, + { + "m_Id": "2d23b56840934449bdff72af8cca1747" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "4f13110db6cd43fa84966fc965a70666" + } + ], + "m_Nodes": [ + { + "m_Id": "60719fc41dcb4ee98de93626d1169b0e" + }, + { + "m_Id": "7b9844077af44a8a9e599984b305b0c7" + }, + { + "m_Id": "5e88ddf7a6064f198ce36144d74634ed" + }, + { + "m_Id": "d6f6759d03384c76b7c990d795abb8ab" + }, + { + "m_Id": "7b56f8c6be2c4a0cbaac5b2a78268fc9" + }, + { + "m_Id": "d16e0ceb2c17435cbbc98607655b8956" + }, + { + "m_Id": "092e8235fd42476084eb6cf3c86078ba" + }, + { + "m_Id": "330e6051907d408aaf6f4b11c82fac99" + }, + { + "m_Id": "f80e388fbbaf413aa4bd4db4d220161e" + }, + { + "m_Id": "902f012860534c129e92891d8c673e0e" + }, + { + "m_Id": "12d7074fd8864df8bc85f4c63e51d901" + }, + { + "m_Id": "658ccb60aa5747f4a2a33f5a00693d1b" + }, + { + "m_Id": "dee1a5ca60ff4c309f2743e9b19f6e73" + }, + { + "m_Id": "2b3dbfc1e3d74ce8b7ad20e3c5dbccf1" + }, + { + "m_Id": "836cdb0d81db4b31bb6f0b0c127c4121" + }, + { + "m_Id": "33aa5de2a3e9482ea9b42db614b94cc6" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "12d7074fd8864df8bc85f4c63e51d901" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d6f6759d03384c76b7c990d795abb8ab" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "12d7074fd8864df8bc85f4c63e51d901" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "836cdb0d81db4b31bb6f0b0c127c4121" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "2b3dbfc1e3d74ce8b7ad20e3c5dbccf1" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "658ccb60aa5747f4a2a33f5a00693d1b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "33aa5de2a3e9482ea9b42db614b94cc6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "836cdb0d81db4b31bb6f0b0c127c4121" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "836cdb0d81db4b31bb6f0b0c127c4121" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2b3dbfc1e3d74ce8b7ad20e3c5dbccf1" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "902f012860534c129e92891d8c673e0e" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "12d7074fd8864df8bc85f4c63e51d901" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "dee1a5ca60ff4c309f2743e9b19f6e73" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "2b3dbfc1e3d74ce8b7ad20e3c5dbccf1" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [ + { + "m_Id": "60719fc41dcb4ee98de93626d1169b0e" + }, + { + "m_Id": "7b9844077af44a8a9e599984b305b0c7" + }, + { + "m_Id": "5e88ddf7a6064f198ce36144d74634ed" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "d6f6759d03384c76b7c990d795abb8ab" + }, + { + "m_Id": "7b56f8c6be2c4a0cbaac5b2a78268fc9" + }, + { + "m_Id": "d16e0ceb2c17435cbbc98607655b8956" + }, + { + "m_Id": "092e8235fd42476084eb6cf3c86078ba" + }, + { + "m_Id": "330e6051907d408aaf6f4b11c82fac99" + }, + { + "m_Id": "f80e388fbbaf413aa4bd4db4d220161e" + }, + { + "m_Id": "658ccb60aa5747f4a2a33f5a00693d1b" + } + ] + }, + "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": "2fe3ac7b33c747f792ff08806071ec2e" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "092e8235fd42476084eb6cf3c86078ba", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Smoothness", + "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": "cfe8f46c30044550990a8709641cddbc" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Smoothness" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SampleTexture2DNode", + "m_ObjectId": "12d7074fd8864df8bc85f4c63e51d901", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sample Texture 2D", + "m_DrawState": { + "m_Expanded": false, + "m_Position": { + "serializedVersion": "2", + "x": -555.0, + "y": 20.0, + "width": 183.0, + "height": 249.0 + } + }, + "m_Slots": [ + { + "m_Id": "cc4817c7df154e12a5deb509cb633f6a" + }, + { + "m_Id": "a6becb6038c243a49a8ccd7e7e066db2" + }, + { + "m_Id": "42f19e2827904a1793668d3e2349d02f" + }, + { + "m_Id": "b4048a38fb3b451d94501c9cb5c0e758" + }, + { + "m_Id": "1d110102d5b34808a72d2649c582a5b5" + }, + { + "m_Id": "adecb607bd6e42a5a367e9233d49074d" + }, + { + "m_Id": "986c7fd6f9b648138933ac096e02164e" + }, + { + "m_Id": "bc9c404b90e5440391f2a3bb631a7b2e" + } + ], + "synonyms": [ + "tex2d" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "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.Vector1MaterialSlot", + "m_ObjectId": "1d110102d5b34808a72d2649c582a5b5", + "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.TangentMaterialSlot", + "m_ObjectId": "271c85aeb993492abc181b59d985fecf", + "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.BranchNode", + "m_ObjectId": "2b3dbfc1e3d74ce8b7ad20e3c5dbccf1", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Branch", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -268.0, + "y": 375.0, + "width": 170.0, + "height": 142.0 + } + }, + "m_Slots": [ + { + "m_Id": "8ccbfc7b17784b9a8b80d8f49ddf4877" + }, + { + "m_Id": "d1ab1e412c1143d589c19bd14daf0520" + }, + { + "m_Id": "72eea05c38c7402a8ef1fa7bdfb55736" + }, + { + "m_Id": "a8cc3e5ae5804fca9fd447d3bffe50a4" + } + ], + "synonyms": [ + "switch", + "if", + "else" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "2d23b56840934449bdff72af8cca1747", + "m_Guid": { + "m_GuidSerialized": "f01ae864-3ed3-4c37-858f-bfc6b494b564" + }, + "m_Name": "AlphaThreshold", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "AlphaThreshold", + "m_DefaultReferenceName": "_AlphaThreshold", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "2fe3ac7b33c747f792ff08806071ec2e", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "6b0ee4e0d9ff4bd9bb066f4b3550ccdb" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 4, + "m_ZWriteControl": 1, + "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.BlockNode", + "m_ObjectId": "330e6051907d408aaf6f4b11c82fac99", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Emission", + "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": "c6c4457b8a2f42c987555fc1e4a4f0f0" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Emission" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "33aa5de2a3e9482ea9b42db614b94cc6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -818.0, + "y": 500.0, + "width": 157.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "8fa4f13293f44d0280302d1419d51127" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2d23b56840934449bdff72af8cca1747" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "361c69436f8a4a1ebb4de1b3213eea5b", + "m_Id": 0, + "m_DisplayName": "Ambient Occlusion", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Occlusion", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "42f19e2827904a1793668d3e2349d02f", + "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.CategoryData", + "m_ObjectId": "4f13110db6cd43fa84966fc965a70666", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "9e314827c27a493bac7a83b3349f66be" + }, + { + "m_Id": "704cfeb19be74965b70ca6ae7afa5f97" + }, + { + "m_Id": "2d23b56840934449bdff72af8cca1747" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "5074cf52204c44e29e5f9d9d3e1bdec1", + "m_Id": 0, + "m_DisplayName": "Normal (Tangent Space)", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "NormalTS", + "m_StageCapability": 2, + "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": 3 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "5e88ddf7a6064f198ce36144d74634ed", + "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": "271c85aeb993492abc181b59d985fecf" + } + ], + "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.BlockNode", + "m_ObjectId": "60719fc41dcb4ee98de93626d1169b0e", + "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": "c5a7349e3235446080f499df6780d0ea" + } + ], + "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.BlockNode", + "m_ObjectId": "658ccb60aa5747f4a2a33f5a00693d1b", + "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": "990633079ba04ca0a22facc8fe702eca" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalLitSubTarget", + "m_ObjectId": "6b0ee4e0d9ff4bd9bb066f4b3550ccdb", + "m_WorkflowMode": 1, + "m_NormalDropOffSpace": 0, + "m_ClearCoat": false, + "m_BlendModePreserveSpecular": false +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "704cfeb19be74965b70ca6ae7afa5f97", + "m_Guid": { + "m_GuidSerialized": "d95517e1-7c7c-4466-b33c-54b844def394" + }, + "m_Name": "Alpha", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Alpha", + "m_DefaultReferenceName": "_Alpha", + "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": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "72eea05c38c7402a8ef1fa7bdfb55736", + "m_Id": 2, + "m_DisplayName": "False", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "False", + "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.BooleanMaterialSlot", + "m_ObjectId": "7a3d068085174cac86769cce6d7ec08d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7b56f8c6be2c4a0cbaac5b2a78268fc9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.NormalTS", + "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": "5074cf52204c44e29e5f9d9d3e1bdec1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.NormalTS" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "7b9844077af44a8a9e599984b305b0c7", + "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": "ca9e89de62fe445da147cb77a98c7e13" + } + ], + "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.Texture2DMaterialSlot", + "m_ObjectId": "81e3aec524ec40f3b06e28ad4c8af8dd", + "m_Id": 0, + "m_DisplayName": "MainTexture", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_BareResource": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ComparisonNode", + "m_ObjectId": "836cdb0d81db4b31bb6f0b0c127c4121", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Comparison", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -555.0, + "y": 288.0, + "width": 145.0, + "height": 135.0 + } + }, + "m_Slots": [ + { + "m_Id": "ee36724914fe4744a127c4802cb832ce" + }, + { + "m_Id": "f50ce7145c5b41dca4f0981bb424a6a3" + }, + { + "m_Id": "7a3d068085174cac86769cce6d7ec08d" + } + ], + "synonyms": [ + "equal", + "greater than", + "less than" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_ComparisonType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", + "m_ObjectId": "8ccbfc7b17784b9a8b80d8f49ddf4877", + "m_Id": 0, + "m_DisplayName": "Predicate", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Predicate", + "m_StageCapability": 3, + "m_Value": false, + "m_DefaultValue": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8fa4f13293f44d0280302d1419d51127", + "m_Id": 0, + "m_DisplayName": "AlphaThreshold", + "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.PropertyNode", + "m_ObjectId": "902f012860534c129e92891d8c673e0e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -818.0, + "y": 29.0, + "width": 121.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "81e3aec524ec40f3b06e28ad4c8af8dd" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "9e314827c27a493bac7a83b3349f66be" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "986c7fd6f9b648138933ac096e02164e", + "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": "990633079ba04ca0a22facc8fe702eca", + "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.Vector1MaterialSlot", + "m_ObjectId": "9b0a988f7c2f42c9a332078ac52fdd52", + "m_Id": 0, + "m_DisplayName": "Metallic", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Metallic", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty", + "m_ObjectId": "9e314827c27a493bac7a83b3349f66be", + "m_Guid": { + "m_GuidSerialized": "d54507eb-cbdd-4a9a-b28f-fd2bdb6fe128" + }, + "m_Name": "MainTexture", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MainTexture", + "m_DefaultReferenceName": "_MainTexture", + "m_OverrideReferenceName": "_BaseMap", + "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, + "m_Modifiable": true, + "m_DefaultType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a6becb6038c243a49a8ccd7e7e066db2", + "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": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a8cc3e5ae5804fca9fd447d3bffe50a4", + "m_Id": 3, + "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 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot", + "m_ObjectId": "adecb607bd6e42a5a367e9233d49074d", + "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.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b4048a38fb3b451d94501c9cb5c0e758", + "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": "bc9c404b90e5440391f2a3bb631a7b2e", + "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.Vector1MaterialSlot", + "m_ObjectId": "c44ce179c93c4cf885f2c0a19cfe66a1", + "m_Id": 0, + "m_DisplayName": "Alpha", + "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.PositionMaterialSlot", + "m_ObjectId": "c5a7349e3235446080f499df6780d0ea", + "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": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "c6c4457b8a2f42c987555fc1e4a4f0f0", + "m_Id": 0, + "m_DisplayName": "Emission", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Emission", + "m_StageCapability": 2, + "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_ColorMode": 1, + "m_DefaultColor": { + "r": 0.0, + "g": 0.0, + "b": 0.0, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "ca9e89de62fe445da147cb77a98c7e13", + "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": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "cc4817c7df154e12a5deb509cb633f6a", + "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.Vector1MaterialSlot", + "m_ObjectId": "cfe8f46c30044550990a8709641cddbc", + "m_Id": 0, + "m_DisplayName": "Smoothness", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Smoothness", + "m_StageCapability": 2, + "m_Value": 0.10000000149011612, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "d16e0ceb2c17435cbbc98607655b8956", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Metallic", + "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": "9b0a988f7c2f42c9a332078ac52fdd52" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Metallic" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "d1ab1e412c1143d589c19bd14daf0520", + "m_Id": 1, + "m_DisplayName": "True", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "True", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "d6b32a8020d443e3a61442021e319641", + "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.BlockNode", + "m_ObjectId": "d6f6759d03384c76b7c990d795abb8ab", + "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": "d6b32a8020d443e3a61442021e319641" + } + ], + "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.PropertyNode", + "m_ObjectId": "dee1a5ca60ff4c309f2743e9b19f6e73", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -555.0, + "y": 434.0, + "width": 105.0, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "c44ce179c93c4cf885f2c0a19cfe66a1" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "704cfeb19be74965b70ca6ae7afa5f97" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ee36724914fe4744a127c4802cb832ce", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f50ce7145c5b41dca4f0981bb424a6a3", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "f80e388fbbaf413aa4bd4db4d220161e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Occlusion", + "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": "361c69436f8a4a1ebb4de1b3213eea5b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Occlusion" +} + diff --git a/Assets/ModelRenderer/Art/Shaders/SimpleLitShader.shadergraph.meta b/Assets/ModelRenderer/Art/Shaders/SimpleLitShader.shadergraph.meta new file mode 100644 index 0000000000..6d8a4353f7 --- /dev/null +++ b/Assets/ModelRenderer/Art/Shaders/SimpleLitShader.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: d26dc91fe77d59a40968b97beab44055 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/PerfectWorld/Scripts/Managers/CECNPCMan.cs b/Assets/PerfectWorld/Scripts/Managers/CECNPCMan.cs index 5089d333fe..bee1d4301c 100644 --- a/Assets/PerfectWorld/Scripts/Managers/CECNPCMan.cs +++ b/Assets/PerfectWorld/Scripts/Managers/CECNPCMan.cs @@ -32,7 +32,7 @@ public class CECNPCMan : IMsgHandler case long value when value == EC_MsgDef.MSG_NM_NPCMOVE: OnMsgNPCMove(Msg); break; case long value when value == EC_MsgDef.MSG_NM_NPCSTOPMOVE: OnMsgNPCStopMove(Msg); break; case long value when value == EC_MsgDef.MSG_NM_NPCRUNOUT: OnMsgNPCRunOut(Msg); break; - case long value when value == EC_MsgDef.MSG_NM_NPCDIED: OnMsgNPCDied(Msg); break; + case EC_MsgDef.MSG_NM_NPCDIED: OnMsgNPCDied(Msg); break; case long value when value == EC_MsgDef.MSG_NM_NPCDISAPPEAR: OnMsgNPCDisappear(Msg); break; case long value when value == EC_MsgDef.MSG_NM_NPCATKRESULT: TransmitMessage(Msg); break; } diff --git a/Assets/PerfectWorld/Scripts/Managers/EC_Object.cs b/Assets/PerfectWorld/Scripts/Managers/EC_Object.cs index daf175b2a6..9ba044a2d1 100644 --- a/Assets/PerfectWorld/Scripts/Managers/EC_Object.cs +++ b/Assets/PerfectWorld/Scripts/Managers/EC_Object.cs @@ -1,3 +1,5 @@ +using System.Collections; +using System.Threading.Tasks; using BrewMonster; using BrewMonster.Managers; using CSNetwork.GPDataType; @@ -12,6 +14,8 @@ using UnityEngine; public class CECObject : MonoBehaviour { + + protected static int ALPHA_HASH = Shader.PropertyToID("_Alpha"); protected Quaternion targetRotation; protected Vector3 g_vAxisY = Vector3.up; // Class ID @@ -305,4 +309,27 @@ public class CECObject : MonoBehaviour m_bAdjustOrient = true; } } + + protected void FadeOut() + { + StartCoroutine(FadeOutCoroutine()); + } + + private IEnumerator FadeOutCoroutine() + { + var skinnedMeshRenderer = GetComponentInChildren(); + + if (skinnedMeshRenderer == null) yield break; + + var material = skinnedMeshRenderer.sharedMaterial; + var newMaterial = new Material(material); + skinnedMeshRenderer.sharedMaterial = newMaterial; + + // use for to fade out alpha + for (float alpha = 1f; alpha >= 0f; alpha -= 0.01f) + { + newMaterial.SetFloat(ALPHA_HASH, alpha); + yield return null; + } + } } diff --git a/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs b/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs index 646fc0017f..14ef9b13c6 100644 --- a/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs +++ b/Assets/PerfectWorld/Scripts/NPC/CECNPC.cs @@ -658,6 +658,7 @@ public class CECNPC : CECObject // No delay die, enter disappear process immediately if (!bDelay) Disappear(); + StartWork((int)WorkType.WT_NORMAL, (int)WorkID.WORK_DEAD, m_dwStates); @@ -666,6 +667,7 @@ public class CECNPC : CECObject public void Disappear() { BMLogger.Log("CECNPC::Disappear"); + FadeOut(); m_DisappearCnt.SetCounter(1); PlayModelAction((int)NPCActionIndex.ACT_NPC_DISAPPEAR); } diff --git a/Assets/PerfectWorld/Scripts/Network/CSNetwork/EC_MsgDef.cs b/Assets/PerfectWorld/Scripts/Network/CSNetwork/EC_MsgDef.cs index 3c7130d891..32dd95493d 100644 --- a/Assets/PerfectWorld/Scripts/Network/CSNetwork/EC_MsgDef.cs +++ b/Assets/PerfectWorld/Scripts/Network/CSNetwork/EC_MsgDef.cs @@ -235,7 +235,7 @@ namespace CSNetwork public static int MSG_NM_NPCINFO = 400; // NPC information, p1 - protocol object address public static int MSG_NM_NPCMOVE = 401; // NPC move, p1 - data address public static int MSG_NM_NPCRUNOUT = 402; // NPC run out of view area, p1 - data address - public static int MSG_NM_NPCDIED = 403; // NPC died, p1 - data address + public const int MSG_NM_NPCDIED = 403; // NPC died, p1 - data address public static int MSG_NM_NPCDISAPPEAR = 404; // NPC disappear, p1 - data address public static int MSG_NM_NPCCASTSKILL = 405; // NPC cast skill public static int MSG_NM_NPCROOT = 406; // NPC is root