TestShader.shadergraph 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. {
  2. "m_SGVersion": 3,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "142e8ff92b45459a8a7e15dbaa266607",
  5. "m_Properties": [],
  6. "m_Keywords": [],
  7. "m_Dropdowns": [],
  8. "m_CategoryData": [
  9. {
  10. "m_Id": "50ba98cabebc44d6b829e11da158750c"
  11. }
  12. ],
  13. "m_Nodes": [
  14. {
  15. "m_Id": "fa6750113466431a80ffc6859361d269"
  16. },
  17. {
  18. "m_Id": "76118bb8bfd34bdeaf80d97bd4de7bc2"
  19. },
  20. {
  21. "m_Id": "700a93bc51884ed9821bcb00bf4fc84c"
  22. },
  23. {
  24. "m_Id": "2e546ff177f64ef1b8ea76dfc4210068"
  25. },
  26. {
  27. "m_Id": "83238e03f4054cb797f61dad553fa459"
  28. },
  29. {
  30. "m_Id": "8115657cb5974ffeb12f8ae158feb8d0"
  31. },
  32. {
  33. "m_Id": "2ef38f8c5ced4efb928a3c1a69c77e0f"
  34. },
  35. {
  36. "m_Id": "3ae9f39985e949738f0621f11212d4df"
  37. }
  38. ],
  39. "m_GroupDatas": [],
  40. "m_StickyNoteDatas": [],
  41. "m_Edges": [],
  42. "m_VertexContext": {
  43. "m_Position": {
  44. "x": 56.66664123535156,
  45. "y": -25.33333969116211
  46. },
  47. "m_Blocks": [
  48. {
  49. "m_Id": "fa6750113466431a80ffc6859361d269"
  50. },
  51. {
  52. "m_Id": "76118bb8bfd34bdeaf80d97bd4de7bc2"
  53. },
  54. {
  55. "m_Id": "700a93bc51884ed9821bcb00bf4fc84c"
  56. }
  57. ]
  58. },
  59. "m_FragmentContext": {
  60. "m_Position": {
  61. "x": 42.66667556762695,
  62. "y": 202.66665649414063
  63. },
  64. "m_Blocks": [
  65. {
  66. "m_Id": "2e546ff177f64ef1b8ea76dfc4210068"
  67. },
  68. {
  69. "m_Id": "83238e03f4054cb797f61dad553fa459"
  70. },
  71. {
  72. "m_Id": "8115657cb5974ffeb12f8ae158feb8d0"
  73. },
  74. {
  75. "m_Id": "2ef38f8c5ced4efb928a3c1a69c77e0f"
  76. }
  77. ]
  78. },
  79. "m_PreviewData": {
  80. "serializedMesh": {
  81. "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
  82. "m_Guid": ""
  83. },
  84. "preventRotation": false
  85. },
  86. "m_Path": "Shader Graphs",
  87. "m_GraphPrecision": 1,
  88. "m_PreviewMode": 2,
  89. "m_OutputNode": {
  90. "m_Id": ""
  91. },
  92. "m_ActiveTargets": [
  93. {
  94. "m_Id": "d73629137d5343ba88ffb21afa9357db"
  95. }
  96. ]
  97. }
  98. {
  99. "m_SGVersion": 0,
  100. "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot",
  101. "m_ObjectId": "1a6d41b0de9744c0934f95d5014d302d",
  102. "m_Id": 0,
  103. "m_DisplayName": "Tangent",
  104. "m_SlotType": 0,
  105. "m_Hidden": false,
  106. "m_ShaderOutputName": "Tangent",
  107. "m_StageCapability": 1,
  108. "m_Value": {
  109. "x": 0.0,
  110. "y": 0.0,
  111. "z": 0.0
  112. },
  113. "m_DefaultValue": {
  114. "x": 0.0,
  115. "y": 0.0,
  116. "z": 0.0
  117. },
  118. "m_Labels": [],
  119. "m_Space": 0
  120. }
  121. {
  122. "m_SGVersion": 0,
  123. "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot",
  124. "m_ObjectId": "20ce20c393d34e2eb1ade06a11be783f",
  125. "m_Id": 0,
  126. "m_DisplayName": "Position",
  127. "m_SlotType": 0,
  128. "m_Hidden": false,
  129. "m_ShaderOutputName": "Position",
  130. "m_StageCapability": 1,
  131. "m_Value": {
  132. "x": 0.0,
  133. "y": 0.0,
  134. "z": 0.0
  135. },
  136. "m_DefaultValue": {
  137. "x": 0.0,
  138. "y": 0.0,
  139. "z": 0.0
  140. },
  141. "m_Labels": [],
  142. "m_Space": 0
  143. }
  144. {
  145. "m_SGVersion": 0,
  146. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  147. "m_ObjectId": "2e546ff177f64ef1b8ea76dfc4210068",
  148. "m_Group": {
  149. "m_Id": ""
  150. },
  151. "m_Name": "SurfaceDescription.BaseColor",
  152. "m_DrawState": {
  153. "m_Expanded": true,
  154. "m_Position": {
  155. "serializedVersion": "2",
  156. "x": 0.0,
  157. "y": 0.0,
  158. "width": 0.0,
  159. "height": 0.0
  160. }
  161. },
  162. "m_Slots": [
  163. {
  164. "m_Id": "3ca3f1f5766748158a6d3ef789d2af1e"
  165. }
  166. ],
  167. "synonyms": [],
  168. "m_Precision": 0,
  169. "m_PreviewExpanded": true,
  170. "m_PreviewMode": 0,
  171. "m_CustomColors": {
  172. "m_SerializableColors": []
  173. },
  174. "m_SerializedDescriptor": "SurfaceDescription.BaseColor"
  175. }
  176. {
  177. "m_SGVersion": 0,
  178. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  179. "m_ObjectId": "2ef38f8c5ced4efb928a3c1a69c77e0f",
  180. "m_Group": {
  181. "m_Id": ""
  182. },
  183. "m_Name": "SurfaceDescription.Alpha",
  184. "m_DrawState": {
  185. "m_Expanded": true,
  186. "m_Position": {
  187. "serializedVersion": "2",
  188. "x": 0.0,
  189. "y": 0.0,
  190. "width": 0.0,
  191. "height": 0.0
  192. }
  193. },
  194. "m_Slots": [
  195. {
  196. "m_Id": "501fff68457b448585dd74c29b3a77d5"
  197. }
  198. ],
  199. "synonyms": [],
  200. "m_Precision": 0,
  201. "m_PreviewExpanded": true,
  202. "m_PreviewMode": 0,
  203. "m_CustomColors": {
  204. "m_SerializableColors": []
  205. },
  206. "m_SerializedDescriptor": "SurfaceDescription.Alpha"
  207. }
  208. {
  209. "m_SGVersion": 1,
  210. "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
  211. "m_ObjectId": "3ae9f39985e949738f0621f11212d4df",
  212. "m_Group": {
  213. "m_Id": ""
  214. },
  215. "m_Name": "Custom Function",
  216. "m_DrawState": {
  217. "m_Expanded": true,
  218. "m_Position": {
  219. "serializedVersion": "2",
  220. "x": -298.0000305175781,
  221. "y": -14.666666984558106,
  222. "width": 209.33334350585938,
  223. "height": 246.66665649414063
  224. }
  225. },
  226. "m_Slots": [],
  227. "synonyms": [
  228. "code",
  229. "HLSL"
  230. ],
  231. "m_Precision": 0,
  232. "m_PreviewExpanded": true,
  233. "m_PreviewMode": 0,
  234. "m_CustomColors": {
  235. "m_SerializableColors": []
  236. },
  237. "m_SourceType": 0,
  238. "m_FunctionName": "Enter function name here...",
  239. "m_FunctionSource": "",
  240. "m_FunctionBody": "Enter function body here..."
  241. }
  242. {
  243. "m_SGVersion": 0,
  244. "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot",
  245. "m_ObjectId": "3ca3f1f5766748158a6d3ef789d2af1e",
  246. "m_Id": 0,
  247. "m_DisplayName": "Base Color",
  248. "m_SlotType": 0,
  249. "m_Hidden": false,
  250. "m_ShaderOutputName": "BaseColor",
  251. "m_StageCapability": 2,
  252. "m_Value": {
  253. "x": 0.5,
  254. "y": 0.5,
  255. "z": 0.5
  256. },
  257. "m_DefaultValue": {
  258. "x": 0.0,
  259. "y": 0.0,
  260. "z": 0.0
  261. },
  262. "m_Labels": [],
  263. "m_ColorMode": 0,
  264. "m_DefaultColor": {
  265. "r": 0.5,
  266. "g": 0.5,
  267. "b": 0.5,
  268. "a": 1.0
  269. }
  270. }
  271. {
  272. "m_SGVersion": 0,
  273. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  274. "m_ObjectId": "501fff68457b448585dd74c29b3a77d5",
  275. "m_Id": 0,
  276. "m_DisplayName": "Alpha",
  277. "m_SlotType": 0,
  278. "m_Hidden": false,
  279. "m_ShaderOutputName": "Alpha",
  280. "m_StageCapability": 2,
  281. "m_Value": 1.0,
  282. "m_DefaultValue": 1.0,
  283. "m_Labels": []
  284. }
  285. {
  286. "m_SGVersion": 0,
  287. "m_Type": "UnityEditor.ShaderGraph.CategoryData",
  288. "m_ObjectId": "50ba98cabebc44d6b829e11da158750c",
  289. "m_Name": "",
  290. "m_ChildObjectList": []
  291. }
  292. {
  293. "m_SGVersion": 0,
  294. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  295. "m_ObjectId": "700a93bc51884ed9821bcb00bf4fc84c",
  296. "m_Group": {
  297. "m_Id": ""
  298. },
  299. "m_Name": "VertexDescription.Tangent",
  300. "m_DrawState": {
  301. "m_Expanded": true,
  302. "m_Position": {
  303. "serializedVersion": "2",
  304. "x": 0.0,
  305. "y": 0.0,
  306. "width": 0.0,
  307. "height": 0.0
  308. }
  309. },
  310. "m_Slots": [
  311. {
  312. "m_Id": "1a6d41b0de9744c0934f95d5014d302d"
  313. }
  314. ],
  315. "synonyms": [],
  316. "m_Precision": 0,
  317. "m_PreviewExpanded": true,
  318. "m_PreviewMode": 0,
  319. "m_CustomColors": {
  320. "m_SerializableColors": []
  321. },
  322. "m_SerializedDescriptor": "VertexDescription.Tangent"
  323. }
  324. {
  325. "m_SGVersion": 0,
  326. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  327. "m_ObjectId": "76118bb8bfd34bdeaf80d97bd4de7bc2",
  328. "m_Group": {
  329. "m_Id": ""
  330. },
  331. "m_Name": "VertexDescription.Normal",
  332. "m_DrawState": {
  333. "m_Expanded": true,
  334. "m_Position": {
  335. "serializedVersion": "2",
  336. "x": 0.0,
  337. "y": 0.0,
  338. "width": 0.0,
  339. "height": 0.0
  340. }
  341. },
  342. "m_Slots": [
  343. {
  344. "m_Id": "7d3b3aed8585435c88b79eaec94d5047"
  345. }
  346. ],
  347. "synonyms": [],
  348. "m_Precision": 0,
  349. "m_PreviewExpanded": true,
  350. "m_PreviewMode": 0,
  351. "m_CustomColors": {
  352. "m_SerializableColors": []
  353. },
  354. "m_SerializedDescriptor": "VertexDescription.Normal"
  355. }
  356. {
  357. "m_SGVersion": 0,
  358. "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot",
  359. "m_ObjectId": "7d3b3aed8585435c88b79eaec94d5047",
  360. "m_Id": 0,
  361. "m_DisplayName": "Normal",
  362. "m_SlotType": 0,
  363. "m_Hidden": false,
  364. "m_ShaderOutputName": "Normal",
  365. "m_StageCapability": 1,
  366. "m_Value": {
  367. "x": 0.0,
  368. "y": 0.0,
  369. "z": 0.0
  370. },
  371. "m_DefaultValue": {
  372. "x": 0.0,
  373. "y": 0.0,
  374. "z": 0.0
  375. },
  376. "m_Labels": [],
  377. "m_Space": 0
  378. }
  379. {
  380. "m_SGVersion": 0,
  381. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  382. "m_ObjectId": "8115657cb5974ffeb12f8ae158feb8d0",
  383. "m_Group": {
  384. "m_Id": ""
  385. },
  386. "m_Name": "SurfaceDescription.NormalTS",
  387. "m_DrawState": {
  388. "m_Expanded": true,
  389. "m_Position": {
  390. "serializedVersion": "2",
  391. "x": 0.0,
  392. "y": 0.0,
  393. "width": 0.0,
  394. "height": 0.0
  395. }
  396. },
  397. "m_Slots": [
  398. {
  399. "m_Id": "bc4c747a97e34b38aeacc11718dbbeb5"
  400. }
  401. ],
  402. "synonyms": [],
  403. "m_Precision": 0,
  404. "m_PreviewExpanded": true,
  405. "m_PreviewMode": 0,
  406. "m_CustomColors": {
  407. "m_SerializableColors": []
  408. },
  409. "m_SerializedDescriptor": "SurfaceDescription.NormalTS"
  410. }
  411. {
  412. "m_SGVersion": 0,
  413. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  414. "m_ObjectId": "83238e03f4054cb797f61dad553fa459",
  415. "m_Group": {
  416. "m_Id": ""
  417. },
  418. "m_Name": "SurfaceDescription.SpriteMask",
  419. "m_DrawState": {
  420. "m_Expanded": true,
  421. "m_Position": {
  422. "serializedVersion": "2",
  423. "x": 0.0,
  424. "y": 0.0,
  425. "width": 0.0,
  426. "height": 0.0
  427. }
  428. },
  429. "m_Slots": [
  430. {
  431. "m_Id": "d4f1037d61ac4e0e832371cc29cc5b67"
  432. }
  433. ],
  434. "synonyms": [],
  435. "m_Precision": 0,
  436. "m_PreviewExpanded": true,
  437. "m_PreviewMode": 0,
  438. "m_CustomColors": {
  439. "m_SerializableColors": []
  440. },
  441. "m_SerializedDescriptor": "SurfaceDescription.SpriteMask"
  442. }
  443. {
  444. "m_SGVersion": 0,
  445. "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalSpriteCustomLitSubTarget",
  446. "m_ObjectId": "8d29e508330e428c8c7ede71a3538dd3"
  447. }
  448. {
  449. "m_SGVersion": 0,
  450. "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot",
  451. "m_ObjectId": "bc4c747a97e34b38aeacc11718dbbeb5",
  452. "m_Id": 0,
  453. "m_DisplayName": "Normal (Tangent Space)",
  454. "m_SlotType": 0,
  455. "m_Hidden": false,
  456. "m_ShaderOutputName": "NormalTS",
  457. "m_StageCapability": 2,
  458. "m_Value": {
  459. "x": 0.0,
  460. "y": 0.0,
  461. "z": 0.0
  462. },
  463. "m_DefaultValue": {
  464. "x": 0.0,
  465. "y": 0.0,
  466. "z": 0.0
  467. },
  468. "m_Labels": [],
  469. "m_Space": 3
  470. }
  471. {
  472. "m_SGVersion": 0,
  473. "m_Type": "UnityEditor.ShaderGraph.ColorRGBAMaterialSlot",
  474. "m_ObjectId": "d4f1037d61ac4e0e832371cc29cc5b67",
  475. "m_Id": 0,
  476. "m_DisplayName": "Sprite Mask",
  477. "m_SlotType": 0,
  478. "m_Hidden": false,
  479. "m_ShaderOutputName": "SpriteMask",
  480. "m_StageCapability": 2,
  481. "m_Value": {
  482. "x": 1.0,
  483. "y": 1.0,
  484. "z": 1.0,
  485. "w": 1.0
  486. },
  487. "m_DefaultValue": {
  488. "x": 0.0,
  489. "y": 0.0,
  490. "z": 0.0,
  491. "w": 0.0
  492. },
  493. "m_Labels": []
  494. }
  495. {
  496. "m_SGVersion": 1,
  497. "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget",
  498. "m_ObjectId": "d73629137d5343ba88ffb21afa9357db",
  499. "m_ActiveSubTarget": {
  500. "m_Id": "8d29e508330e428c8c7ede71a3538dd3"
  501. },
  502. "m_AllowMaterialOverride": false,
  503. "m_SurfaceType": 0,
  504. "m_ZTestMode": 4,
  505. "m_ZWriteControl": 0,
  506. "m_AlphaMode": 0,
  507. "m_RenderFace": 2,
  508. "m_AlphaClip": false,
  509. "m_CastShadows": true,
  510. "m_ReceiveShadows": true,
  511. "m_CustomEditorGUI": "",
  512. "m_SupportVFX": false
  513. }
  514. {
  515. "m_SGVersion": 0,
  516. "m_Type": "UnityEditor.ShaderGraph.BlockNode",
  517. "m_ObjectId": "fa6750113466431a80ffc6859361d269",
  518. "m_Group": {
  519. "m_Id": ""
  520. },
  521. "m_Name": "VertexDescription.Position",
  522. "m_DrawState": {
  523. "m_Expanded": true,
  524. "m_Position": {
  525. "serializedVersion": "2",
  526. "x": 0.0,
  527. "y": 0.0,
  528. "width": 0.0,
  529. "height": 0.0
  530. }
  531. },
  532. "m_Slots": [
  533. {
  534. "m_Id": "20ce20c393d34e2eb1ade06a11be783f"
  535. }
  536. ],
  537. "synonyms": [],
  538. "m_Precision": 0,
  539. "m_PreviewExpanded": true,
  540. "m_PreviewMode": 0,
  541. "m_CustomColors": {
  542. "m_SerializableColors": []
  543. },
  544. "m_SerializedDescriptor": "VertexDescription.Position"
  545. }