Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Subgraph Dropdown.shadersubgraph 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. {
  2. "m_SGVersion": 3,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "d80b3371b7084961a777e5341e802c75",
  5. "m_Properties": [],
  6. "m_Keywords": [],
  7. "m_Dropdowns": [
  8. {
  9. "m_Id": "8ad9f8f1d50d42dc8afadfabadc0e660"
  10. }
  11. ],
  12. "m_CategoryData": [
  13. {
  14. "m_Id": "95bc13f53add4320a27e864facb45376"
  15. }
  16. ],
  17. "m_Nodes": [
  18. {
  19. "m_Id": "e52e1eead42d4b1190f0e367559f40d1"
  20. },
  21. {
  22. "m_Id": "500316ce02b449caaaff74b5cc788d43"
  23. },
  24. {
  25. "m_Id": "fe729eadce694bf28f76580a780c8b67"
  26. },
  27. {
  28. "m_Id": "efd9a6b95b484610b042c0b7c3ba799c"
  29. },
  30. {
  31. "m_Id": "52e85d376ba44316a9efa3dc0c72867b"
  32. }
  33. ],
  34. "m_GroupDatas": [],
  35. "m_StickyNoteDatas": [
  36. {
  37. "m_Id": "ecd7813de6f640d587773f3bbfc8a148"
  38. },
  39. {
  40. "m_Id": "7373a770330a4fd6acc5262b53b863f1"
  41. },
  42. {
  43. "m_Id": "d2300de440a442ac8fa123e7b881b35e"
  44. }
  45. ],
  46. "m_Edges": [
  47. {
  48. "m_OutputSlot": {
  49. "m_Node": {
  50. "m_Id": "500316ce02b449caaaff74b5cc788d43"
  51. },
  52. "m_SlotId": 0
  53. },
  54. "m_InputSlot": {
  55. "m_Node": {
  56. "m_Id": "e52e1eead42d4b1190f0e367559f40d1"
  57. },
  58. "m_SlotId": 1
  59. }
  60. },
  61. {
  62. "m_OutputSlot": {
  63. "m_Node": {
  64. "m_Id": "52e85d376ba44316a9efa3dc0c72867b"
  65. },
  66. "m_SlotId": 0
  67. },
  68. "m_InputSlot": {
  69. "m_Node": {
  70. "m_Id": "500316ce02b449caaaff74b5cc788d43"
  71. },
  72. "m_SlotId": 2
  73. }
  74. },
  75. {
  76. "m_OutputSlot": {
  77. "m_Node": {
  78. "m_Id": "efd9a6b95b484610b042c0b7c3ba799c"
  79. },
  80. "m_SlotId": 0
  81. },
  82. "m_InputSlot": {
  83. "m_Node": {
  84. "m_Id": "500316ce02b449caaaff74b5cc788d43"
  85. },
  86. "m_SlotId": 4
  87. }
  88. },
  89. {
  90. "m_OutputSlot": {
  91. "m_Node": {
  92. "m_Id": "fe729eadce694bf28f76580a780c8b67"
  93. },
  94. "m_SlotId": 0
  95. },
  96. "m_InputSlot": {
  97. "m_Node": {
  98. "m_Id": "500316ce02b449caaaff74b5cc788d43"
  99. },
  100. "m_SlotId": 3
  101. }
  102. }
  103. ],
  104. "m_VertexContext": {
  105. "m_Position": {
  106. "x": 0.0,
  107. "y": 0.0
  108. },
  109. "m_Blocks": []
  110. },
  111. "m_FragmentContext": {
  112. "m_Position": {
  113. "x": 0.0,
  114. "y": 0.0
  115. },
  116. "m_Blocks": []
  117. },
  118. "m_PreviewData": {
  119. "serializedMesh": {
  120. "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
  121. "m_Guid": ""
  122. },
  123. "preventRotation": false
  124. },
  125. "m_Path": "Sub Graphs",
  126. "m_GraphPrecision": 1,
  127. "m_PreviewMode": 2,
  128. "m_OutputNode": {
  129. "m_Id": "e52e1eead42d4b1190f0e367559f40d1"
  130. },
  131. "m_SubDatas": [],
  132. "m_ActiveTargets": []
  133. }
  134. {
  135. "m_SGVersion": 0,
  136. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  137. "m_ObjectId": "0844a95b89414c14a8415b32779d6b20",
  138. "m_Id": 3,
  139. "m_DisplayName": "Red",
  140. "m_SlotType": 0,
  141. "m_Hidden": false,
  142. "m_ShaderOutputName": "Red",
  143. "m_StageCapability": 3,
  144. "m_Value": {
  145. "x": 0.0,
  146. "y": 0.0,
  147. "z": 0.0,
  148. "w": 0.0
  149. },
  150. "m_DefaultValue": {
  151. "x": 0.0,
  152. "y": 0.0,
  153. "z": 0.0,
  154. "w": 0.0
  155. }
  156. }
  157. {
  158. "m_SGVersion": 0,
  159. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  160. "m_ObjectId": "3b889d07793f40bca0f9e01614415a32",
  161. "m_Id": 0,
  162. "m_DisplayName": "Out",
  163. "m_SlotType": 1,
  164. "m_Hidden": false,
  165. "m_ShaderOutputName": "Out",
  166. "m_StageCapability": 3,
  167. "m_Value": {
  168. "x": 0.0,
  169. "y": 0.0,
  170. "z": 0.0,
  171. "w": 0.0
  172. },
  173. "m_DefaultValue": {
  174. "x": 0.0,
  175. "y": 0.0,
  176. "z": 0.0,
  177. "w": 0.0
  178. }
  179. }
  180. {
  181. "m_SGVersion": 0,
  182. "m_Type": "UnityEditor.ShaderGraph.DropdownNode",
  183. "m_ObjectId": "500316ce02b449caaaff74b5cc788d43",
  184. "m_Group": {
  185. "m_Id": ""
  186. },
  187. "m_Name": "Color Dropdown",
  188. "m_DrawState": {
  189. "m_Expanded": true,
  190. "m_Position": {
  191. "serializedVersion": "2",
  192. "x": -285.0000305175781,
  193. "y": 0.000015436547982972115,
  194. "width": 153.5,
  195. "height": 142.0
  196. }
  197. },
  198. "m_Slots": [
  199. {
  200. "m_Id": "3b889d07793f40bca0f9e01614415a32"
  201. },
  202. {
  203. "m_Id": "0844a95b89414c14a8415b32779d6b20"
  204. },
  205. {
  206. "m_Id": "54429eaef0954e9b80427b0f533f397d"
  207. },
  208. {
  209. "m_Id": "6ab4ff449d8e4c668c19e55dc73ae3d3"
  210. }
  211. ],
  212. "synonyms": [],
  213. "m_Precision": 0,
  214. "m_PreviewExpanded": false,
  215. "m_DismissedVersion": 0,
  216. "m_PreviewMode": 0,
  217. "m_CustomColors": {
  218. "m_SerializableColors": []
  219. },
  220. "m_Dropdown": {
  221. "m_Id": "8ad9f8f1d50d42dc8afadfabadc0e660"
  222. }
  223. }
  224. {
  225. "m_SGVersion": 1,
  226. "m_Type": "UnityEditor.ShaderGraph.ColorNode",
  227. "m_ObjectId": "52e85d376ba44316a9efa3dc0c72867b",
  228. "m_Group": {
  229. "m_Id": ""
  230. },
  231. "m_Name": "Color",
  232. "m_DrawState": {
  233. "m_Expanded": true,
  234. "m_Position": {
  235. "serializedVersion": "2",
  236. "x": -576.0000610351563,
  237. "y": 125.00004577636719,
  238. "width": 208.00006103515626,
  239. "height": 125.00003051757813
  240. }
  241. },
  242. "m_Slots": [
  243. {
  244. "m_Id": "869f01686b0949cfabf8830194b0103e"
  245. }
  246. ],
  247. "synonyms": [
  248. "rgba"
  249. ],
  250. "m_Precision": 0,
  251. "m_PreviewExpanded": true,
  252. "m_DismissedVersion": 0,
  253. "m_PreviewMode": 0,
  254. "m_CustomColors": {
  255. "m_SerializableColors": []
  256. },
  257. "m_Color": {
  258. "color": {
  259. "r": 0.0,
  260. "g": 0.0,
  261. "b": 1.0,
  262. "a": 1.0
  263. },
  264. "mode": 0
  265. }
  266. }
  267. {
  268. "m_SGVersion": 0,
  269. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  270. "m_ObjectId": "54429eaef0954e9b80427b0f533f397d",
  271. "m_Id": 4,
  272. "m_DisplayName": "Green",
  273. "m_SlotType": 0,
  274. "m_Hidden": false,
  275. "m_ShaderOutputName": "Green",
  276. "m_StageCapability": 3,
  277. "m_Value": {
  278. "x": 0.0,
  279. "y": 0.0,
  280. "z": 0.0,
  281. "w": 0.0
  282. },
  283. "m_DefaultValue": {
  284. "x": 0.0,
  285. "y": 0.0,
  286. "z": 0.0,
  287. "w": 0.0
  288. }
  289. }
  290. {
  291. "m_SGVersion": 0,
  292. "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
  293. "m_ObjectId": "6a41319e942145a78581adf2ccf128c2",
  294. "m_Id": 1,
  295. "m_DisplayName": "Out",
  296. "m_SlotType": 0,
  297. "m_Hidden": false,
  298. "m_ShaderOutputName": "Out",
  299. "m_StageCapability": 3,
  300. "m_Value": {
  301. "x": 0.0,
  302. "y": 0.0,
  303. "z": 0.0,
  304. "w": 0.0
  305. },
  306. "m_DefaultValue": {
  307. "x": 0.0,
  308. "y": 0.0,
  309. "z": 0.0,
  310. "w": 0.0
  311. },
  312. "m_Labels": []
  313. }
  314. {
  315. "m_SGVersion": 0,
  316. "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot",
  317. "m_ObjectId": "6ab4ff449d8e4c668c19e55dc73ae3d3",
  318. "m_Id": 2,
  319. "m_DisplayName": "Blue",
  320. "m_SlotType": 0,
  321. "m_Hidden": false,
  322. "m_ShaderOutputName": "Blue",
  323. "m_StageCapability": 3,
  324. "m_Value": {
  325. "x": 0.0,
  326. "y": 0.0,
  327. "z": 0.0,
  328. "w": 0.0
  329. },
  330. "m_DefaultValue": {
  331. "x": 0.0,
  332. "y": 0.0,
  333. "z": 0.0,
  334. "w": 0.0
  335. }
  336. }
  337. {
  338. "m_SGVersion": 0,
  339. "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
  340. "m_ObjectId": "706054fa9c2043549a3172fded485c9f",
  341. "m_Id": 0,
  342. "m_DisplayName": "Out",
  343. "m_SlotType": 1,
  344. "m_Hidden": false,
  345. "m_ShaderOutputName": "Out",
  346. "m_StageCapability": 3,
  347. "m_Value": {
  348. "x": 0.0,
  349. "y": 0.0,
  350. "z": 0.0,
  351. "w": 0.0
  352. },
  353. "m_DefaultValue": {
  354. "x": 0.0,
  355. "y": 0.0,
  356. "z": 0.0,
  357. "w": 0.0
  358. },
  359. "m_Labels": []
  360. }
  361. {
  362. "m_SGVersion": 0,
  363. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  364. "m_ObjectId": "7373a770330a4fd6acc5262b53b863f1",
  365. "m_Title": "",
  366. "m_Content": "Once created, select the Dropdown in the Blackboard and open the Graph Inspector. From there, you can name the dropdown options and add or remove options.",
  367. "m_TextSize": 0,
  368. "m_Theme": 0,
  369. "m_Position": {
  370. "serializedVersion": "2",
  371. "x": -306.5000305175781,
  372. "y": 160.50001525878907,
  373. "width": 200.00003051757813,
  374. "height": 114.00001525878906
  375. },
  376. "m_Group": {
  377. "m_Id": ""
  378. }
  379. }
  380. {
  381. "m_SGVersion": 0,
  382. "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
  383. "m_ObjectId": "869f01686b0949cfabf8830194b0103e",
  384. "m_Id": 0,
  385. "m_DisplayName": "Out",
  386. "m_SlotType": 1,
  387. "m_Hidden": false,
  388. "m_ShaderOutputName": "Out",
  389. "m_StageCapability": 3,
  390. "m_Value": {
  391. "x": 0.0,
  392. "y": 0.0,
  393. "z": 0.0,
  394. "w": 0.0
  395. },
  396. "m_DefaultValue": {
  397. "x": 0.0,
  398. "y": 0.0,
  399. "z": 0.0,
  400. "w": 0.0
  401. },
  402. "m_Labels": []
  403. }
  404. {
  405. "m_SGVersion": 0,
  406. "m_Type": "UnityEditor.ShaderGraph.ShaderDropdown",
  407. "m_ObjectId": "8ad9f8f1d50d42dc8afadfabadc0e660",
  408. "m_Guid": {
  409. "m_GuidSerialized": "091d04c9-831d-45b6-ba04-ba45ab80f3b9"
  410. },
  411. "m_Name": "Color Dropdown",
  412. "m_DefaultRefNameVersion": 1,
  413. "m_RefNameGeneratedByDisplayName": "Color Dropdown",
  414. "m_DefaultReferenceName": "_Color_Dropdown",
  415. "m_OverrideReferenceName": "",
  416. "m_GeneratePropertyBlock": true,
  417. "m_UseCustomSlotLabel": false,
  418. "m_CustomSlotLabel": "",
  419. "m_DismissedVersion": 0,
  420. "m_Entries": [
  421. {
  422. "id": 3,
  423. "displayName": "Red"
  424. },
  425. {
  426. "id": 4,
  427. "displayName": "Green"
  428. },
  429. {
  430. "id": 2,
  431. "displayName": "Blue"
  432. }
  433. ],
  434. "m_Value": 0
  435. }
  436. {
  437. "m_SGVersion": 0,
  438. "m_Type": "UnityEditor.ShaderGraph.CategoryData",
  439. "m_ObjectId": "95bc13f53add4320a27e864facb45376",
  440. "m_Name": "",
  441. "m_ChildObjectList": [
  442. {
  443. "m_Id": "8ad9f8f1d50d42dc8afadfabadc0e660"
  444. }
  445. ]
  446. }
  447. {
  448. "m_SGVersion": 0,
  449. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  450. "m_ObjectId": "d2300de440a442ac8fa123e7b881b35e",
  451. "m_Title": "",
  452. "m_Content": "This example shows very basic color inputs to the dropdown node, but you can also create complex groups of node logic for each input and the node will switch between them when the user makes a choice using the dropdown UI element on the Subgraph node.",
  453. "m_TextSize": 0,
  454. "m_Theme": 0,
  455. "m_Position": {
  456. "serializedVersion": "2",
  457. "x": -592.0,
  458. "y": 264.0,
  459. "width": 200.0,
  460. "height": 160.0
  461. },
  462. "m_Group": {
  463. "m_Id": ""
  464. }
  465. }
  466. {
  467. "m_SGVersion": 0,
  468. "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
  469. "m_ObjectId": "e52e1eead42d4b1190f0e367559f40d1",
  470. "m_Group": {
  471. "m_Id": ""
  472. },
  473. "m_Name": "Output",
  474. "m_DrawState": {
  475. "m_Expanded": true,
  476. "m_Position": {
  477. "serializedVersion": "2",
  478. "x": 0.0,
  479. "y": 0.0,
  480. "width": 0.0,
  481. "height": 0.0
  482. }
  483. },
  484. "m_Slots": [
  485. {
  486. "m_Id": "6a41319e942145a78581adf2ccf128c2"
  487. }
  488. ],
  489. "synonyms": [],
  490. "m_Precision": 0,
  491. "m_PreviewExpanded": true,
  492. "m_DismissedVersion": 0,
  493. "m_PreviewMode": 0,
  494. "m_CustomColors": {
  495. "m_SerializableColors": []
  496. },
  497. "IsFirstSlotValid": true
  498. }
  499. {
  500. "m_SGVersion": 0,
  501. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  502. "m_ObjectId": "ecd7813de6f640d587773f3bbfc8a148",
  503. "m_Title": "Subgraph Dropdown",
  504. "m_Content": "You can use the Blackboard Add menu to add a Dropdown node to your Subgraph.\n\nWhen the Subgraph is added to a graph asset, the Subgraph node will display the dropdown UI element and allow you to select one of the options.",
  505. "m_TextSize": 0,
  506. "m_Theme": 0,
  507. "m_Position": {
  508. "serializedVersion": "2",
  509. "x": -316.0,
  510. "y": -171.0,
  511. "width": 226.0,
  512. "height": 153.0
  513. },
  514. "m_Group": {
  515. "m_Id": ""
  516. }
  517. }
  518. {
  519. "m_SGVersion": 0,
  520. "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot",
  521. "m_ObjectId": "ef355f2a5d79426c84621b97187f44f5",
  522. "m_Id": 0,
  523. "m_DisplayName": "Out",
  524. "m_SlotType": 1,
  525. "m_Hidden": false,
  526. "m_ShaderOutputName": "Out",
  527. "m_StageCapability": 3,
  528. "m_Value": {
  529. "x": 0.0,
  530. "y": 0.0,
  531. "z": 0.0,
  532. "w": 0.0
  533. },
  534. "m_DefaultValue": {
  535. "x": 0.0,
  536. "y": 0.0,
  537. "z": 0.0,
  538. "w": 0.0
  539. },
  540. "m_Labels": []
  541. }
  542. {
  543. "m_SGVersion": 1,
  544. "m_Type": "UnityEditor.ShaderGraph.ColorNode",
  545. "m_ObjectId": "efd9a6b95b484610b042c0b7c3ba799c",
  546. "m_Group": {
  547. "m_Id": ""
  548. },
  549. "m_Name": "Color",
  550. "m_DrawState": {
  551. "m_Expanded": true,
  552. "m_Position": {
  553. "serializedVersion": "2",
  554. "x": -576.0000610351563,
  555. "y": 0.000015436547982972115,
  556. "width": 208.00006103515626,
  557. "height": 125.00003051757813
  558. }
  559. },
  560. "m_Slots": [
  561. {
  562. "m_Id": "ef355f2a5d79426c84621b97187f44f5"
  563. }
  564. ],
  565. "synonyms": [
  566. "rgba"
  567. ],
  568. "m_Precision": 0,
  569. "m_PreviewExpanded": true,
  570. "m_DismissedVersion": 0,
  571. "m_PreviewMode": 0,
  572. "m_CustomColors": {
  573. "m_SerializableColors": []
  574. },
  575. "m_Color": {
  576. "color": {
  577. "r": 0.0,
  578. "g": 1.0,
  579. "b": 0.0,
  580. "a": 1.0
  581. },
  582. "mode": 0
  583. }
  584. }
  585. {
  586. "m_SGVersion": 1,
  587. "m_Type": "UnityEditor.ShaderGraph.ColorNode",
  588. "m_ObjectId": "fe729eadce694bf28f76580a780c8b67",
  589. "m_Group": {
  590. "m_Id": ""
  591. },
  592. "m_Name": "Color",
  593. "m_DrawState": {
  594. "m_Expanded": true,
  595. "m_Position": {
  596. "serializedVersion": "2",
  597. "x": -576.0000610351563,
  598. "y": -125.00001525878906,
  599. "width": 208.00006103515626,
  600. "height": 125.00003051757813
  601. }
  602. },
  603. "m_Slots": [
  604. {
  605. "m_Id": "706054fa9c2043549a3172fded485c9f"
  606. }
  607. ],
  608. "synonyms": [
  609. "rgba"
  610. ],
  611. "m_Precision": 0,
  612. "m_PreviewExpanded": true,
  613. "m_DismissedVersion": 0,
  614. "m_PreviewMode": 0,
  615. "m_CustomColors": {
  616. "m_SerializableColors": []
  617. },
  618. "m_Color": {
  619. "color": {
  620. "r": 1.0,
  621. "g": 0.0,
  622. "b": 0.0,
  623. "a": 1.0
  624. },
  625. "mode": 0
  626. }
  627. }