feat: Main shader normal strength

This commit is contained in:
Alexandre Coirier
2026-06-02 14:53:03 +02:00
parent 7621d5dd16
commit 155bb2a96a
@@ -50,6 +50,9 @@
}, },
{ {
"m_Id": "b14cd887a743477d97eb1aa4dad4a75e" "m_Id": "b14cd887a743477d97eb1aa4dad4a75e"
},
{
"m_Id": "75a4774b8d99493cb8fa3a9d5e279999"
} }
], ],
"m_Keywords": [], "m_Keywords": [],
@@ -61,6 +64,9 @@
{ {
"m_Id": "1810970db54d423b8e943f22d93dff81" "m_Id": "1810970db54d423b8e943f22d93dff81"
}, },
{
"m_Id": "ff8ab5a7a00d48538b1759d22720d6c3"
},
{ {
"m_Id": "3f91bae60f5946f087f8ddbdf5974760" "m_Id": "3f91bae60f5946f087f8ddbdf5974760"
}, },
@@ -185,6 +191,12 @@
}, },
{ {
"m_Id": "a5f98beb05504403aa675c3a4fa83329" "m_Id": "a5f98beb05504403aa675c3a4fa83329"
},
{
"m_Id": "47ad27a08b234e73bf5919b373ae30f5"
},
{
"m_Id": "5d10e456431f4dd1b75dfd8d7f5d2d67"
} }
], ],
"m_GroupDatas": [], "m_GroupDatas": [],
@@ -288,6 +300,20 @@
"m_SlotId": 0 "m_SlotId": 0
} }
}, },
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "47ad27a08b234e73bf5919b373ae30f5"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "e042671f7f804efca0130f700c1e3e50"
},
"m_SlotId": 0
}
},
{ {
"m_OutputSlot": { "m_OutputSlot": {
"m_Node": { "m_Node": {
@@ -302,6 +328,20 @@
"m_SlotId": 7 "m_SlotId": 7
} }
}, },
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5d10e456431f4dd1b75dfd8d7f5d2d67"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "47ad27a08b234e73bf5919b373ae30f5"
},
"m_SlotId": 1
}
},
{ {
"m_OutputSlot": { "m_OutputSlot": {
"m_Node": { "m_Node": {
@@ -479,7 +519,7 @@
}, },
"m_InputSlot": { "m_InputSlot": {
"m_Node": { "m_Node": {
"m_Id": "e042671f7f804efca0130f700c1e3e50" "m_Id": "47ad27a08b234e73bf5919b373ae30f5"
}, },
"m_SlotId": 0 "m_SlotId": 0
} }
@@ -1011,9 +1051,6 @@
}, },
{ {
"m_Id": "26343172620c46c781f6cb90d0ff532a" "m_Id": "26343172620c46c781f6cb90d0ff532a"
},
{
"m_Id": "d4a07777651a4e19946ff77f26921f5f"
} }
] ]
} }
@@ -1348,6 +1385,29 @@
"m_FunctionBody": "Enter function body here..." "m_FunctionBody": "Enter function body here..."
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "3727d74fe9c6440d88d2864244a27a68",
"m_Id": 0,
"m_DisplayName": "In",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "In",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 1.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 1.0
},
"m_Labels": []
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot", "m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
@@ -1611,6 +1671,47 @@
"m_Labels": [] "m_Labels": []
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.NormalStrengthNode",
"m_ObjectId": "47ad27a08b234e73bf5919b373ae30f5",
"m_Group": {
"m_Id": ""
},
"m_Name": "Normal Strength",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 912.9999389648438,
"y": 227.99996948242188,
"width": 165.99993896484376,
"height": 118.0
}
},
"m_Slots": [
{
"m_Id": "3727d74fe9c6440d88d2864244a27a68"
},
{
"m_Id": "78d0db661e3c41bcb44bc2ea363f3bb3"
},
{
"m_Id": "87cfbfbcbea446dea1c4f21145b6ff8f"
}
],
"synonyms": [
"intensity"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{ {
"m_SGVersion": 1, "m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty", "m_Type": "UnityEditor.ShaderGraph.Matrix4ShaderProperty",
@@ -2148,6 +2249,42 @@
"m_Labels": [] "m_Labels": []
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "5d10e456431f4dd1b75dfd8d7f5d2d67",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 711.9999389648438,
"y": 345.9999694824219,
"width": 155.0,
"height": 34.0
}
},
"m_Slots": [
{
"m_Id": "f566194b3c684ca385bfeeafe3ab1550"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "75a4774b8d99493cb8fa3a9d5e279999"
}
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot",
@@ -2478,6 +2615,66 @@
} }
} }
{
"m_SGVersion": 1,
"m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
"m_ObjectId": "75a4774b8d99493cb8fa3a9d5e279999",
"m_Guid": {
"m_GuidSerialized": "647adb64-73b6-403c-a747-7df1cd5c9fff"
},
"promotedFromAssetID": "",
"promotedFromCategoryName": "",
"promotedOrdering": -1,
"m_Name": "Strength",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "Strength",
"m_DefaultReferenceName": "_Strength",
"m_OverrideReferenceName": "_NormaStrength",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_PerRendererData": false,
"m_customAttributes": [],
"m_Value": 1.0,
"m_FloatType": 0,
"m_LiteralFloatMode": false,
"m_RangeValues": {
"x": 0.0,
"y": 1.0
},
"m_SliderType": 0,
"m_SliderPower": 3.0,
"m_EnumType": 0,
"m_CSharpEnumString": "",
"m_EnumNames": [
"Default"
],
"m_EnumValues": [
0
]
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "78d0db661e3c41bcb44bc2ea363f3bb3",
"m_Id": 1,
"m_DisplayName": "Strength",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "Strength",
"m_StageCapability": 3,
"m_Value": 1.0,
"m_DefaultValue": 1.0,
"m_Labels": [],
"m_LiteralMode": false
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot", "m_Type": "UnityEditor.ShaderGraph.Matrix4MaterialSlot",
@@ -2832,6 +3029,29 @@
} }
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
"m_ObjectId": "87cfbfbcbea446dea1c4f21145b6ff8f",
"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
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"m_Labels": []
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot", "m_Type": "UnityEditor.ShaderGraph.BooleanMaterialSlot",
@@ -3216,9 +3436,9 @@
"m_Expanded": true, "m_Expanded": true,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 752.0, "x": 538.9999389648438,
"y": 309.0, "y": 217.99998474121095,
"width": 120.99993896484375, "width": 121.0,
"height": 34.0 "height": 34.0
} }
}, },
@@ -3435,10 +3655,10 @@
"m_Expanded": false, "m_Expanded": false,
"m_Position": { "m_Position": {
"serializedVersion": "2", "serializedVersion": "2",
"x": 900.9999389648438, "x": 687.9999389648438,
"y": 269.0, "y": 177.99996948242188,
"width": 179.00006103515626, "width": 179.0,
"height": 152.99993896484376 "height": 153.0
} }
}, },
"m_Slots": [ "m_Slots": [
@@ -4480,6 +4700,22 @@
"m_Labels": [] "m_Labels": []
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
"m_ObjectId": "f566194b3c684ca385bfeeafe3ab1550",
"m_Id": 0,
"m_DisplayName": "NormaStrength",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": 0.0,
"m_DefaultValue": 0.0,
"m_Labels": [],
"m_LiteralMode": false
}
{ {
"m_SGVersion": 0, "m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData", "m_Type": "UnityEditor.ShaderGraph.CategoryData",
@@ -4576,3 +4812,18 @@
"m_Space": 0 "m_Space": 0
} }
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.CategoryData",
"m_ObjectId": "ff8ab5a7a00d48538b1759d22720d6c3",
"m_Name": "Normal",
"m_ChildObjectList": [
{
"m_Id": "d4a07777651a4e19946ff77f26921f5f"
},
{
"m_Id": "75a4774b8d99493cb8fa3a9d5e279999"
}
]
}