update shadergraph

This commit is contained in:
ousttrue 2025-03-03 21:53:13 +09:00
parent 360195d7ae
commit f692ffbaad
8 changed files with 1639 additions and 143 deletions

View File

@ -1,8 +1,7 @@
namespace UniGLTF
{
/// <summary>
/// 指定の index の glTFMaterial から Import できる Material の生成情報を生成する。
/// glTFMaterial と Unity Material は 1:1 対応する。
/// generate a unity Material from a glTFMaterial.
/// </summary>
public interface IMaterialDescriptorGenerator
{

View File

@ -31,11 +31,11 @@ MonoBehaviour:
m_OverrideState: 0
m_Value: 1
threshold:
m_OverrideState: 0
m_Value: 0.9
m_OverrideState: 1
m_Value: 1
intensity:
m_OverrideState: 0
m_Value: 0
m_OverrideState: 1
m_Value: 1
scatter:
m_OverrideState: 0
m_Value: 0.7

View File

@ -26,6 +26,12 @@
},
{
"m_Id": "0742cd72e9334a03a596f3bf845e52cf"
},
{
"m_Id": "974a754cac90444da383dd520d43725f"
},
{
"m_Id": "732138fff95a49b4ac254e0ddf11bc94"
}
],
"m_Keywords": [],
@ -77,6 +83,12 @@
},
{
"m_Id": "4ca5e0de823c4b5f890216a9a1d28ced"
},
{
"m_Id": "bea6ff10b4da44caa50af89cba32211e"
},
{
"m_Id": "70539d01b9d6429691a5db24f5e65c7d"
}
],
"m_GroupDatas": [],
@ -152,6 +164,20 @@
"m_SlotId": 490756011
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "70539d01b9d6429691a5db24f5e65c7d"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0776e82cf5bc4372962108bf3847d1d0"
},
"m_SlotId": 889685277
}
},
{
"m_OutputSlot": {
"m_Node": {
@ -194,6 +220,20 @@
"m_SlotId": 1340748427
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "bea6ff10b4da44caa50af89cba32211e"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0776e82cf5bc4372962108bf3847d1d0"
},
"m_SlotId": -2125782034
}
},
{
"m_OutputSlot": {
"m_Node": {
@ -311,6 +351,24 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "0127c13240d544acbd50c531c02d37dc",
"m_Id": 889685277,
"m_DisplayName": "EmissionMap",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_EmissionMap",
"m_StageCapability": 2,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
@ -459,6 +517,12 @@
{
"m_Id": "102c2a8fcff94efdad15054c1e4a4392"
},
{
"m_Id": "3d07bb566f064af3859a145f3ba3c45a"
},
{
"m_Id": "0127c13240d544acbd50c531c02d37dc"
},
{
"m_Id": "e6c1845b1ff7420192f4e36917f71689"
},
@ -487,7 +551,9 @@
"d3263a66-e96d-45f6-bbbd-9b3869d2008d",
"23fc4c5e-606f-4623-9fc8-c425baf7c621",
"fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a",
"7739fffb-53c8-4ab8-b490-2f422c6bee62"
"7739fffb-53c8-4ab8-b490-2f422c6bee62",
"317ea6aa-c51a-4f75-976a-f291c92ab26e",
"4771a75d-cc06-4d5b-afd1-6afbe93f47c4"
],
"m_PropertyIds": [
1340748427,
@ -498,7 +564,9 @@
592166105,
1641878292,
287326672,
490756011
490756011,
-2125782034,
889685277
],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
@ -641,6 +709,31 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "3d07bb566f064af3859a145f3ba3c45a",
"m_Id": -2125782034,
"m_DisplayName": "EmissionColor",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_EmissionColor",
"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": 3,
"m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty",
@ -889,6 +982,72 @@
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "70539d01b9d6429691a5db24f5e65c7d",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 6.666666507720947,
"y": 402.0000305175781,
"width": 154.0,
"height": 35.999969482421878
}
},
"m_Slots": [
{
"m_Id": "f4e7136123c9483cb7d91305c33ddbd1"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "732138fff95a49b4ac254e0ddf11bc94"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
"m_ObjectId": "732138fff95a49b4ac254e0ddf11bc94",
"m_Guid": {
"m_GuidSerialized": "370eb310-6a74-497d-99d7-55d5e9f7683e"
},
"m_Name": "EmissionMap",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "EmissionMap",
"m_DefaultReferenceName": "_EmissionMap",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
@ -970,6 +1129,12 @@
},
{
"m_Id": "0742cd72e9334a03a596f3bf845e52cf"
},
{
"m_Id": "974a754cac90444da383dd520d43725f"
},
{
"m_Id": "732138fff95a49b4ac254e0ddf11bc94"
}
]
}
@ -1046,6 +1211,36 @@
"m_Labels": []
}
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty",
"m_ObjectId": "974a754cac90444da383dd520d43725f",
"m_Guid": {
"m_GuidSerialized": "5952bd85-d232-41b9-a39b-8dfad6219580"
},
"m_Name": "EmissionColor",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "EmissionColor",
"m_DefaultReferenceName": "_EmissionColor",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"isMainColor": false,
"m_ColorMode": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
@ -1234,6 +1429,42 @@
"m_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "bea6ff10b4da44caa50af89cba32211e",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 8.000003814697266,
"y": 366.0000305175781,
"width": 152.6666717529297,
"height": 36.0
}
},
"m_Slots": [
{
"m_Id": "ec80a33b78a3474cbdfd861f8ed21802"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "974a754cac90444da383dd520d43725f"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
@ -1294,7 +1525,7 @@
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
"a": 1.0
},
"isMainColor": true,
"m_ColorMode": 0
@ -1528,6 +1759,31 @@
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "ec80a33b78a3474cbdfd861f8ed21802",
"m_Id": 0,
"m_DisplayName": "EmissionColor",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
@ -1552,6 +1808,19 @@
"m_Space": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "f4e7136123c9483cb7d91305c33ddbd1",
"m_Id": 0,
"m_DisplayName": "EmissionMap",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",

View File

@ -32,6 +32,12 @@
},
{
"m_Id": "b1faea9e904b4eab8c5266d6c0565f0d"
},
{
"m_Id": "708e3009785c4aa69f6e0985da3b277d"
},
{
"m_Id": "a70c5ed980b14805943aca6a4dac34d0"
}
],
"m_Keywords": [],
@ -95,6 +101,12 @@
},
{
"m_Id": "4ad616c1aab04122abdd5700f5e65735"
},
{
"m_Id": "fe0e2c9b1312432cbe511bdccc98a1dc"
},
{
"m_Id": "0167e9468c5d410d961d2b009ad33255"
}
],
"m_GroupDatas": [],
@ -114,6 +126,20 @@
"m_SlotId": -643094866
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "0167e9468c5d410d961d2b009ad33255"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0776e82cf5bc4372962108bf3847d1d0"
},
"m_SlotId": -2125782034
}
},
{
"m_OutputSlot": {
"m_Node": {
@ -281,6 +307,20 @@
},
"m_SlotId": 1
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "fe0e2c9b1312432cbe511bdccc98a1dc"
},
"m_SlotId": 0
},
"m_InputSlot": {
"m_Node": {
"m_Id": "0776e82cf5bc4372962108bf3847d1d0"
},
"m_SlotId": 889685277
}
}
],
"m_VertexContext": {
@ -374,6 +414,42 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "0167e9468c5d410d961d2b009ad33255",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 8.0,
"y": 366.0,
"width": 152.66668701171876,
"height": 36.0
}
},
"m_Slots": [
{
"m_Id": "d09ad54764c84f3aab56efa384981cea"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "708e3009785c4aa69f6e0985da3b277d"
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
@ -528,6 +604,12 @@
{
"m_Id": "4afd8280877340cf8f37960bba00cd70"
},
{
"m_Id": "a6126f44bb5c428fb710bb2cd7d6587f"
},
{
"m_Id": "a73f6944d5794d408169a6ae86da40ce"
},
{
"m_Id": "7207d851d0d54d9dbec558d8350cbcf5"
},
@ -556,7 +638,9 @@
"d3263a66-e96d-45f6-bbbd-9b3869d2008d",
"23fc4c5e-606f-4623-9fc8-c425baf7c621",
"fc02a70c-3be1-403c-8f2b-a3d7b2f6bd7a",
"7739fffb-53c8-4ab8-b490-2f422c6bee62"
"7739fffb-53c8-4ab8-b490-2f422c6bee62",
"317ea6aa-c51a-4f75-976a-f291c92ab26e",
"4771a75d-cc06-4d5b-afd1-6afbe93f47c4"
],
"m_PropertyIds": [
1340748427,
@ -567,7 +651,9 @@
592166105,
1641878292,
287326672,
490756011
490756011,
-2125782034,
889685277
],
"m_Dropdowns": [],
"m_DropdownSelectedEntries": []
@ -1042,6 +1128,36 @@
"m_SerializedDescriptor": "SurfaceDescription.Alpha"
}
{
"m_SGVersion": 3,
"m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty",
"m_ObjectId": "708e3009785c4aa69f6e0985da3b277d",
"m_Guid": {
"m_GuidSerialized": "9212fba3-cb0b-4fc7-80f7-cba5204379dd"
},
"m_Name": "EmissionColor",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "EmissionColor",
"m_DefaultReferenceName": "_EmissionColor",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"r": 0.0,
"g": 0.0,
"b": 0.0,
"a": 0.0
},
"isMainColor": false,
"m_ColorMode": 1
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
@ -1246,6 +1362,12 @@
},
{
"m_Id": "b1faea9e904b4eab8c5266d6c0565f0d"
},
{
"m_Id": "708e3009785c4aa69f6e0985da3b277d"
},
{
"m_Id": "a70c5ed980b14805943aca6a4dac34d0"
}
]
}
@ -1452,6 +1574,79 @@
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "a6126f44bb5c428fb710bb2cd7d6587f",
"m_Id": -2125782034,
"m_DisplayName": "EmissionColor",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_EmissionColor",
"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.Internal.Texture2DShaderProperty",
"m_ObjectId": "a70c5ed980b14805943aca6a4dac34d0",
"m_Guid": {
"m_GuidSerialized": "384f5731-3f0b-49cf-9452-a49898a1db5f"
},
"m_Name": "EmissionMap",
"m_DefaultRefNameVersion": 1,
"m_RefNameGeneratedByDisplayName": "EmissionMap",
"m_DefaultReferenceName": "_EmissionMap",
"m_OverrideReferenceName": "",
"m_GeneratePropertyBlock": true,
"m_UseCustomSlotLabel": false,
"m_CustomSlotLabel": "",
"m_DismissedVersion": 0,
"m_Precision": 0,
"overrideHLSLDeclaration": false,
"hlslDeclarationOverride": 0,
"m_Hidden": false,
"m_Value": {
"m_SerializedTexture": "{\"texture\":{\"fileID\":2800000,\"guid\":\"09e6225be3a2a43489e11a41cb198377\",\"type\":3}}",
"m_Guid": ""
},
"isMainTexture": false,
"useTilingAndOffset": false,
"m_Modifiable": true,
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DInputMaterialSlot",
"m_ObjectId": "a73f6944d5794d408169a6ae86da40ce",
"m_Id": 889685277,
"m_DisplayName": "EmissionMap",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "_EmissionMap",
"m_StageCapability": 2,
"m_BareResource": false,
"m_Texture": {
"m_SerializedTexture": "",
"m_Guid": ""
},
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
@ -1639,7 +1834,7 @@
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
"a": 1.0
},
"isMainColor": true,
"m_ColorMode": 0
@ -1703,6 +1898,19 @@
"m_SupportVFX": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Texture2DMaterialSlot",
"m_ObjectId": "cd0a74ac28974fdead1bf17f9d8a7751",
"m_Id": 0,
"m_DisplayName": "EmissionMap",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_BareResource": false
}
{
"m_SGVersion": 2,
"m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget",
@ -1724,6 +1932,31 @@
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
"m_ObjectId": "d09ad54764c84f3aab56efa384981cea",
"m_Id": 0,
"m_DisplayName": "EmissionColor",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_DefaultValue": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"w": 0.0
},
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
@ -1979,3 +2212,39 @@
"m_Labels": []
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.PropertyNode",
"m_ObjectId": "fe0e2c9b1312432cbe511bdccc98a1dc",
"m_Group": {
"m_Id": ""
},
"m_Name": "Property",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 6.6666717529296879,
"y": 402.0,
"width": 154.00001525878907,
"height": 36.0
}
},
"m_Slots": [
{
"m_Id": "cd0a74ac28974fdead1bf17f9d8a7751"
}
],
"synonyms": [],
"m_Precision": 0,
"m_PreviewExpanded": true,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
},
"m_Property": {
"m_Id": "a70c5ed980b14805943aca6a4dac34d0"
}
}

