Added Fog and other fixes

This commit is contained in:
2026-07-06 18:01:21 +03:00
parent fc837b2f9a
commit 72b48492cc
573 changed files with 397423 additions and 104 deletions
@@ -0,0 +1,763 @@
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.GraphData",
"m_ObjectId": "436f8381a2074646a6cb608fc5698cb7",
"m_Properties": [],
"m_Keywords": [
{
"m_Id": "150901967a054ef08012a87f57d8a785"
}
],
"m_Dropdowns": [],
"m_CategoryData": [
{
"m_Id": "aee1a15ef4774e2992e867b3f420b8d5"
}
],
"m_Nodes": [
{
"m_Id": "284a7c4314964ff1908f7334a5c6971d"
},
{
"m_Id": "239a71c102774caa91fd7ee8ac645416"
},
{
"m_Id": "11ea51622d134943bcce14a0d5cfe5f2"
},
{
"m_Id": "72f8bb3e295840238b2fe9571ed88c39"
},
{
"m_Id": "4c28757a354e46a39f6b389f59c72cb5"
},
{
"m_Id": "8b18e4fd60b648ad9d2c4b4a9b7625f4"
}
],
"m_GroupDatas": [],
"m_StickyNoteDatas": [],
"m_Edges": [
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "11ea51622d134943bcce14a0d5cfe5f2"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "72f8bb3e295840238b2fe9571ed88c39"
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "4c28757a354e46a39f6b389f59c72cb5"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "72f8bb3e295840238b2fe9571ed88c39"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "72f8bb3e295840238b2fe9571ed88c39"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "284a7c4314964ff1908f7334a5c6971d"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "8b18e4fd60b648ad9d2c4b4a9b7625f4"
},
"m_SlotId": 1
},
"m_InputSlot": {
"m_Node": {
"m_Id": "72f8bb3e295840238b2fe9571ed88c39"
},
"m_SlotId": 3
}
}
],
"m_VertexContext": {
"m_Position": {
"x": 0.0000025633853510953488,
"y": 121.3333511352539
},
"m_Blocks": []
},
"m_FragmentContext": {
"m_Position": {
"x": 0.0,
"y": 200.0
},
"m_Blocks": [
{
"m_Id": "284a7c4314964ff1908f7334a5c6971d"
},
{
"m_Id": "239a71c102774caa91fd7ee8ac645416"
}
]
},
"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": "e519f9ff9a6c483d91136f5bd9a9aca0"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "0ffeabd41cbe4648864f7dd3102468d4",
"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_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.SceneDepthNode",
"m_ObjectId": "11ea51622d134943bcce14a0d5cfe5f2",
"m_Group": {
"m_Id": ""
},
"m_Name": "Scene Depth",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -510.0000305175781,
"y": 200.00001525878907,
"width": 147.33331298828126,
"height": 113.33332824707031
}
},
"m_Slots": [
{
"m_Id": "967e6b77c8414996bbc229f3905bbe1e"
},
{
"m_Id": "b5fd10b4ea174ffabe221bde270ca744"
}
],
"synonyms": [
"zbuffer",
"zdepth"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_DepthSamplingMode": 0
}
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.ShaderGraph.ShaderKeyword",
"m_ObjectId": "150901967a054ef08012a87f57d8a785",
"m_Guid": {
"m_GuidSerialized": "9d5478d9-5371-4e57-a986-ac017e4ffb47"
},
"promotedFromAssetID": "",
"promotedFromCategoryName": "",
"promotedOrdering": -1,
"m_Name": "Depth Mode",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Depth Mode",
"m_DefaultReferenceName": "_DEPTH_MODE",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_KeywordType": 1,
"m_KeywordDefinition": 0,
"m_KeywordScope": 0,
"m_KeywordStages": 63,
"m_Entries": [
{
"id": 1,
"displayName": "Linear01",
"referenceName": "LINEAR01"
},
{
"id": 2,
"displayName": "Raw",
"referenceName": "RAW"
},
{
"id": 3,
"displayName": "Eye",
"referenceName": "EYE"
}
],
"m_Value": 0,
"m_IsEditable": true,
"m_IsShaderBuildSettingsCompatible": true
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "204344dfd243444b857b0d9551284e24",
"m_Id": 2,
"m_DisplayName": "Raw",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "RAW",
"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_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot",
"m_ObjectId": "20ca2e0e44914617ad4a89d95c8612a1",
"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.BlockNode",
"m_ObjectId": "239a71c102774caa91fd7ee8ac645416",
"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": "0ffeabd41cbe4648864f7dd3102468d4"
}
],
"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.BlockNode",
"m_ObjectId": "284a7c4314964ff1908f7334a5c6971d",
"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": "430551f1a90148818c85c9a284b02305"
}
],
"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": "3c7e6b7afec64fb1947a9ab2c8fde23d",
"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,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
"m_ObjectId": "430551f1a90148818c85c9a284b02305",
"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.SceneDepthNode",
"m_ObjectId": "4c28757a354e46a39f6b389f59c72cb5",
"m_Group": {
"m_Id": ""
},
"m_Name": "Scene Depth",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -510.0000305175781,
"y": 313.3333435058594,
"width": 147.33331298828126,
"height": 113.3333740234375
}
},
"m_Slots": [
{
"m_Id": "800053e023f242849366cbd57728916e"
},
{
"m_Id": "c597a806da7c4b088565ba849bbd4559"
}
],
"synonyms": [
"zbuffer",
"zdepth"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_DepthSamplingMode": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.KeywordNode",
"m_ObjectId": "72f8bb3e295840238b2fe9571ed88c39",
"m_Group": {
"m_Id": ""
},
"m_Name": "Depth Mode",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -293.3334045410156,
"y": 200.00001525878907,
"width": 164.0000762939453,
"height": 143.99998474121095
}
},
"m_Slots": [
{
"m_Id": "3c7e6b7afec64fb1947a9ab2c8fde23d"
},
{
"m_Id": "fc44c686b609445791b1e4064bf59f6e"
},
{
"m_Id": "204344dfd243444b857b0d9551284e24"
},
{
"m_Id": "e2e415c065b640a583a5f0613b1ab09f"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Keyword": {
"m_Id": "150901967a054ef08012a87f57d8a785"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot",
"m_ObjectId": "800053e023f242849366cbd57728916e",
"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.SceneDepthNode",
"m_ObjectId": "8b18e4fd60b648ad9d2c4b4a9b7625f4",
"m_Group": {
"m_Id": ""
},
"m_Name": "Scene Depth",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -510.0000305175781,
"y": 426.6667175292969,
"width": 147.33331298828126,
"height": 113.33334350585938
}
},
"m_Slots": [
{
"m_Id": "20ca2e0e44914617ad4a89d95c8612a1"
},
{
"m_Id": "db7ce0576ef44f5b89e359961e8d6ef5"
}
],
"synonyms": [
"zbuffer",
"zdepth"
],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_DepthSamplingMode": 2
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.ScreenPositionMaterialSlot",
"m_ObjectId": "967e6b77c8414996bbc229f3905bbe1e",
"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.Rendering.Fullscreen.ShaderGraph.FullscreenData",
"m_ObjectId": "ad048e267c644bb190152927cd9ead7f",
"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.CategoryData",
"m_ObjectId": "aee1a15ef4774e2992e867b3f420b8d5",
"m_Name": "",
"m_ChildObjectList": [
{
"m_Id": "150901967a054ef08012a87f57d8a785"
}
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalFullscreenSubTarget",
"m_ObjectId": "b42a0207d6df4865b1f2ac80b6882777"
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "b5fd10b4ea174ffabe221bde270ca744",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "c597a806da7c4b088565ba849bbd4559",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "db7ce0576ef44f5b89e359961e8d6ef5",
"m_Id": 1,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 2,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "e2e415c065b640a583a5f0613b1ab09f",
"m_Id": 3,
"m_DisplayName": "Eye",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "EYE",
"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_LiteralMode": false
}
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
"m_ObjectId": "e519f9ff9a6c483d91136f5bd9a9aca0",
"m_Datas": [
{
"m_Id": "ad048e267c644bb190152927cd9ead7f"
}
],
"m_ActiveSubTarget": {
"m_Id": "b42a0207d6df4865b1f2ac80b6882777"
},
"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_Sort3DAs2DCompatible": false,
"m_AdditionalMotionVectorMode": 0,
"m_AlembicMotionVectors": false,
"m_SupportsLODCrossFade": false,
"m_CustomEditorGUI": "",
"m_SupportVFX": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
"m_ObjectId": "fc44c686b609445791b1e4064bf59f6e",
"m_Id": 1,
"m_DisplayName": "Linear01",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "LINEAR01",
"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_LiteralMode": false
}