説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Subgraph Port Defaults.shadersubgraph 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. {
  2. "m_SGVersion": 3,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "88462436e5e942799b58352d3513cf3a",
  5. "m_Properties": [
  6. {
  7. "m_Id": "ce69c51a32284691b56c88eb4d718af5"
  8. }
  9. ],
  10. "m_Keywords": [],
  11. "m_Dropdowns": [],
  12. "m_CategoryData": [
  13. {
  14. "m_Id": "457e16a3b1764ce498e5af2c92aeddfa"
  15. }
  16. ],
  17. "m_Nodes": [
  18. {
  19. "m_Id": "3c01b72d7f0945c586bb40726362681f"
  20. },
  21. {
  22. "m_Id": "f71a795da5c44b748c218f5005fef583"
  23. },
  24. {
  25. "m_Id": "618810e61cb24bcebba0b018f989ad17"
  26. },
  27. {
  28. "m_Id": "d7d05ebde41140889bffe4915706e08f"
  29. },
  30. {
  31. "m_Id": "736e0e42ae6947c89a49f0ddd26bb8b5"
  32. }
  33. ],
  34. "m_GroupDatas": [],
  35. "m_StickyNoteDatas": [
  36. {
  37. "m_Id": "5b8b72af59a04d5d843acfc38855e46a"
  38. },
  39. {
  40. "m_Id": "e976b35d6f33479e9419756c2b246fdd"
  41. },
  42. {
  43. "m_Id": "a3d94bda122241cc875d8a7e8b15edbc"
  44. }
  45. ],
  46. "m_Edges": [
  47. {
  48. "m_OutputSlot": {
  49. "m_Node": {
  50. "m_Id": "618810e61cb24bcebba0b018f989ad17"
  51. },
  52. "m_SlotId": 1
  53. },
  54. "m_InputSlot": {
  55. "m_Node": {
  56. "m_Id": "736e0e42ae6947c89a49f0ddd26bb8b5"
  57. },
  58. "m_SlotId": 2
  59. }
  60. },
  61. {
  62. "m_OutputSlot": {
  63. "m_Node": {
  64. "m_Id": "736e0e42ae6947c89a49f0ddd26bb8b5"
  65. },
  66. "m_SlotId": 3
  67. },
  68. "m_InputSlot": {
  69. "m_Node": {
  70. "m_Id": "3c01b72d7f0945c586bb40726362681f"
  71. },
  72. "m_SlotId": 1
  73. }
  74. },
  75. {
  76. "m_OutputSlot": {
  77. "m_Node": {
  78. "m_Id": "d7d05ebde41140889bffe4915706e08f"
  79. },
  80. "m_SlotId": 0
  81. },
  82. "m_InputSlot": {
  83. "m_Node": {
  84. "m_Id": "736e0e42ae6947c89a49f0ddd26bb8b5"
  85. },
  86. "m_SlotId": 0
  87. }
  88. },
  89. {
  90. "m_OutputSlot": {
  91. "m_Node": {
  92. "m_Id": "d7d05ebde41140889bffe4915706e08f"
  93. },
  94. "m_SlotId": 0
  95. },
  96. "m_InputSlot": {
  97. "m_Node": {
  98. "m_Id": "736e0e42ae6947c89a49f0ddd26bb8b5"
  99. },
  100. "m_SlotId": 1
  101. }
  102. },
  103. {
  104. "m_OutputSlot": {
  105. "m_Node": {
  106. "m_Id": "f71a795da5c44b748c218f5005fef583"
  107. },
  108. "m_SlotId": 0
  109. },
  110. "m_InputSlot": {
  111. "m_Node": {
  112. "m_Id": "618810e61cb24bcebba0b018f989ad17"
  113. },
  114. "m_SlotId": 0
  115. }
  116. }
  117. ],
  118. "m_VertexContext": {
  119. "m_Position": {
  120. "x": 0.0,
  121. "y": 0.0
  122. },
  123. "m_Blocks": []
  124. },
  125. "m_FragmentContext": {
  126. "m_Position": {
  127. "x": 0.0,
  128. "y": 0.0
  129. },
  130. "m_Blocks": []
  131. },
  132. "m_PreviewData": {
  133. "serializedMesh": {
  134. "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
  135. "m_Guid": ""
  136. },
  137. "preventRotation": false
  138. },
  139. "m_Path": "Sub Graphs",
  140. "m_GraphPrecision": 1,
  141. "m_PreviewMode": 2,
  142. "m_OutputNode": {
  143. "m_Id": "3c01b72d7f0945c586bb40726362681f"
  144. },
  145. "m_SubDatas": [],
  146. "m_ActiveTargets": []
  147. }
  148. {
  149. "m_SGVersion": 0,
  150. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  151. "m_ObjectId": "23a7d5d7046944a4ab63ce3539e63947",
  152. "m_Id": 3,
  153. "m_DisplayName": "Out",
  154. "m_SlotType": 1,
  155. "m_Hidden": false,
  156. "m_ShaderOutputName": "Out",
  157. "m_StageCapability": 3,
  158. "m_Value": {
  159. "x": 0.0,
  160. "y": 0.0,
  161. "z": 0.0,
  162. "w": 0.0
  163. },
  164. "m_DefaultValue": {
  165. "x": 0.0,
  166. "y": 0.0,
  167. "z": 0.0,
  168. "w": 0.0
  169. }
  170. }
  171. {
  172. "m_SGVersion": 0,
  173. "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
  174. "m_ObjectId": "312f39dbd0f94bfd9b73c1117d2ffe92",
  175. "m_Id": 1,
  176. "m_DisplayName": "Out",
  177. "m_SlotType": 1,
  178. "m_Hidden": false,
  179. "m_ShaderOutputName": "Out",
  180. "m_StageCapability": 3,
  181. "m_Value": {
  182. "x": 0.0,
  183. "y": 0.0
  184. },
  185. "m_DefaultValue": {
  186. "x": 0.0,
  187. "y": 0.0
  188. },
  189. "m_Labels": []
  190. }
  191. {
  192. "m_SGVersion": 0,
  193. "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
  194. "m_ObjectId": "3951fd4a46e74f129a86aae15e00f78f",
  195. "m_Id": 1,
  196. "m_DisplayName": "Out_Vector4",
  197. "m_SlotType": 0,
  198. "m_Hidden": false,
  199. "m_ShaderOutputName": "Out_Vector4",
  200. "m_StageCapability": 3,
  201. "m_Value": {
  202. "x": 0.0,
  203. "y": 0.0
  204. },
  205. "m_DefaultValue": {
  206. "x": 0.0,
  207. "y": 0.0
  208. },
  209. "m_Labels": []
  210. }
  211. {
  212. "m_SGVersion": 0,
  213. "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
  214. "m_ObjectId": "3c01b72d7f0945c586bb40726362681f",
  215. "m_Group": {
  216. "m_Id": ""
  217. },
  218. "m_Name": "Output",
  219. "m_DrawState": {
  220. "m_Expanded": true,
  221. "m_Position": {
  222. "serializedVersion": "2",
  223. "x": -255.5,
  224. "y": -78.5000228881836,
  225. "width": 119.00004577636719,
  226. "height": 76.99998474121094
  227. }
  228. },
  229. "m_Slots": [
  230. {
  231. "m_Id": "3951fd4a46e74f129a86aae15e00f78f"
  232. }
  233. ],
  234. "synonyms": [],
  235. "m_Precision": 0,
  236. "m_PreviewExpanded": true,
  237. "m_DismissedVersion": 0,
  238. "m_PreviewMode": 0,
  239. "m_CustomColors": {
  240. "m_SerializableColors": []
  241. },
  242. "IsFirstSlotValid": true
  243. }
  244. {
  245. "m_SGVersion": 0,
  246. "m_Type": "UnityEditor.ShaderGraph.CategoryData",
  247. "m_ObjectId": "457e16a3b1764ce498e5af2c92aeddfa",
  248. "m_Name": "",
  249. "m_ChildObjectList": [
  250. {
  251. "m_Id": "ce69c51a32284691b56c88eb4d718af5"
  252. }
  253. ]
  254. }
  255. {
  256. "m_SGVersion": 0,
  257. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  258. "m_ObjectId": "5b8b72af59a04d5d843acfc38855e46a",
  259. "m_Title": "Branch on Input Connection",
  260. "m_Content": "You can use the Branch on Input Connection node to define a default for an input port as shown in this example.",
  261. "m_TextSize": 0,
  262. "m_Theme": 0,
  263. "m_Position": {
  264. "serializedVersion": "2",
  265. "x": -771.0000610351563,
  266. "y": -217.50001525878907,
  267. "width": 330.0000305175781,
  268. "height": 100.00000762939453
  269. },
  270. "m_Group": {
  271. "m_Id": ""
  272. }
  273. }
  274. {
  275. "m_SGVersion": 0,
  276. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  277. "m_ObjectId": "5ec506603efb44b5a8c1819455fd4634",
  278. "m_Id": 1,
  279. "m_DisplayName": "Connected",
  280. "m_SlotType": 0,
  281. "m_Hidden": false,
  282. "m_ShaderOutputName": "Connected",
  283. "m_StageCapability": 3,
  284. "m_Value": {
  285. "x": 1.0,
  286. "y": 1.0,
  287. "z": 1.0,
  288. "w": 1.0
  289. },
  290. "m_DefaultValue": {
  291. "x": 0.0,
  292. "y": 0.0,
  293. "z": 0.0,
  294. "w": 0.0
  295. }
  296. }
  297. {
  298. "m_SGVersion": 1,
  299. "m_Type": "UnityEditor.ShaderGraph.SwizzleNode",
  300. "m_ObjectId": "618810e61cb24bcebba0b018f989ad17",
  301. "m_Group": {
  302. "m_Id": ""
  303. },
  304. "m_Name": "Swizzle",
  305. "m_DrawState": {
  306. "m_Expanded": true,
  307. "m_Position": {
  308. "serializedVersion": "2",
  309. "x": -850.0001220703125,
  310. "y": -17.499996185302736,
  311. "width": 131.0,
  312. "height": 121.50003051757813
  313. }
  314. },
  315. "m_Slots": [
  316. {
  317. "m_Id": "f10cfa1ad94547d994d2108e2ff1028f"
  318. },
  319. {
  320. "m_Id": "312f39dbd0f94bfd9b73c1117d2ffe92"
  321. }
  322. ],
  323. "synonyms": [
  324. "swap",
  325. "reorder",
  326. "component mask"
  327. ],
  328. "m_Precision": 0,
  329. "m_PreviewExpanded": false,
  330. "m_DismissedVersion": 0,
  331. "m_PreviewMode": 0,
  332. "m_CustomColors": {
  333. "m_SerializableColors": []
  334. },
  335. "_maskInput": "xy",
  336. "convertedMask": "xy"
  337. }
  338. {
  339. "m_SGVersion": 0,
  340. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  341. "m_ObjectId": "698312b9f8ca499aaa2b331f4d15b1b6",
  342. "m_Id": 2,
  343. "m_DisplayName": "NotConnected",
  344. "m_SlotType": 0,
  345. "m_Hidden": false,
  346. "m_ShaderOutputName": "NotConnected",
  347. "m_StageCapability": 3,
  348. "m_Value": {
  349. "x": 0.0,
  350. "y": 0.0,
  351. "z": 0.0,
  352. "w": 0.0
  353. },
  354. "m_DefaultValue": {
  355. "x": 0.0,
  356. "y": 0.0,
  357. "z": 0.0,
  358. "w": 0.0
  359. }
  360. }
  361. {
  362. "m_SGVersion": 0,
  363. "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
  364. "m_ObjectId": "6b23368288bc49389b3bd028cb42af78",
  365. "m_Id": 0,
  366. "m_DisplayName": "Out",
  367. "m_SlotType": 1,
  368. "m_Hidden": false,
  369. "m_ShaderOutputName": "Out",
  370. "m_StageCapability": 3,
  371. "m_Value": {
  372. "x": 0.0,
  373. "y": 0.0,
  374. "z": 0.0,
  375. "w": 0.0
  376. },
  377. "m_DefaultValue": {
  378. "x": 0.0,
  379. "y": 0.0,
  380. "z": 0.0,
  381. "w": 0.0
  382. },
  383. "m_Labels": []
  384. }
  385. {
  386. "m_SGVersion": 0,
  387. "m_Type": "UnityEditor.ShaderGraph.PropertyConnectionStateMaterialSlot",
  388. "m_ObjectId": "71decf991fad40189814f465256c0cf6",
  389. "m_Id": 0,
  390. "m_DisplayName": "Input",
  391. "m_SlotType": 0,
  392. "m_Hidden": false,
  393. "m_ShaderOutputName": "Input",
  394. "m_StageCapability": 3
  395. }
  396. {
  397. "m_SGVersion": 0,
  398. "m_Type": "UnityEditor.ShaderGraph.BranchOnInputConnectionNode",
  399. "m_ObjectId": "736e0e42ae6947c89a49f0ddd26bb8b5",
  400. "m_Group": {
  401. "m_Id": ""
  402. },
  403. "m_Name": "Branch On Input Connection",
  404. "m_DrawState": {
  405. "m_Expanded": true,
  406. "m_Position": {
  407. "serializedVersion": "2",
  408. "x": -649.0001220703125,
  409. "y": -78.50001525878906,
  410. "width": 206.00006103515626,
  411. "height": 142.00003051757813
  412. }
  413. },
  414. "m_Slots": [
  415. {
  416. "m_Id": "71decf991fad40189814f465256c0cf6"
  417. },
  418. {
  419. "m_Id": "5ec506603efb44b5a8c1819455fd4634"
  420. },
  421. {
  422. "m_Id": "698312b9f8ca499aaa2b331f4d15b1b6"
  423. },
  424. {
  425. "m_Id": "23a7d5d7046944a4ab63ce3539e63947"
  426. }
  427. ],
  428. "synonyms": [],
  429. "m_Precision": 0,
  430. "m_PreviewExpanded": false,
  431. "m_DismissedVersion": 0,
  432. "m_PreviewMode": 0,
  433. "m_CustomColors": {
  434. "m_SerializableColors": []
  435. }
  436. }
  437. {
  438. "m_SGVersion": 0,
  439. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  440. "m_ObjectId": "a3d94bda122241cc875d8a7e8b15edbc",
  441. "m_Title": "",
  442. "m_Content": "Steps to set up an input port default:\n\n1. Create an Input port for the Subgraph by adding a parameter in the Blackboard.\n\n2. Select the Blackboard parameter and open the Graph Inspector.\n\n3. In the Graph Inspector, check the \"Use Custom Binding\" box for the parameter and type a name in the Label box. This label will be displayed on the input port when nothing is connected.\n\n4. Drag the Blackboard parameter into the Subgraph.\n\n5. Add a Branch on Input Connection node to the Subgraph.\n\n6. Connect the parameter to both the Input and Connected input ports of the Branch on Input Connection node as shown above.\n\n7. Create a node or nodes for the default value and connect the output to the NotConnected input port of the Branch On Input Connection node. Instead of just a single node, you could use a large collection of nodes to define the input port's default behavior if needed.\n\nWith the Branch On Input Connection node set up as described here, the Out port of the node will use what's connected to the Subgraph's input port if there is a connection. If there isn't a connection, it will use the values from the node connected to the NotConnected port.",
  443. "m_TextSize": 0,
  444. "m_Theme": 0,
  445. "m_Position": {
  446. "serializedVersion": "2",
  447. "x": -450.0000305175781,
  448. "y": 103.00001525878906,
  449. "width": 457.0000305175781,
  450. "height": 379.00006103515627
  451. },
  452. "m_Group": {
  453. "m_Id": ""
  454. }
  455. }
  456. {
  457. "m_SGVersion": 1,
  458. "m_Type": "UnityEditor.ShaderGraph.Internal.Vector2ShaderProperty",
  459. "m_ObjectId": "ce69c51a32284691b56c88eb4d718af5",
  460. "m_Guid": {
  461. "m_GuidSerialized": "333ca457-57dd-477c-94b3-381e5aee2591"
  462. },
  463. "m_Name": "UV",
  464. "m_DefaultRefNameVersion": 1,
  465. "m_RefNameGeneratedByDisplayName": "UV",
  466. "m_DefaultReferenceName": "_UV",
  467. "m_OverrideReferenceName": "",
  468. "m_GeneratePropertyBlock": true,
  469. "m_UseCustomSlotLabel": true,
  470. "m_CustomSlotLabel": "UV0",
  471. "m_DismissedVersion": 0,
  472. "m_Precision": 0,
  473. "overrideHLSLDeclaration": false,
  474. "hlslDeclarationOverride": 0,
  475. "m_Hidden": false,
  476. "m_Value": {
  477. "x": 0.0,
  478. "y": 0.0,
  479. "z": 0.0,
  480. "w": 0.0
  481. }
  482. }
  483. {
  484. "m_SGVersion": 0,
  485. "m_Type": "UnityEditor.ShaderGraph.PropertyNode",
  486. "m_ObjectId": "d7d05ebde41140889bffe4915706e08f",
  487. "m_Group": {
  488. "m_Id": ""
  489. },
  490. "m_Name": "Property",
  491. "m_DrawState": {
  492. "m_Expanded": true,
  493. "m_Position": {
  494. "serializedVersion": "2",
  495. "x": -811.5000610351563,
  496. "y": -68.00000762939453,
  497. "width": 92.5,
  498. "height": 34.00000762939453
  499. }
  500. },
  501. "m_Slots": [
  502. {
  503. "m_Id": "ee66369e3f7940a3a96cac757e7708b5"
  504. }
  505. ],
  506. "synonyms": [],
  507. "m_Precision": 0,
  508. "m_PreviewExpanded": true,
  509. "m_DismissedVersion": 0,
  510. "m_PreviewMode": 0,
  511. "m_CustomColors": {
  512. "m_SerializableColors": []
  513. },
  514. "m_Property": {
  515. "m_Id": "ce69c51a32284691b56c88eb4d718af5"
  516. }
  517. }
  518. {
  519. "m_SGVersion": 0,
  520. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  521. "m_ObjectId": "e976b35d6f33479e9419756c2b246fdd",
  522. "m_Title": "",
  523. "m_Content": "In this example, if the user connects something to the Subgraph's UV input port, that connection will be used. But if the UV input port is left without a connection, the UV node above will be used instead - thus making UV0 the default.",
  524. "m_TextSize": 0,
  525. "m_Theme": 0,
  526. "m_Position": {
  527. "serializedVersion": "2",
  528. "x": -781.5000610351563,
  529. "y": 120.00001525878906,
  530. "width": 251.5,
  531. "height": 109.50001525878906
  532. },
  533. "m_Group": {
  534. "m_Id": ""
  535. }
  536. }
  537. {
  538. "m_SGVersion": 0,
  539. "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot",
  540. "m_ObjectId": "ee66369e3f7940a3a96cac757e7708b5",
  541. "m_Id": 0,
  542. "m_DisplayName": "UV",
  543. "m_SlotType": 1,
  544. "m_Hidden": false,
  545. "m_ShaderOutputName": "Out",
  546. "m_StageCapability": 3,
  547. "m_Value": {
  548. "x": 0.0,
  549. "y": 0.0
  550. },
  551. "m_DefaultValue": {
  552. "x": 0.0,
  553. "y": 0.0
  554. },
  555. "m_Labels": []
  556. }
  557. {
  558. "m_SGVersion": 0,
  559. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  560. "m_ObjectId": "f10cfa1ad94547d994d2108e2ff1028f",
  561. "m_Id": 0,
  562. "m_DisplayName": "In",
  563. "m_SlotType": 0,
  564. "m_Hidden": false,
  565. "m_ShaderOutputName": "In",
  566. "m_StageCapability": 3,
  567. "m_Value": {
  568. "x": 0.0,
  569. "y": 0.0,
  570. "z": 0.0,
  571. "w": 0.0
  572. },
  573. "m_DefaultValue": {
  574. "x": 0.0,
  575. "y": 0.0,
  576. "z": 0.0,
  577. "w": 0.0
  578. }
  579. }
  580. {
  581. "m_SGVersion": 0,
  582. "m_Type": "UnityEditor.ShaderGraph.UVNode",
  583. "m_ObjectId": "f71a795da5c44b748c218f5005fef583",
  584. "m_Group": {
  585. "m_Id": ""
  586. },
  587. "m_Name": "UV",
  588. "m_DrawState": {
  589. "m_Expanded": true,
  590. "m_Position": {
  591. "serializedVersion": "2",
  592. "x": -995.0001220703125,
  593. "y": -17.499996185302736,
  594. "width": 145.0,
  595. "height": 128.50001525878907
  596. }
  597. },
  598. "m_Slots": [
  599. {
  600. "m_Id": "6b23368288bc49389b3bd028cb42af78"
  601. }
  602. ],
  603. "synonyms": [
  604. "texcoords",
  605. "coords",
  606. "coordinates"
  607. ],
  608. "m_Precision": 0,
  609. "m_PreviewExpanded": false,
  610. "m_DismissedVersion": 0,
  611. "m_PreviewMode": 0,
  612. "m_CustomColors": {
  613. "m_SerializableColors": []
  614. },
  615. "m_OutputChannel": 0
  616. }