View File

@ -502,10 +502,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -780.0000610351563,
"y": 222.66671752929688,
"width": 132.00006103515626,
"height": 36.000030517578128
"x": -610.0,
"y": 180.0,
"width": 132.00003051757813,
"height": 36.0
}
},
"m_Slots": [
@ -726,9 +726,9 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -780.0,
"y": 330.666748046875,
"width": 159.33331298828126,
"x": -637.3333129882813,
"y": 288.0,
"width": 159.33334350585938,
"height": 36.0
}
},
@ -901,10 +901,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -780.0000610351563,
"y": 258.666748046875,
"width": 133.33331298828126,
"height": 35.999908447265628
"x": -610.0,
"y": 216.0,
"width": 133.33334350585938,
"height": 35.99998474121094
}
},
"m_Slots": [
@ -981,10 +981,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -780.0,
"y": 294.6667175292969,
"width": 172.66668701171876,
"height": 36.000030517578128
"x": -650.6666870117188,
"y": 251.99998474121095,
"width": 172.66671752929688,
"height": 36.00001525878906
}
},
"m_Slots": [
@ -1302,9 +1302,9 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -780.0,
"y": 474.6666564941406,
"width": 138.0,
"x": -616.0,
"y": 432.0,
"width": 138.00003051757813,
"height": 36.0
}
},
@ -1495,10 +1495,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -779.3333129882813,
"y": 402.66668701171877,
"width": 117.33331298828125,
"height": 36.0
"x": -595.3333129882813,
"y": 360.0000305175781,
"width": 117.33334350585938,
"height": 35.999969482421878
}
},
"m_Slots": [
@ -1692,10 +1692,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -780.0,
"y": 546.6666259765625,
"width": 152.66668701171876,
"height": 36.0
"x": -630.6666870117188,
"y": 504.0000305175781,
"width": 152.66671752929688,
"height": 35.999969482421878
}
},
"m_Slots": [
@ -1783,10 +1783,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -779.3333129882813,
"y": 366.66668701171877,
"width": 134.0,
"height": 36.0
"x": -612.0,
"y": 324.0,
"width": 134.00003051757813,
"height": 36.000030517578128
}
},
"m_Slots": [
@ -1864,10 +1864,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -779.3333129882813,
"y": 438.66668701171877,
"x": -698.0,
"y": 396.0,
"width": 206.0,
"height": 35.999969482421878
"height": 36.0
}
},
"m_Slots": [
@ -1900,10 +1900,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -779.3333129882813,
"y": 510.6666564941406,
"width": 134.6666259765625,
"height": 35.999969482421878
"x": -612.6666870117188,
"y": 468.0,
"width": 134.66671752929688,
"height": 36.000030517578128
}
},
"m_Slots": [
@ -1931,7 +1931,7 @@
"m_Group": {
"m_Id": ""
},
"m_Name": "TinyPbr",
"m_Name": "TinyPbr_SubGraph",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
@ -2151,7 +2151,7 @@
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
"a": 1.0
},
"isMainColor": false,
"m_ColorMode": 0
@ -2286,10 +2286,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": -779.3333129882813,
"y": 582.6666259765625,
"width": 154.0,
"height": 35.99993896484375
"x": -630.6666870117188,
"y": 540.0,
"width": 154.00003051757813,
"height": 36.0
}
},
"m_Slots": [

View File

@ -2451,7 +2451,7 @@
"r": 1.0,
"g": 1.0,
"b": 1.0,
"a": 0.0
"a": 1.0
},
"isMainColor": false,
"m_ColorMode": 0

