Skypro_Scene_Lights.shadersubgraph 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. {
  2. "m_SGVersion": 2,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "15208e96cd9242e986bb05df5d2d8656",
  5. "m_Properties": [],
  6. "m_Keywords": [],
  7. "m_Nodes": [
  8. {
  9. "m_Id": "24d9c4e09142eb87960fe72a834034b0"
  10. },
  11. {
  12. "m_Id": "47888b2a52dd86829fd0fc83888ca9af"
  13. },
  14. {
  15. "m_Id": "1cbf1e4b76ae2d818589baf16f07dfba"
  16. },
  17. {
  18. "m_Id": "460554c8b8f91385b4245b907f278bcd"
  19. }
  20. ],
  21. "m_GroupDatas": [],
  22. "m_StickyNoteDatas": [],
  23. "m_Edges": [
  24. {
  25. "m_OutputSlot": {
  26. "m_Node": {
  27. "m_Id": "1cbf1e4b76ae2d818589baf16f07dfba"
  28. },
  29. "m_SlotId": 2
  30. },
  31. "m_InputSlot": {
  32. "m_Node": {
  33. "m_Id": "24d9c4e09142eb87960fe72a834034b0"
  34. },
  35. "m_SlotId": 2
  36. }
  37. },
  38. {
  39. "m_OutputSlot": {
  40. "m_Node": {
  41. "m_Id": "460554c8b8f91385b4245b907f278bcd"
  42. },
  43. "m_SlotId": 0
  44. },
  45. "m_InputSlot": {
  46. "m_Node": {
  47. "m_Id": "47888b2a52dd86829fd0fc83888ca9af"
  48. },
  49. "m_SlotId": 4
  50. }
  51. },
  52. {
  53. "m_OutputSlot": {
  54. "m_Node": {
  55. "m_Id": "47888b2a52dd86829fd0fc83888ca9af"
  56. },
  57. "m_SlotId": 0
  58. },
  59. "m_InputSlot": {
  60. "m_Node": {
  61. "m_Id": "24d9c4e09142eb87960fe72a834034b0"
  62. },
  63. "m_SlotId": 0
  64. }
  65. },
  66. {
  67. "m_OutputSlot": {
  68. "m_Node": {
  69. "m_Id": "47888b2a52dd86829fd0fc83888ca9af"
  70. },
  71. "m_SlotId": 1
  72. },
  73. "m_InputSlot": {
  74. "m_Node": {
  75. "m_Id": "24d9c4e09142eb87960fe72a834034b0"
  76. },
  77. "m_SlotId": 1
  78. }
  79. },
  80. {
  81. "m_OutputSlot": {
  82. "m_Node": {
  83. "m_Id": "47888b2a52dd86829fd0fc83888ca9af"
  84. },
  85. "m_SlotId": 2
  86. },
  87. "m_InputSlot": {
  88. "m_Node": {
  89. "m_Id": "1cbf1e4b76ae2d818589baf16f07dfba"
  90. },
  91. "m_SlotId": 1
  92. }
  93. },
  94. {
  95. "m_OutputSlot": {
  96. "m_Node": {
  97. "m_Id": "47888b2a52dd86829fd0fc83888ca9af"
  98. },
  99. "m_SlotId": 3
  100. },
  101. "m_InputSlot": {
  102. "m_Node": {
  103. "m_Id": "1cbf1e4b76ae2d818589baf16f07dfba"
  104. },
  105. "m_SlotId": 0
  106. }
  107. }
  108. ],
  109. "m_VertexContext": {
  110. "m_Position": {
  111. "x": 351.0000305175781,
  112. "y": 8.999998092651368
  113. },
  114. "m_Blocks": []
  115. },
  116. "m_FragmentContext": {
  117. "m_Position": {
  118. "x": 351.0000305175781,
  119. "y": 209.0
  120. },
  121. "m_Blocks": []
  122. },
  123. "m_PreviewData": {
  124. "serializedMesh": {
  125. "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
  126. "m_Guid": ""
  127. }
  128. },
  129. "m_Path": "Sub Graphs",
  130. "m_ConcretePrecision": 0,
  131. "m_PreviewMode": 2,
  132. "m_OutputNode": {
  133. "m_Id": "24d9c4e09142eb87960fe72a834034b0"
  134. },
  135. "m_ActiveTargets": []
  136. }
  137. {
  138. "m_SGVersion": 0,
  139. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  140. "m_ObjectId": "141ec55cc093f98b9075883368c14261",
  141. "m_Id": 2,
  142. "m_DisplayName": "DistanceAttenuation",
  143. "m_SlotType": 1,
  144. "m_Hidden": false,
  145. "m_ShaderOutputName": "DistanceAttenuation",
  146. "m_StageCapability": 3,
  147. "m_Value": 0.0,
  148. "m_DefaultValue": 0.0,
  149. "m_Labels": [
  150. "X"
  151. ]
  152. }
  153. {
  154. "m_SGVersion": 0,
  155. "m_Type": "UnityEditor.ShaderGraph.MultiplyNode",
  156. "m_ObjectId": "1cbf1e4b76ae2d818589baf16f07dfba",
  157. "m_Group": {
  158. "m_Id": ""
  159. },
  160. "m_Name": "Multiply",
  161. "m_DrawState": {
  162. "m_Expanded": true,
  163. "m_Position": {
  164. "serializedVersion": "2",
  165. "x": 164.00001525878907,
  166. "y": 72.00001525878906,
  167. "width": 137.0,
  168. "height": 118.0
  169. }
  170. },
  171. "m_Slots": [
  172. {
  173. "m_Id": "b70689990c3b3c85929ca41cbfb7c175"
  174. },
  175. {
  176. "m_Id": "57f0cbe2e755d788869919ba898a434b"
  177. },
  178. {
  179. "m_Id": "8d280537369863848e712addf0e0122d"
  180. }
  181. ],
  182. "synonyms": [],
  183. "m_Precision": 0,
  184. "m_PreviewExpanded": false,
  185. "m_PreviewMode": 0,
  186. "m_CustomColors": {
  187. "m_SerializableColors": []
  188. }
  189. }
  190. {
  191. "m_SGVersion": 0,
  192. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  193. "m_ObjectId": "1e22176e2ec60b8baaef423036e72958",
  194. "m_Id": 0,
  195. "m_DisplayName": "Out",
  196. "m_SlotType": 1,
  197. "m_Hidden": false,
  198. "m_ShaderOutputName": "Out",
  199. "m_StageCapability": 3,
  200. "m_Value": {
  201. "x": 0.0,
  202. "y": 0.0,
  203. "z": 0.0
  204. },
  205. "m_DefaultValue": {
  206. "x": 0.0,
  207. "y": 0.0,
  208. "z": 0.0
  209. },
  210. "m_Labels": [
  211. "X",
  212. "Y",
  213. "Z"
  214. ]
  215. }
  216. {
  217. "m_SGVersion": 0,
  218. "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
  219. "m_ObjectId": "24d9c4e09142eb87960fe72a834034b0",
  220. "m_Group": {
  221. "m_Id": ""
  222. },
  223. "m_Name": "Output",
  224. "m_DrawState": {
  225. "m_Expanded": false,
  226. "m_Position": {
  227. "serializedVersion": "2",
  228. "x": 349.00006103515627,
  229. "y": 9.999998092651368,
  230. "width": 113.0,
  231. "height": 124.0
  232. }
  233. },
  234. "m_Slots": [
  235. {
  236. "m_Id": "688d2e1f3235948cb16ab9e964a07470"
  237. },
  238. {
  239. "m_Id": "5b4014f6770ec3878a6eee1f334fb428"
  240. },
  241. {
  242. "m_Id": "5834b96a0bf1358690fdcc170621e0bb"
  243. }
  244. ],
  245. "synonyms": [],
  246. "m_Precision": 0,
  247. "m_PreviewExpanded": true,
  248. "m_PreviewMode": 0,
  249. "m_CustomColors": {
  250. "m_SerializableColors": []
  251. },
  252. "IsFirstSlotValid": true
  253. }
  254. {
  255. "m_SGVersion": 0,
  256. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  257. "m_ObjectId": "3891b8ec84680782b5e81b51359e23c5",
  258. "m_Id": 0,
  259. "m_DisplayName": "Direction",
  260. "m_SlotType": 1,
  261. "m_Hidden": false,
  262. "m_ShaderOutputName": "Direction",
  263. "m_StageCapability": 3,
  264. "m_Value": {
  265. "x": 0.0,
  266. "y": 0.0,
  267. "z": 0.0
  268. },
  269. "m_DefaultValue": {
  270. "x": 0.0,
  271. "y": 0.0,
  272. "z": 0.0
  273. },
  274. "m_Labels": [
  275. "X",
  276. "Y",
  277. "Z"
  278. ]
  279. }
  280. {
  281. "m_SGVersion": 1,
  282. "m_Type": "UnityEditor.ShaderGraph.PositionNode",
  283. "m_ObjectId": "460554c8b8f91385b4245b907f278bcd",
  284. "m_Group": {
  285. "m_Id": ""
  286. },
  287. "m_Name": "Position",
  288. "m_DrawState": {
  289. "m_Expanded": true,
  290. "m_Position": {
  291. "serializedVersion": "2",
  292. "x": -359.99993896484377,
  293. "y": 5.00000524520874,
  294. "width": 206.0,
  295. "height": 130.0
  296. }
  297. },
  298. "m_Slots": [
  299. {
  300. "m_Id": "1e22176e2ec60b8baaef423036e72958"
  301. }
  302. ],
  303. "synonyms": [],
  304. "m_Precision": 1,
  305. "m_PreviewExpanded": false,
  306. "m_PreviewMode": 2,
  307. "m_CustomColors": {
  308. "m_SerializableColors": []
  309. },
  310. "m_Space": 4
  311. }
  312. {
  313. "m_SGVersion": 1,
  314. "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
  315. "m_ObjectId": "47888b2a52dd86829fd0fc83888ca9af",
  316. "m_Group": {
  317. "m_Id": ""
  318. },
  319. "m_Name": "GetLightingInformation (Custom Function)",
  320. "m_DrawState": {
  321. "m_Expanded": true,
  322. "m_Position": {
  323. "serializedVersion": "2",
  324. "x": -135.00006103515626,
  325. "y": 3.000002861022949,
  326. "width": 275.0000305175781,
  327. "height": 166.0
  328. }
  329. },
  330. "m_Slots": [
  331. {
  332. "m_Id": "3891b8ec84680782b5e81b51359e23c5"
  333. },
  334. {
  335. "m_Id": "6e75691bbeb2ac85bd7f5ac440f980e7"
  336. },
  337. {
  338. "m_Id": "6c27af4e0ec3a781bba32f458207db6c"
  339. },
  340. {
  341. "m_Id": "141ec55cc093f98b9075883368c14261"
  342. },
  343. {
  344. "m_Id": "f48e44461cb60f8b81c3aa9e227c1f45"
  345. }
  346. ],
  347. "synonyms": [],
  348. "m_Precision": 1,
  349. "m_PreviewExpanded": false,
  350. "m_PreviewMode": 0,
  351. "m_CustomColors": {
  352. "m_SerializableColors": []
  353. },
  354. "m_SourceType": 0,
  355. "m_FunctionName": "GetLightingInformation",
  356. "m_FunctionSource": "db6449133ab1bd441a66c7968a1a2809",
  357. "m_FunctionBody": "Enter function body here..."
  358. }
  359. {
  360. "m_SGVersion": 0,
  361. "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
  362. "m_ObjectId": "57f0cbe2e755d788869919ba898a434b",
  363. "m_Id": 1,
  364. "m_DisplayName": "B",
  365. "m_SlotType": 0,
  366. "m_Hidden": false,
  367. "m_ShaderOutputName": "B",
  368. "m_StageCapability": 3,
  369. "m_Value": {
  370. "e00": 2.0,
  371. "e01": 2.0,
  372. "e02": 2.0,
  373. "e03": 2.0,
  374. "e10": 2.0,
  375. "e11": 2.0,
  376. "e12": 2.0,
  377. "e13": 2.0,
  378. "e20": 2.0,
  379. "e21": 2.0,
  380. "e22": 2.0,
  381. "e23": 2.0,
  382. "e30": 2.0,
  383. "e31": 2.0,
  384. "e32": 2.0,
  385. "e33": 2.0
  386. },
  387. "m_DefaultValue": {
  388. "e00": 1.0,
  389. "e01": 0.0,
  390. "e02": 0.0,
  391. "e03": 0.0,
  392. "e10": 0.0,
  393. "e11": 1.0,
  394. "e12": 0.0,
  395. "e13": 0.0,
  396. "e20": 0.0,
  397. "e21": 0.0,
  398. "e22": 1.0,
  399. "e23": 0.0,
  400. "e30": 0.0,
  401. "e31": 0.0,
  402. "e32": 0.0,
  403. "e33": 1.0
  404. }
  405. }
  406. {
  407. "m_SGVersion": 0,
  408. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  409. "m_ObjectId": "5834b96a0bf1358690fdcc170621e0bb",
  410. "m_Id": 2,
  411. "m_DisplayName": "Attenuation",
  412. "m_SlotType": 0,
  413. "m_Hidden": false,
  414. "m_ShaderOutputName": "Attenuation",
  415. "m_StageCapability": 3,
  416. "m_Value": 0.0,
  417. "m_DefaultValue": 0.0,
  418. "m_Labels": [
  419. "X"
  420. ]
  421. }
  422. {
  423. "m_SGVersion": 0,
  424. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  425. "m_ObjectId": "5b4014f6770ec3878a6eee1f334fb428",
  426. "m_Id": 1,
  427. "m_DisplayName": "Colour",
  428. "m_SlotType": 0,
  429. "m_Hidden": false,
  430. "m_ShaderOutputName": "Colour",
  431. "m_StageCapability": 3,
  432. "m_Value": {
  433. "x": 0.0,
  434. "y": 0.0,
  435. "z": 0.0
  436. },
  437. "m_DefaultValue": {
  438. "x": 0.0,
  439. "y": 0.0,
  440. "z": 0.0
  441. },
  442. "m_Labels": [
  443. "X",
  444. "Y",
  445. "Z"
  446. ]
  447. }
  448. {
  449. "m_SGVersion": 0,
  450. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  451. "m_ObjectId": "688d2e1f3235948cb16ab9e964a07470",
  452. "m_Id": 0,
  453. "m_DisplayName": "Direction",
  454. "m_SlotType": 0,
  455. "m_Hidden": false,
  456. "m_ShaderOutputName": "Direction",
  457. "m_StageCapability": 3,
  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. "X",
  470. "Y",
  471. "Z"
  472. ]
  473. }
  474. {
  475. "m_SGVersion": 0,
  476. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  477. "m_ObjectId": "6c27af4e0ec3a781bba32f458207db6c",
  478. "m_Id": 3,
  479. "m_DisplayName": "ShadowAttenuation",
  480. "m_SlotType": 1,
  481. "m_Hidden": false,
  482. "m_ShaderOutputName": "ShadowAttenuation",
  483. "m_StageCapability": 3,
  484. "m_Value": 0.0,
  485. "m_DefaultValue": 0.0,
  486. "m_Labels": [
  487. "X"
  488. ]
  489. }
  490. {
  491. "m_SGVersion": 0,
  492. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  493. "m_ObjectId": "6e75691bbeb2ac85bd7f5ac440f980e7",
  494. "m_Id": 1,
  495. "m_DisplayName": "Color",
  496. "m_SlotType": 1,
  497. "m_Hidden": false,
  498. "m_ShaderOutputName": "Color",
  499. "m_StageCapability": 3,
  500. "m_Value": {
  501. "x": 0.0,
  502. "y": 0.0,
  503. "z": 0.0
  504. },
  505. "m_DefaultValue": {
  506. "x": 0.0,
  507. "y": 0.0,
  508. "z": 0.0
  509. },
  510. "m_Labels": [
  511. "X",
  512. "Y",
  513. "Z"
  514. ]
  515. }
  516. {
  517. "m_SGVersion": 0,
  518. "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
  519. "m_ObjectId": "8d280537369863848e712addf0e0122d",
  520. "m_Id": 2,
  521. "m_DisplayName": "Out",
  522. "m_SlotType": 1,
  523. "m_Hidden": false,
  524. "m_ShaderOutputName": "Out",
  525. "m_StageCapability": 3,
  526. "m_Value": {
  527. "e00": 0.0,
  528. "e01": 0.0,
  529. "e02": 0.0,
  530. "e03": 0.0,
  531. "e10": 0.0,
  532. "e11": 0.0,
  533. "e12": 0.0,
  534. "e13": 0.0,
  535. "e20": 0.0,
  536. "e21": 0.0,
  537. "e22": 0.0,
  538. "e23": 0.0,
  539. "e30": 0.0,
  540. "e31": 0.0,
  541. "e32": 0.0,
  542. "e33": 0.0
  543. },
  544. "m_DefaultValue": {
  545. "e00": 1.0,
  546. "e01": 0.0,
  547. "e02": 0.0,
  548. "e03": 0.0,
  549. "e10": 0.0,
  550. "e11": 1.0,
  551. "e12": 0.0,
  552. "e13": 0.0,
  553. "e20": 0.0,
  554. "e21": 0.0,
  555. "e22": 1.0,
  556. "e23": 0.0,
  557. "e30": 0.0,
  558. "e31": 0.0,
  559. "e32": 0.0,
  560. "e33": 1.0
  561. }
  562. }
  563. {
  564. "m_SGVersion": 0,
  565. "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot",
  566. "m_ObjectId": "b70689990c3b3c85929ca41cbfb7c175",
  567. "m_Id": 0,
  568. "m_DisplayName": "A",
  569. "m_SlotType": 0,
  570. "m_Hidden": false,
  571. "m_ShaderOutputName": "A",
  572. "m_StageCapability": 3,
  573. "m_Value": {
  574. "e00": 0.0,
  575. "e01": 0.0,
  576. "e02": 0.0,
  577. "e03": 0.0,
  578. "e10": 0.0,
  579. "e11": 0.0,
  580. "e12": 0.0,
  581. "e13": 0.0,
  582. "e20": 0.0,
  583. "e21": 0.0,
  584. "e22": 0.0,
  585. "e23": 0.0,
  586. "e30": 0.0,
  587. "e31": 0.0,
  588. "e32": 0.0,
  589. "e33": 0.0
  590. },
  591. "m_DefaultValue": {
  592. "e00": 1.0,
  593. "e01": 0.0,
  594. "e02": 0.0,
  595. "e03": 0.0,
  596. "e10": 0.0,
  597. "e11": 1.0,
  598. "e12": 0.0,
  599. "e13": 0.0,
  600. "e20": 0.0,
  601. "e21": 0.0,
  602. "e22": 1.0,
  603. "e23": 0.0,
  604. "e30": 0.0,
  605. "e31": 0.0,
  606. "e32": 0.0,
  607. "e33": 1.0
  608. }
  609. }
  610. {
  611. "m_SGVersion": 0,
  612. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  613. "m_ObjectId": "f48e44461cb60f8b81c3aa9e227c1f45",
  614. "m_Id": 4,
  615. "m_DisplayName": "WorldPos",
  616. "m_SlotType": 0,
  617. "m_Hidden": false,
  618. "m_ShaderOutputName": "WorldPos",
  619. "m_StageCapability": 3,
  620. "m_Value": {
  621. "x": 0.0,
  622. "y": 0.0,
  623. "z": 0.0
  624. },
  625. "m_DefaultValue": {
  626. "x": 0.0,
  627. "y": 0.0,
  628. "z": 0.0
  629. },
  630. "m_Labels": [
  631. "X",
  632. "Y",
  633. "Z"
  634. ]
  635. }