From 0ad0d076456ccce24b5a8c0d2d71ccffe9c22e80 Mon Sep 17 00:00:00 2001 From: cailean Date: Mon, 11 Mar 2024 16:22:47 +0000 Subject: [PATCH] scale pp shader added --- Assets/14_CustomPP/Scale.cs | 44 + Assets/14_CustomPP/Scale.cs.meta | 2 + Assets/14_CustomPP/Scale.shadergraph | 1114 +++++++++++++++++ Assets/14_CustomPP/Scale.shadergraph.meta | 10 + Assets/6_Scenes/Beep.unity | 8 +- .../HDRPDefaultResources/C Surveillance.asset | 32 + .../HDRenderPipelineGlobalSettings.asset | 1 + .../Settings/SkyandFogSettingsProfile.asset | 20 + 8 files changed, 1227 insertions(+), 4 deletions(-) create mode 100644 Assets/14_CustomPP/Scale.cs create mode 100644 Assets/14_CustomPP/Scale.cs.meta create mode 100644 Assets/14_CustomPP/Scale.shadergraph create mode 100644 Assets/14_CustomPP/Scale.shadergraph.meta diff --git a/Assets/14_CustomPP/Scale.cs b/Assets/14_CustomPP/Scale.cs new file mode 100644 index 0000000..ebc9a82 --- /dev/null +++ b/Assets/14_CustomPP/Scale.cs @@ -0,0 +1,44 @@ +using UnityEngine; +using UnityEngine.Rendering; +using UnityEngine.Rendering.HighDefinition; +using System; + +[Serializable, VolumeComponentMenu("Post-processing/Custom/Scale")] +public sealed class Scale : CustomPostProcessVolumeComponent, IPostProcessComponent +{ + [Tooltip("Controls the intensity of the effect.")] + public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f); + public ClampedFloatParameter scale = new ClampedFloatParameter(0f, 0f, 1); + Material m_Material; + + public bool IsActive() => m_Material != null && intensity.value > 0f; + + // Do not forget to add this post process in the Custom Post Process Orders list (Project Settings > Graphics > HDRP Global Settings). + public override CustomPostProcessInjectionPoint injectionPoint => CustomPostProcessInjectionPoint.AfterPostProcess; + + const string kShaderName = "Shader Graphs/Scale"; + + public override void Setup() + { + if (Shader.Find(kShaderName) != null) + m_Material = new Material(Shader.Find(kShaderName)); + else + Debug.LogError($"Unable to find shader '{kShaderName}'. Post Process Volume Scale is unable to load."); + } + + public override void Render(CommandBuffer cmd, HDCamera camera, RTHandle source, RTHandle destination) + { + if (m_Material == null) + return; + + m_Material.SetFloat("_Intensity", intensity.value); + m_Material.SetFloat("_Scale", scale.value); + m_Material.SetTexture("_MainTex", source); + HDUtils.DrawFullScreen(cmd, m_Material, destination, shaderPassId: 0); + } + + public override void Cleanup() + { + CoreUtils.Destroy(m_Material); + } +} diff --git a/Assets/14_CustomPP/Scale.cs.meta b/Assets/14_CustomPP/Scale.cs.meta new file mode 100644 index 0000000..f272a04 --- /dev/null +++ b/Assets/14_CustomPP/Scale.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: d39585a76d5fe4440a829bdff2e7d6f5 \ No newline at end of file diff --git a/Assets/14_CustomPP/Scale.shadergraph b/Assets/14_CustomPP/Scale.shadergraph new file mode 100644 index 0000000..5d2884a --- /dev/null +++ b/Assets/14_CustomPP/Scale.shadergraph @@ -0,0 +1,1114 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "8b2e7a65c22e45c088f25e45ea31645c", + "m_Properties": [ + { + "m_Id": "103d0b4574d348098f56293cf68c5ba7" + }, + { + "m_Id": "47092f90ff884e169026b60e2ce67b07" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "52b5bc88144f4770abcd5400d5cb94ca" + } + ], + "m_Nodes": [ + { + "m_Id": "1c44e566396041fb9ee049f04eb4ad89" + }, + { + "m_Id": "0117058513124318acdd4079544733d0" + }, + { + "m_Id": "c8c30658e9ed4ee9a1f96b32cc659499" + }, + { + "m_Id": "bbefabe713e64549b8ae777000fb5438" + }, + { + "m_Id": "b60b4b105932442ea41d8863a1ff3b87" + }, + { + "m_Id": "e1dd5b8e16de44b996bb64e19081164e" + }, + { + "m_Id": "5f057811420e4414a6cd0d5aa4dd6077" + }, + { + "m_Id": "4571cf0aa61346c18a825fc35b20e8cf" + }, + { + "m_Id": "b758e6cd5c21464c808689de958f28e6" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4571cf0aa61346c18a825fc35b20e8cf" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bbefabe713e64549b8ae777000fb5438" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4571cf0aa61346c18a825fc35b20e8cf" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e1dd5b8e16de44b996bb64e19081164e" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "5f057811420e4414a6cd0d5aa4dd6077" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "bbefabe713e64549b8ae777000fb5438" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b758e6cd5c21464c808689de958f28e6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4571cf0aa61346c18a825fc35b20e8cf" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b758e6cd5c21464c808689de958f28e6" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4571cf0aa61346c18a825fc35b20e8cf" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "bbefabe713e64549b8ae777000fb5438" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c8c30658e9ed4ee9a1f96b32cc659499" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c8c30658e9ed4ee9a1f96b32cc659499" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "1c44e566396041fb9ee049f04eb4ad89" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e1dd5b8e16de44b996bb64e19081164e" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "5f057811420e4414a6cd0d5aa4dd6077" + }, + "m_SlotId": 0 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 0.0, + "y": 0.0 + }, + "m_Blocks": [] + }, + "m_FragmentContext": { + "m_Position": { + "x": 0.0, + "y": 200.0 + }, + "m_Blocks": [ + { + "m_Id": "1c44e566396041fb9ee049f04eb4ad89" + }, + { + "m_Id": "0117058513124318acdd4079544733d0" + } + ] + }, + "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_ActiveTargets": [ + { + "m_Id": "aafa329fa9524024a5b339be6fc36dc0" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0117058513124318acdd4079544733d0", + "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": "058621d8622d4ecd8bd166e67b49b711" + } + ], + "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.Vector1MaterialSlot", + "m_ObjectId": "058621d8622d4ecd8bd166e67b49b711", + "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": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty", + "m_ObjectId": "103d0b4574d348098f56293cf68c5ba7", + "m_Guid": { + "m_GuidSerialized": "ec681a4f-1825-4056-b11c-5d1b59145197" + }, + "m_Name": "_Position", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "_Position", + "m_DefaultReferenceName": "_Position", + "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": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "11b2456b8b544b098c99c33d9c981035", + "m_Id": 0, + "m_DisplayName": "_Scale", + "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.Vector2MaterialSlot", + "m_ObjectId": "1ab8b13ac960493ea87fafc1c3ba764d", + "m_Id": 1, + "m_DisplayName": "Tiling", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tiling", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "1c44e566396041fb9ee049f04eb4ad89", + "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": "8c5bef6c83874048b26d174633f80baa" + } + ], + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "3bdae3b0acad45189ca22aaa089939bd", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "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.Vector2Node", + "m_ObjectId": "4571cf0aa61346c18a825fc35b20e8cf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 2", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1689.0, + "y": 41.99994659423828, + "width": 128.0, + "height": 101.00005340576172 + } + }, + "m_Slots": [ + { + "m_Id": "ec4235b611174300ae49cb129b97429c" + }, + { + "m_Id": "ede27c2f3f654e0294ca5359f51efd4e" + }, + { + "m_Id": "9bd5bb0961104e2691d8769cac24bccd" + } + ], + "synonyms": [ + "2", + "v2", + "vec2", + "float2" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "47092f90ff884e169026b60e2ce67b07", + "m_Guid": { + "m_GuidSerialized": "62ebc0dd-40cc-447d-b785-8647c46b8e41" + }, + "m_Name": "_Scale", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "_Scale", + "m_DefaultReferenceName": "_Scale", + "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": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "4a823732042c4b6ab678a0b2b65b17a7", + "m_Id": 0, + "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.CategoryData", + "m_ObjectId": "52b5bc88144f4770abcd5400d5cb94ca", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "103d0b4574d348098f56293cf68c5ba7" + }, + { + "m_Id": "47092f90ff884e169026b60e2ce67b07" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "5bba9ad439c24de98e5e79d42f9ec0b0", + "m_Id": 2, + "m_DisplayName": "Offset", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Offset", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DivideNode", + "m_ObjectId": "5f057811420e4414a6cd0d5aa4dd6077", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1231.0, + "y": 143.0, + "width": 130.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "ce7ed29265bd437a906d85237ca899f7" + }, + { + "m_Id": "e1a251b1c96b4bc2be122f8fb3e94105" + }, + { + "m_Id": "f312da2e546049d7a95794b28bc4287f" + } + ], + "synonyms": [ + "division", + "divided by" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "753cce24327c42509f1bf7502d0c64e2", + "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 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot", + "m_ObjectId": "75a87754011b4b69948b71a8e05f77b3", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "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_ScreenSpaceType": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "8c5bef6c83874048b26d174633f80baa", + "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.0, + "y": 0.0, + "z": 0.0 + }, + "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.DynamicVectorMaterialSlot", + "m_ObjectId": "8d6ca4400998406c818223fa579fbc1b", + "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 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "9bd5bb0961104e2691d8769cac24bccd", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "aae114c721634d0181a1ac1ccc3ae292", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "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.Rendering.HighDefinition.ShaderGraph.HDTarget", + "m_ObjectId": "aafa329fa9524024a5b339be6fc36dc0", + "m_ActiveSubTarget": { + "m_Id": "d2ad332da80b42b6b638b4685a382e40" + }, + "m_Datas": [ + { + "m_Id": "df5cb886c9df468f9f40fa79152b3e49" + }, + { + "m_Id": "ba762fc11484473bbdcac78cf366937f" + } + ], + "m_CustomEditorGUI": "", + "m_SupportVFX": false, + "m_SupportLineRendering": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b60b4b105932442ea41d8863a1ff3b87", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1078.0, + "y": 458.0000305175781, + "width": 124.0, + "height": 33.999908447265628 + } + }, + "m_Slots": [ + { + "m_Id": "c213156db4814381a402faa7e7cc3283" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "103d0b4574d348098f56293cf68c5ba7" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "b758e6cd5c21464c808689de958f28e6", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1828.0, + "y": 83.00006103515625, + "width": 109.0, + "height": 33.999969482421878 + } + }, + "m_Slots": [ + { + "m_Id": "11b2456b8b544b098c99c33d9c981035" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "47092f90ff884e169026b60e2ce67b07" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.ShaderGraph.HDFullscreenData", + "m_ObjectId": "ba762fc11484473bbdcac78cf366937f", + "m_ShowOnlyHDStencilBits": true +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TilingAndOffsetNode", + "m_ObjectId": "bbefabe713e64549b8ae777000fb5438", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Tiling And Offset", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -953.9998779296875, + "y": 7.152557373046875e-7, + "width": 208.0, + "height": 325.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "4a823732042c4b6ab678a0b2b65b17a7" + }, + { + "m_Id": "1ab8b13ac960493ea87fafc1c3ba764d" + }, + { + "m_Id": "5bba9ad439c24de98e5e79d42f9ec0b0" + }, + { + "m_Id": "753cce24327c42509f1bf7502d0c64e2" + } + ], + "synonyms": [ + "pan", + "scale" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "c213156db4814381a402faa7e7cc3283", + "m_Id": 0, + "m_DisplayName": "_Position", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.HighDefinition.HDSampleBufferNode", + "m_ObjectId": "c8c30658e9ed4ee9a1f96b32cc659499", + "m_Group": { + "m_Id": "" + }, + "m_Name": "HD Sample Buffer", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -544.0, + "y": 200.99996948242188, + "width": 155.0, + "height": 129.0 + } + }, + "m_Slots": [ + { + "m_Id": "75a87754011b4b69948b71a8e05f77b3" + }, + { + "m_Id": "d50794b652734e9c842f4a9bbfab7f98" + } + ], + "synonyms": [ + "normal", + "motion vector", + "smoothness", + "postprocessinput", + "issky", + "thickness", + "underwater" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_BufferType": 4 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ce7ed29265bd437a906d85237ca899f7", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "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.Rendering.HighDefinition.ShaderGraph.HDFullscreenSubTarget", + "m_ObjectId": "d2ad332da80b42b6b638b4685a382e40" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBAMaterialSlot", + "m_ObjectId": "d50794b652734e9c842f4a9bbfab7f98", + "m_Id": 2, + "m_DisplayName": "Output", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Output", + "m_StageCapability": 2, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.Rendering.Fullscreen.ShaderGraph.FullscreenData", + "m_ObjectId": "df5cb886c9df468f9f40fa79152b3e49", + "m_Version": 0, + "m_fullscreenMode": 0, + "m_BlendMode": 0, + "m_SrcColorBlendMode": 0, + "m_DstColorBlendMode": 1, + "m_ColorBlendOperation": 0, + "m_SrcAlphaBlendMode": 0, + "m_DstAlphaBlendMode": 1, + "m_AlphaBlendOperation": 0, + "m_EnableStencil": false, + "m_StencilReference": 0, + "m_StencilReadMask": 255, + "m_StencilWriteMask": 255, + "m_StencilCompareFunction": 8, + "m_StencilPassOperation": 0, + "m_StencilFailOperation": 0, + "m_StencilDepthFailOperation": 0, + "m_DepthWrite": false, + "m_depthWriteMode": 0, + "m_AllowMaterialOverride": false, + "m_DepthTestMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e1a251b1c96b4bc2be122f8fb3e94105", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SubtractNode", + "m_ObjectId": "e1dd5b8e16de44b996bb64e19081164e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Subtract", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1504.0, + "y": 142.9999542236328, + "width": 130.0, + "height": 118.00013732910156 + } + }, + "m_Slots": [ + { + "m_Id": "aae114c721634d0181a1ac1ccc3ae292" + }, + { + "m_Id": "3bdae3b0acad45189ca22aaa089939bd" + }, + { + "m_Id": "8d6ca4400998406c818223fa579fbc1b" + } + ], + "synonyms": [ + "subtraction", + "remove", + "minus", + "take away" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ec4235b611174300ae49cb129b97429c", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "ede27c2f3f654e0294ca5359f51efd4e", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 1.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "f312da2e546049d7a95794b28bc4287f", + "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/14_CustomPP/Scale.shadergraph.meta b/Assets/14_CustomPP/Scale.shadergraph.meta new file mode 100644 index 0000000..d7ad72b --- /dev/null +++ b/Assets/14_CustomPP/Scale.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 78fab9e2adf9a6d4cb00cbebbd101f32 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Assets/6_Scenes/Beep.unity b/Assets/6_Scenes/Beep.unity index 63bbf12..14c5a9d 100644 --- a/Assets/6_Scenes/Beep.unity +++ b/Assets/6_Scenes/Beep.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 18715.012, g: 22259.738, b: 24972.97, a: 1} + m_IndirectSpecularColor: {r: 18717.44, g: 22261.611, b: 24975.488, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -913,7 +913,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 377437129} serializedVersion: 2 - m_LocalRotation: {x: -0.03783876, y: 0.8817096, z: -0.07178476, w: -0.46476156} + m_LocalRotation: {x: -0.03783878, y: 0.8817097, z: -0.071784794, w: -0.46476156} m_LocalPosition: {x: -128.4, y: 13, z: -248.6} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 @@ -1510,7 +1510,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 513050371} serializedVersion: 2 - m_LocalRotation: {x: 0.09170884, y: 0.7875376, z: -0.12092027, w: 0.59728754} + m_LocalRotation: {x: 0.09170884, y: 0.7875376, z: -0.12092028, w: 0.5972875} m_LocalPosition: {x: -3.8285522, y: -3.5073547, z: -14.092346} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 @@ -2875,7 +2875,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1178814724} serializedVersion: 2 - m_LocalRotation: {x: 0.11851884, y: 0.6224197, z: -0.0960943, w: 0.76766723} + m_LocalRotation: {x: 0.11851883, y: 0.6224197, z: -0.0960943, w: 0.76766723} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 diff --git a/Assets/Settings/HDRPDefaultResources/C Surveillance.asset b/Assets/Settings/HDRPDefaultResources/C Surveillance.asset index 0a46530..ee24bd0 100644 --- a/Assets/Settings/HDRPDefaultResources/C Surveillance.asset +++ b/Assets/Settings/HDRPDefaultResources/C Surveillance.asset @@ -119,6 +119,25 @@ MonoBehaviour: gain: m_OverrideState: 1 m_Value: {x: 1, y: 1, z: 1, w: 0} +--- !u!114 &-6734514037984257599 +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: d39585a76d5fe4440a829bdff2e7d6f5, type: 3} + m_Name: Scale + m_EditorClassIdentifier: + active: 1 + intensity: + m_OverrideState: 1 + m_Value: 1 + scale: + m_OverrideState: 1 + m_Value: 0.848 --- !u!114 &-5803946911733098170 MonoBehaviour: m_ObjectHideFlags: 3 @@ -460,6 +479,7 @@ MonoBehaviour: - {fileID: -2868304836233947053} - {fileID: -1404954356258110032} - {fileID: 9099200747249414281} + - {fileID: -6734514037984257599} --- !u!114 &1648429249874712153 MonoBehaviour: m_ObjectHideFlags: 3 @@ -1183,6 +1203,18 @@ MonoBehaviour: maximumIntensity: m_OverrideState: 1 m_Value: 10 + denoising: + m_OverrideState: 0 + m_Value: 0 + useAOVs: + m_OverrideState: 0 + m_Value: 1 + temporal: + m_OverrideState: 0 + m_Value: 0 + asyncDenoising: + m_OverrideState: 0 + m_Value: 1 skyImportanceSampling: m_OverrideState: 1 m_Value: 0 diff --git a/Assets/Settings/HDRPDefaultResources/HDRenderPipelineGlobalSettings.asset b/Assets/Settings/HDRPDefaultResources/HDRenderPipelineGlobalSettings.asset index 436a8a3..1647590 100644 --- a/Assets/Settings/HDRPDefaultResources/HDRenderPipelineGlobalSettings.asset +++ b/Assets/Settings/HDRPDefaultResources/HDRenderPipelineGlobalSettings.asset @@ -126,6 +126,7 @@ MonoBehaviour: afterPostProcessBlursCustomPostProcesses: [] afterPostProcessCustomPostProcesses: - Ramp, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + - Scale, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null beforeTAACustomPostProcesses: [] defaultRenderingLayerMask: 257 renderingLayerNames: diff --git a/Assets/Settings/SkyandFogSettingsProfile.asset b/Assets/Settings/SkyandFogSettingsProfile.asset index b1cff7c..bc47b5d 100644 --- a/Assets/Settings/SkyandFogSettingsProfile.asset +++ b/Assets/Settings/SkyandFogSettingsProfile.asset @@ -1638,6 +1638,7 @@ MonoBehaviour: - {fileID: -4627288363748534694} - {fileID: -7599423270992533750} - {fileID: -2552918245885184257} + - {fileID: 4440327153818238715} --- !u!114 &831513112825940344 MonoBehaviour: m_ObjectHideFlags: 3 @@ -1901,6 +1902,25 @@ MonoBehaviour: saturation: m_OverrideState: 1 m_Value: 0 +--- !u!114 &4440327153818238715 +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: d39585a76d5fe4440a829bdff2e7d6f5, type: 3} + m_Name: Scale + m_EditorClassIdentifier: + active: 1 + intensity: + m_OverrideState: 1 + m_Value: 0 + scale: + m_OverrideState: 1 + m_Value: 0 --- !u!114 &5135003436626079803 MonoBehaviour: m_ObjectHideFlags: 3