View File

@ -125,6 +125,9 @@
},
{
"m_Id": "3fba216a7770483ebd8ffef83f8d0793"
},
{
"m_Id": "de30d6b26ca94bb29eb937897d6e59f0"
}
],
"m_GroupDatas": [],
@ -326,6 +329,20 @@
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "5eef577c98e34954bf04a2dd7c871f75"
},
"m_SlotId": 4
},
"m_InputSlot": {
"m_Node": {
"m_Id": "de30d6b26ca94bb29eb937897d6e59f0"
},
"m_SlotId": 0
}
},
{
"m_OutputSlot": {
"m_Node": {
@ -475,9 +492,9 @@
},
"m_InputSlot": {
"m_Node": {
"m_Id": "95965af48a8849339faf1a291c791faf"
"m_Id": "de30d6b26ca94bb29eb937897d6e59f0"
},
"m_SlotId": 2
"m_SlotId": 1
}
},
{
@ -508,6 +525,20 @@
"m_SlotId": 3
}
},
{
"m_OutputSlot": {
"m_Node": {
"m_Id": "de30d6b26ca94bb29eb937897d6e59f0"
},
"m_SlotId": 2
},
"m_InputSlot": {
"m_Node": {
"m_Id": "95965af48a8849339faf1a291c791faf"
},
"m_SlotId": 2
}
},
{
"m_OutputSlot": {
"m_Node": {
@ -1701,6 +1732,54 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "435429e6f47e4728b418862d9fb72ba3",
"m_Id": 1,
"m_DisplayName": "B",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "B",
"m_StageCapability": 3,
"m_Value": {
"e00": 2.0,
"e01": 2.0,
"e02": 2.0,
"e03": 2.0,
"e10": 2.0,
"e11": 2.0,
"e12": 2.0,
"e13": 2.0,
"e20": 2.0,
"e21": 2.0,
"e22": 2.0,
"e23": 2.0,
"e30": 2.0,
"e31": 2.0,
"e32": 2.0,
"e33": 2.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
@ -1934,7 +2013,7 @@
},
"m_Name": "Sample Texture 2D",
"m_DrawState": {
"m_Expanded": true,
"m_Expanded": false,
"m_Position": {
"serializedVersion": "2",
"x": -166.0,
@ -2287,6 +2366,54 @@
"m_BareResource": false
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "6c552ae7139a472abc1dd448779f258c",
"m_Id": 2,
"m_DisplayName": "Out",
"m_SlotType": 1,
"m_Hidden": false,
"m_ShaderOutputName": "Out",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Internal.Texture2DShaderProperty",
@ -3416,6 +3543,54 @@
"m_DefaultType": 0
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
"m_ObjectId": "b6816faafcfa4ebea46328c930b2be6c",
"m_Id": 0,
"m_DisplayName": "A",
"m_SlotType": 0,
"m_Hidden": false,
"m_ShaderOutputName": "A",
"m_StageCapability": 3,
"m_Value": {
"e00": 0.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 0.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 0.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 0.0
},
"m_DefaultValue": {
"e00": 1.0,
"e01": 0.0,
"e02": 0.0,
"e03": 0.0,
"e10": 0.0,
"e11": 1.0,
"e12": 0.0,
"e13": 0.0,
"e20": 0.0,
"e21": 0.0,
"e22": 1.0,
"e23": 0.0,
"e30": 0.0,
"e31": 0.0,
"e32": 0.0,
"e33": 1.0
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
@ -3667,6 +3842,49 @@
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
"m_ObjectId": "de30d6b26ca94bb29eb937897d6e59f0",
"m_Group": {
"m_Id": ""
},
"m_Name": "Multiply",
"m_DrawState": {
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 254.0,
"y": -192.66661071777345,
"width": 127.3333740234375,
"height": 119.99995422363281
}
},
"m_Slots": [
{
"m_Id": "b6816faafcfa4ebea46328c930b2be6c"
},
{
"m_Id": "435429e6f47e4728b418862d9fb72ba3"
},
{
"m_Id": "6c552ae7139a472abc1dd448779f258c"
}
],
"synonyms": [
"multiplication",
"times",
"x"
],
"m_Precision": 0,
"m_PreviewExpanded": false,
"m_DismissedVersion": 0,
"m_PreviewMode": 0,
"m_CustomColors": {
"m_SerializableColors": []
}
}
{
"m_SGVersion": 0,
"m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
@ -3741,10 +3959,10 @@
"m_Expanded": true,
"m_Position": {
"serializedVersion": "2",
"x": 253.9999237060547,
"y": -385.9999694824219,
"width": 209.33335876464845,
"height": 303.9999694824219
"x": 254.0,
"y": -509.3332214355469,
"width": 209.33334350585938,
"height": 303.99993896484377
}
},
"m_Slots": [