No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainLight.shadersubgraph 9.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. {
  2. "m_SGVersion": 3,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "0c0fb68778114e62b83d099efd6a5560",
  5. "m_Properties": [],
  6. "m_Keywords": [],
  7. "m_Dropdowns": [],
  8. "m_CategoryData": [
  9. {
  10. "m_Id": "0ed8affd0b2e4900b40f1fd3d9e67c01"
  11. }
  12. ],
  13. "m_Nodes": [
  14. {
  15. "m_Id": "1549c79363554810a204f77eb1c3e0df"
  16. },
  17. {
  18. "m_Id": "70d2891fcf6441078175ae15c3935f14"
  19. },
  20. {
  21. "m_Id": "4d2c13a7eb4648b58c30f81052575fa0"
  22. }
  23. ],
  24. "m_GroupDatas": [],
  25. "m_StickyNoteDatas": [
  26. {
  27. "m_Id": "35792eabbe6e4038b09e2f9ba32ea6df"
  28. }
  29. ],
  30. "m_Edges": [
  31. {
  32. "m_OutputSlot": {
  33. "m_Node": {
  34. "m_Id": "4d2c13a7eb4648b58c30f81052575fa0"
  35. },
  36. "m_SlotId": 0
  37. },
  38. "m_InputSlot": {
  39. "m_Node": {
  40. "m_Id": "70d2891fcf6441078175ae15c3935f14"
  41. },
  42. "m_SlotId": 0
  43. }
  44. },
  45. {
  46. "m_OutputSlot": {
  47. "m_Node": {
  48. "m_Id": "70d2891fcf6441078175ae15c3935f14"
  49. },
  50. "m_SlotId": 2
  51. },
  52. "m_InputSlot": {
  53. "m_Node": {
  54. "m_Id": "1549c79363554810a204f77eb1c3e0df"
  55. },
  56. "m_SlotId": 1
  57. }
  58. },
  59. {
  60. "m_OutputSlot": {
  61. "m_Node": {
  62. "m_Id": "70d2891fcf6441078175ae15c3935f14"
  63. },
  64. "m_SlotId": 3
  65. },
  66. "m_InputSlot": {
  67. "m_Node": {
  68. "m_Id": "1549c79363554810a204f77eb1c3e0df"
  69. },
  70. "m_SlotId": 2
  71. }
  72. },
  73. {
  74. "m_OutputSlot": {
  75. "m_Node": {
  76. "m_Id": "70d2891fcf6441078175ae15c3935f14"
  77. },
  78. "m_SlotId": 5
  79. },
  80. "m_InputSlot": {
  81. "m_Node": {
  82. "m_Id": "1549c79363554810a204f77eb1c3e0df"
  83. },
  84. "m_SlotId": 3
  85. }
  86. }
  87. ],
  88. "m_VertexContext": {
  89. "m_Position": {
  90. "x": 0.0,
  91. "y": 0.0
  92. },
  93. "m_Blocks": []
  94. },
  95. "m_FragmentContext": {
  96. "m_Position": {
  97. "x": 0.0,
  98. "y": 0.0
  99. },
  100. "m_Blocks": []
  101. },
  102. "m_PreviewData": {
  103. "serializedMesh": {
  104. "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
  105. "m_Guid": ""
  106. },
  107. "preventRotation": false
  108. },
  109. "m_Path": "Sub Graphs",
  110. "m_GraphPrecision": 1,
  111. "m_PreviewMode": 2,
  112. "m_OutputNode": {
  113. "m_Id": "1549c79363554810a204f77eb1c3e0df"
  114. },
  115. "m_SubDatas": [],
  116. "m_ActiveTargets": []
  117. }
  118. {
  119. "m_SGVersion": 0,
  120. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  121. "m_ObjectId": "09cc1cc7893840c0b3637bb51d47645b",
  122. "m_Id": 3,
  123. "m_DisplayName": "ShadowAtten",
  124. "m_SlotType": 0,
  125. "m_Hidden": false,
  126. "m_ShaderOutputName": "ShadowAtten",
  127. "m_StageCapability": 3,
  128. "m_Value": 0.0,
  129. "m_DefaultValue": 0.0,
  130. "m_Labels": []
  131. }
  132. {
  133. "m_SGVersion": 0,
  134. "m_Type": "UnityEditor.ShaderGraph.CategoryData",
  135. "m_ObjectId": "0ed8affd0b2e4900b40f1fd3d9e67c01",
  136. "m_Name": "",
  137. "m_ChildObjectList": []
  138. }
  139. {
  140. "m_SGVersion": 0,
  141. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  142. "m_ObjectId": "0f87204c3df9471080806c1d4ad538f7",
  143. "m_Id": 1,
  144. "m_DisplayName": "Direction",
  145. "m_SlotType": 0,
  146. "m_Hidden": false,
  147. "m_ShaderOutputName": "Direction",
  148. "m_StageCapability": 3,
  149. "m_Value": {
  150. "x": 0.0,
  151. "y": 0.0,
  152. "z": 0.0
  153. },
  154. "m_DefaultValue": {
  155. "x": 0.0,
  156. "y": 0.0,
  157. "z": 0.0
  158. },
  159. "m_Labels": []
  160. }
  161. {
  162. "m_SGVersion": 0,
  163. "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
  164. "m_ObjectId": "1549c79363554810a204f77eb1c3e0df",
  165. "m_Group": {
  166. "m_Id": ""
  167. },
  168. "m_Name": "Output",
  169. "m_DrawState": {
  170. "m_Expanded": true,
  171. "m_Position": {
  172. "serializedVersion": "2",
  173. "x": 0.0,
  174. "y": 0.0,
  175. "width": 0.0,
  176. "height": 0.0
  177. }
  178. },
  179. "m_Slots": [
  180. {
  181. "m_Id": "0f87204c3df9471080806c1d4ad538f7"
  182. },
  183. {
  184. "m_Id": "d8368764d24a40dcbd978c1378a7260b"
  185. },
  186. {
  187. "m_Id": "09cc1cc7893840c0b3637bb51d47645b"
  188. }
  189. ],
  190. "synonyms": [],
  191. "m_Precision": 0,
  192. "m_PreviewExpanded": true,
  193. "m_DismissedVersion": 0,
  194. "m_PreviewMode": 0,
  195. "m_CustomColors": {
  196. "m_SerializableColors": []
  197. },
  198. "IsFirstSlotValid": true
  199. }
  200. {
  201. "m_SGVersion": 0,
  202. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  203. "m_ObjectId": "35792eabbe6e4038b09e2f9ba32ea6df",
  204. "m_Title": "",
  205. "m_Content": "Using this Custom Function node, we're able to call URP code functions directly in order to get the lighting data that isn't otherwise available in Shader Graph.",
  206. "m_TextSize": 0,
  207. "m_Theme": 0,
  208. "m_Position": {
  209. "serializedVersion": "2",
  210. "x": -252.0,
  211. "y": 146.0,
  212. "width": 216.0,
  213. "height": 100.0
  214. },
  215. "m_Group": {
  216. "m_Id": ""
  217. }
  218. }
  219. {
  220. "m_SGVersion": 0,
  221. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  222. "m_ObjectId": "3e799ddb37634f2b8cc3586c711ffeae",
  223. "m_Id": 0,
  224. "m_DisplayName": "worldPos",
  225. "m_SlotType": 0,
  226. "m_Hidden": false,
  227. "m_ShaderOutputName": "worldPos",
  228. "m_StageCapability": 3,
  229. "m_Value": {
  230. "x": 0.0,
  231. "y": 0.0,
  232. "z": 0.0
  233. },
  234. "m_DefaultValue": {
  235. "x": 0.0,
  236. "y": 0.0,
  237. "z": 0.0
  238. },
  239. "m_Labels": []
  240. }
  241. {
  242. "m_SGVersion": 1,
  243. "m_Type": "UnityEditor.ShaderGraph.PositionNode",
  244. "m_ObjectId": "4d2c13a7eb4648b58c30f81052575fa0",
  245. "m_Group": {
  246. "m_Id": ""
  247. },
  248. "m_Name": "Position",
  249. "m_DrawState": {
  250. "m_Expanded": true,
  251. "m_Position": {
  252. "serializedVersion": "2",
  253. "x": -459.0,
  254. "y": 0.0,
  255. "width": 206.0,
  256. "height": 131.0
  257. }
  258. },
  259. "m_Slots": [
  260. {
  261. "m_Id": "91e62c2f418a4b55a0ea4bf1afca2e2b"
  262. }
  263. ],
  264. "synonyms": [
  265. "location"
  266. ],
  267. "m_Precision": 0,
  268. "m_PreviewExpanded": false,
  269. "m_DismissedVersion": 0,
  270. "m_PreviewMode": 2,
  271. "m_CustomColors": {
  272. "m_SerializableColors": []
  273. },
  274. "m_Space": 4,
  275. "m_PositionSource": 0
  276. }
  277. {
  278. "m_SGVersion": 1,
  279. "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
  280. "m_ObjectId": "70d2891fcf6441078175ae15c3935f14",
  281. "m_Group": {
  282. "m_Id": ""
  283. },
  284. "m_Name": "MainLight (Custom Function)",
  285. "m_DrawState": {
  286. "m_Expanded": true,
  287. "m_Position": {
  288. "serializedVersion": "2",
  289. "x": -252.0,
  290. "y": 0.0,
  291. "width": 218.0,
  292. "height": 142.0
  293. }
  294. },
  295. "m_Slots": [
  296. {
  297. "m_Id": "3e799ddb37634f2b8cc3586c711ffeae"
  298. },
  299. {
  300. "m_Id": "e5d5d5fd021143418488129ad44dd94c"
  301. },
  302. {
  303. "m_Id": "e26b6fea1aea48f5854ae9d1c02d9304"
  304. },
  305. {
  306. "m_Id": "c6c41782f0644d469b2b503a020f22c9"
  307. }
  308. ],
  309. "synonyms": [
  310. "code",
  311. "HLSL"
  312. ],
  313. "m_Precision": 0,
  314. "m_PreviewExpanded": false,
  315. "m_DismissedVersion": 0,
  316. "m_PreviewMode": 0,
  317. "m_CustomColors": {
  318. "m_SerializableColors": []
  319. },
  320. "m_SourceType": 0,
  321. "m_FunctionName": "MainLight",
  322. "m_FunctionSource": "3beadf505dbc54f4cae878435013d751",
  323. "m_FunctionBody": "Enter function body here..."
  324. }
  325. {
  326. "m_SGVersion": 0,
  327. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  328. "m_ObjectId": "91e62c2f418a4b55a0ea4bf1afca2e2b",
  329. "m_Id": 0,
  330. "m_DisplayName": "Out",
  331. "m_SlotType": 1,
  332. "m_Hidden": false,
  333. "m_ShaderOutputName": "Out",
  334. "m_StageCapability": 3,
  335. "m_Value": {
  336. "x": 0.0,
  337. "y": 0.0,
  338. "z": 0.0
  339. },
  340. "m_DefaultValue": {
  341. "x": 0.0,
  342. "y": 0.0,
  343. "z": 0.0
  344. },
  345. "m_Labels": []
  346. }
  347. {
  348. "m_SGVersion": 0,
  349. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  350. "m_ObjectId": "c6c41782f0644d469b2b503a020f22c9",
  351. "m_Id": 5,
  352. "m_DisplayName": "shadowAtten",
  353. "m_SlotType": 1,
  354. "m_Hidden": false,
  355. "m_ShaderOutputName": "shadowAtten",
  356. "m_StageCapability": 3,
  357. "m_Value": 0.0,
  358. "m_DefaultValue": 0.0,
  359. "m_Labels": []
  360. }
  361. {
  362. "m_SGVersion": 0,
  363. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  364. "m_ObjectId": "d8368764d24a40dcbd978c1378a7260b",
  365. "m_Id": 2,
  366. "m_DisplayName": "Color",
  367. "m_SlotType": 0,
  368. "m_Hidden": false,
  369. "m_ShaderOutputName": "Color",
  370. "m_StageCapability": 3,
  371. "m_Value": {
  372. "x": 0.0,
  373. "y": 0.0,
  374. "z": 0.0
  375. },
  376. "m_DefaultValue": {
  377. "x": 0.0,
  378. "y": 0.0,
  379. "z": 0.0
  380. },
  381. "m_Labels": []
  382. }
  383. {
  384. "m_SGVersion": 0,
  385. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  386. "m_ObjectId": "e26b6fea1aea48f5854ae9d1c02d9304",
  387. "m_Id": 3,
  388. "m_DisplayName": "color",
  389. "m_SlotType": 1,
  390. "m_Hidden": false,
  391. "m_ShaderOutputName": "color",
  392. "m_StageCapability": 3,
  393. "m_Value": {
  394. "x": 0.0,
  395. "y": 0.0,
  396. "z": 0.0
  397. },
  398. "m_DefaultValue": {
  399. "x": 0.0,
  400. "y": 0.0,
  401. "z": 0.0
  402. },
  403. "m_Labels": []
  404. }
  405. {
  406. "m_SGVersion": 0,
  407. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  408. "m_ObjectId": "e5d5d5fd021143418488129ad44dd94c",
  409. "m_Id": 2,
  410. "m_DisplayName": "direction",
  411. "m_SlotType": 1,
  412. "m_Hidden": false,
  413. "m_ShaderOutputName": "direction",
  414. "m_StageCapability": 3,
  415. "m_Value": {
  416. "x": 0.0,
  417. "y": 0.0,
  418. "z": 0.0
  419. },
  420. "m_DefaultValue": {
  421. "x": 0.0,
  422. "y": 0.0,
  423. "z": 0.0
  424. },
  425. "m_Labels": []
  426. }