Main Light Layer Test.shadersubgraph 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. {
  2. "m_SGVersion": 3,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "6ccc676f731a493fafa9835286dfc528",
  5. "m_Properties": [
  6. {
  7. "m_Id": "7ea1bbbacf460c879f6d8c85fd91750d"
  8. }
  9. ],
  10. "m_Keywords": [
  11. {
  12. "m_Id": "345af8eac8db418a8d795b8f37f55ee8"
  13. }
  14. ],
  15. "m_Dropdowns": [],
  16. "m_CategoryData": [
  17. {
  18. "m_Id": "1a0133ec0b7148738854ac5fbfdb06c6"
  19. }
  20. ],
  21. "m_Nodes": [
  22. {
  23. "m_Id": "0f043bb7e9b9d1849a740f31c19b79a8"
  24. },
  25. {
  26. "m_Id": "3be2118d2270ff818ec5f0f1353e249f"
  27. },
  28. {
  29. "m_Id": "65e443cb15a9fb859a50ebae06e81569"
  30. }
  31. ],
  32. "m_GroupDatas": [],
  33. "m_StickyNoteDatas": [],
  34. "m_Edges": [
  35. {
  36. "m_OutputSlot": {
  37. "m_Node": {
  38. "m_Id": "3be2118d2270ff818ec5f0f1353e249f"
  39. },
  40. "m_SlotId": 4
  41. },
  42. "m_InputSlot": {
  43. "m_Node": {
  44. "m_Id": "0f043bb7e9b9d1849a740f31c19b79a8"
  45. },
  46. "m_SlotId": 4
  47. }
  48. },
  49. {
  50. "m_OutputSlot": {
  51. "m_Node": {
  52. "m_Id": "65e443cb15a9fb859a50ebae06e81569"
  53. },
  54. "m_SlotId": 0
  55. },
  56. "m_InputSlot": {
  57. "m_Node": {
  58. "m_Id": "3be2118d2270ff818ec5f0f1353e249f"
  59. },
  60. "m_SlotId": 0
  61. }
  62. }
  63. ],
  64. "m_VertexContext": {
  65. "m_Position": {
  66. "x": 259.0,
  67. "y": -74.0
  68. },
  69. "m_Blocks": []
  70. },
  71. "m_FragmentContext": {
  72. "m_Position": {
  73. "x": 259.0,
  74. "y": 126.0
  75. },
  76. "m_Blocks": []
  77. },
  78. "m_PreviewData": {
  79. "serializedMesh": {
  80. "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}",
  81. "m_Guid": ""
  82. },
  83. "preventRotation": false
  84. },
  85. "m_Path": "Custom Lighting",
  86. "m_GraphPrecision": 0,
  87. "m_PreviewMode": 2,
  88. "m_OutputNode": {
  89. "m_Id": "0f043bb7e9b9d1849a740f31c19b79a8"
  90. },
  91. "m_ActiveTargets": []
  92. }
  93. {
  94. "m_SGVersion": 0,
  95. "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
  96. "m_ObjectId": "0f043bb7e9b9d1849a740f31c19b79a8",
  97. "m_Group": {
  98. "m_Id": ""
  99. },
  100. "m_Name": "Out_Vector1",
  101. "m_DrawState": {
  102. "m_Expanded": true,
  103. "m_Position": {
  104. "serializedVersion": "2",
  105. "x": 234.0,
  106. "y": -74.0,
  107. "width": 116.0,
  108. "height": 77.0
  109. }
  110. },
  111. "m_Slots": [
  112. {
  113. "m_Id": "d501eb20b0d34223b201b9fba93096bb"
  114. }
  115. ],
  116. "synonyms": [],
  117. "m_Precision": 0,
  118. "m_PreviewExpanded": true,
  119. "m_PreviewMode": 0,
  120. "m_CustomColors": {
  121. "m_SerializableColors": []
  122. },
  123. "IsFirstSlotValid": true
  124. }
  125. {
  126. "m_SGVersion": 0,
  127. "m_Type": "UnityEditor.ShaderGraph.CategoryData",
  128. "m_ObjectId": "1a0133ec0b7148738854ac5fbfdb06c6",
  129. "m_Name": "",
  130. "m_ChildObjectList": [
  131. {
  132. "m_Id": "7ea1bbbacf460c879f6d8c85fd91750d"
  133. },
  134. {
  135. "m_Id": "345af8eac8db418a8d795b8f37f55ee8"
  136. }
  137. ]
  138. }
  139. {
  140. "m_SGVersion": 1,
  141. "m_Type": "UnityEditor.ShaderGraph.ShaderKeyword",
  142. "m_ObjectId": "345af8eac8db418a8d795b8f37f55ee8",
  143. "m_Guid": {
  144. "m_GuidSerialized": "1feaf4d7-0891-4969-9957-9a8a8b3de535"
  145. },
  146. "m_Name": "LightLayers",
  147. "m_DefaultRefNameVersion": 0,
  148. "m_RefNameGeneratedByDisplayName": "",
  149. "m_DefaultReferenceName": "BOOLEAN_DC7B8ACB_ON",
  150. "m_OverrideReferenceName": "_LIGHT_LAYERS",
  151. "m_GeneratePropertyBlock": false,
  152. "m_UseCustomSlotLabel": false,
  153. "m_CustomSlotLabel": "",
  154. "m_KeywordType": 0,
  155. "m_KeywordDefinition": 1,
  156. "m_KeywordScope": 1,
  157. "m_KeywordStages": 2,
  158. "m_Entries": [],
  159. "m_Value": 0,
  160. "m_IsEditable": true
  161. }
  162. {
  163. "m_SGVersion": 0,
  164. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  165. "m_ObjectId": "3a9dcae1e3494abb910c213b91690c8f",
  166. "m_Id": 0,
  167. "m_DisplayName": "Shading",
  168. "m_SlotType": 0,
  169. "m_Hidden": false,
  170. "m_ShaderOutputName": "Shading",
  171. "m_StageCapability": 3,
  172. "m_Value": {
  173. "x": 0.0,
  174. "y": 0.0,
  175. "z": 0.0
  176. },
  177. "m_DefaultValue": {
  178. "x": 0.0,
  179. "y": 0.0,
  180. "z": 0.0
  181. },
  182. "m_Labels": []
  183. }
  184. {
  185. "m_SGVersion": 1,
  186. "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
  187. "m_ObjectId": "3be2118d2270ff818ec5f0f1353e249f",
  188. "m_Group": {
  189. "m_Id": ""
  190. },
  191. "m_Name": "MainLightLayer (Custom Function)",
  192. "m_DrawState": {
  193. "m_Expanded": true,
  194. "m_Position": {
  195. "serializedVersion": "2",
  196. "x": -8.0,
  197. "y": -74.0,
  198. "width": 250.0,
  199. "height": 278.0
  200. }
  201. },
  202. "m_Slots": [
  203. {
  204. "m_Id": "3a9dcae1e3494abb910c213b91690c8f"
  205. },
  206. {
  207. "m_Id": "bdc7fa0ee135493e90e3abe6aab5baa3"
  208. }
  209. ],
  210. "synonyms": [
  211. "code",
  212. "HLSL"
  213. ],
  214. "m_Precision": 0,
  215. "m_PreviewExpanded": false,
  216. "m_PreviewMode": 0,
  217. "m_CustomColors": {
  218. "m_SerializableColors": []
  219. },
  220. "m_SourceType": 0,
  221. "m_FunctionName": "MainLightLayer",
  222. "m_FunctionSource": "5c09ec492074d214fbe1a19781ad15e8",
  223. "m_FunctionBody": "Enter function body here..."
  224. }
  225. {
  226. "m_SGVersion": 0,
  227. "m_Type": "UnityEditor.ShaderGraph.PropertyNode",
  228. "m_ObjectId": "65e443cb15a9fb859a50ebae06e81569",
  229. "m_Group": {
  230. "m_Id": ""
  231. },
  232. "m_Name": "Property",
  233. "m_DrawState": {
  234. "m_Expanded": true,
  235. "m_Position": {
  236. "serializedVersion": "2",
  237. "x": -135.0,
  238. "y": -34.0,
  239. "width": 120.0,
  240. "height": 34.0
  241. }
  242. },
  243. "m_Slots": [
  244. {
  245. "m_Id": "7d190f51c889ce8198ca0ecfe494d421"
  246. }
  247. ],
  248. "synonyms": [],
  249. "m_Precision": 0,
  250. "m_PreviewExpanded": true,
  251. "m_PreviewMode": 0,
  252. "m_CustomColors": {
  253. "m_SerializableColors": []
  254. },
  255. "m_Property": {
  256. "m_Id": "7ea1bbbacf460c879f6d8c85fd91750d"
  257. }
  258. }
  259. {
  260. "m_SGVersion": 0,
  261. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  262. "m_ObjectId": "7d190f51c889ce8198ca0ecfe494d421",
  263. "m_Id": 0,
  264. "m_DisplayName": "Shading",
  265. "m_SlotType": 1,
  266. "m_Hidden": false,
  267. "m_ShaderOutputName": "Out",
  268. "m_StageCapability": 3,
  269. "m_Value": {
  270. "x": 0.0,
  271. "y": 0.0,
  272. "z": 0.0
  273. },
  274. "m_DefaultValue": {
  275. "x": 0.0,
  276. "y": 0.0,
  277. "z": 0.0
  278. },
  279. "m_Labels": [
  280. "X",
  281. "Y",
  282. "Z"
  283. ]
  284. }
  285. {
  286. "m_SGVersion": 1,
  287. "m_Type": "UnityEditor.ShaderGraph.Internal.Vector3ShaderProperty",
  288. "m_ObjectId": "7ea1bbbacf460c879f6d8c85fd91750d",
  289. "m_Guid": {
  290. "m_GuidSerialized": "c7b957cd-dd93-4549-bd10-7676ba0773f3"
  291. },
  292. "m_Name": "Shading",
  293. "m_DefaultRefNameVersion": 0,
  294. "m_RefNameGeneratedByDisplayName": "",
  295. "m_DefaultReferenceName": "Vector3_B87D7B6B",
  296. "m_OverrideReferenceName": "",
  297. "m_GeneratePropertyBlock": true,
  298. "m_UseCustomSlotLabel": false,
  299. "m_CustomSlotLabel": "",
  300. "m_Precision": 0,
  301. "overrideHLSLDeclaration": false,
  302. "hlslDeclarationOverride": 0,
  303. "m_Hidden": false,
  304. "m_Value": {
  305. "x": 0.0,
  306. "y": 0.0,
  307. "z": 0.0,
  308. "w": 0.0
  309. }
  310. }
  311. {
  312. "m_SGVersion": 0,
  313. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  314. "m_ObjectId": "bdc7fa0ee135493e90e3abe6aab5baa3",
  315. "m_Id": 4,
  316. "m_DisplayName": "Out",
  317. "m_SlotType": 1,
  318. "m_Hidden": false,
  319. "m_ShaderOutputName": "Out",
  320. "m_StageCapability": 3,
  321. "m_Value": {
  322. "x": 0.0,
  323. "y": 0.0,
  324. "z": 0.0
  325. },
  326. "m_DefaultValue": {
  327. "x": 0.0,
  328. "y": 0.0,
  329. "z": 0.0
  330. },
  331. "m_Labels": []
  332. }
  333. {
  334. "m_SGVersion": 0,
  335. "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot",
  336. "m_ObjectId": "d501eb20b0d34223b201b9fba93096bb",
  337. "m_Id": 4,
  338. "m_DisplayName": "Out",
  339. "m_SlotType": 0,
  340. "m_Hidden": false,
  341. "m_ShaderOutputName": "Out",
  342. "m_StageCapability": 3,
  343. "m_Value": {
  344. "x": 0.0,
  345. "y": 0.0,
  346. "z": 0.0
  347. },
  348. "m_DefaultValue": {
  349. "x": 0.0,
  350. "y": 0.0,
  351. "z": 0.0
  352. },
  353. "m_Labels": []
  354. }