暫無描述
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.

Hash11.shadersubgraph 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. {
  2. "m_SGVersion": 3,
  3. "m_Type": "UnityEditor.ShaderGraph.GraphData",
  4. "m_ObjectId": "06f9e921e934457d847e89724f38b4aa",
  5. "m_Properties": [
  6. {
  7. "m_Id": "824885cbe741440ea17d2d1e241df9e9"
  8. }
  9. ],
  10. "m_Keywords": [],
  11. "m_Dropdowns": [],
  12. "m_CategoryData": [
  13. {
  14. "m_Id": "0179a444c5304e668af24642a0ab024e"
  15. }
  16. ],
  17. "m_Nodes": [
  18. {
  19. "m_Id": "7cd81ecf6c3a4fc7af5d969b135c5117"
  20. },
  21. {
  22. "m_Id": "f329ddd3ccbd40c895e296e64420e5eb"
  23. },
  24. {
  25. "m_Id": "616aa43f2043474cbdc71d15edd7b99c"
  26. }
  27. ],
  28. "m_GroupDatas": [],
  29. "m_StickyNoteDatas": [
  30. {
  31. "m_Id": "ca3839df5ebc49a79b043b35c282704a"
  32. }
  33. ],
  34. "m_Edges": [
  35. {
  36. "m_OutputSlot": {
  37. "m_Node": {
  38. "m_Id": "616aa43f2043474cbdc71d15edd7b99c"
  39. },
  40. "m_SlotId": 0
  41. },
  42. "m_InputSlot": {
  43. "m_Node": {
  44. "m_Id": "f329ddd3ccbd40c895e296e64420e5eb"
  45. },
  46. "m_SlotId": 0
  47. }
  48. },
  49. {
  50. "m_OutputSlot": {
  51. "m_Node": {
  52. "m_Id": "f329ddd3ccbd40c895e296e64420e5eb"
  53. },
  54. "m_SlotId": 1
  55. },
  56. "m_InputSlot": {
  57. "m_Node": {
  58. "m_Id": "7cd81ecf6c3a4fc7af5d969b135c5117"
  59. },
  60. "m_SlotId": 1
  61. }
  62. }
  63. ],
  64. "m_VertexContext": {
  65. "m_Position": {
  66. "x": 0.0,
  67. "y": 0.0
  68. },
  69. "m_Blocks": []
  70. },
  71. "m_FragmentContext": {
  72. "m_Position": {
  73. "x": 0.0,
  74. "y": 0.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": "Sub Graphs",
  86. "m_GraphPrecision": 1,
  87. "m_PreviewMode": 2,
  88. "m_OutputNode": {
  89. "m_Id": "7cd81ecf6c3a4fc7af5d969b135c5117"
  90. },
  91. "m_ActiveTargets": []
  92. }
  93. {
  94. "m_SGVersion": 0,
  95. "m_Type": "UnityEditor.ShaderGraph.CategoryData",
  96. "m_ObjectId": "0179a444c5304e668af24642a0ab024e",
  97. "m_Name": "",
  98. "m_ChildObjectList": [
  99. {
  100. "m_Id": "824885cbe741440ea17d2d1e241df9e9"
  101. }
  102. ]
  103. }
  104. {
  105. "m_SGVersion": 0,
  106. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  107. "m_ObjectId": "0dd5e701abc44740ae78f0350937fee2",
  108. "m_Id": 0,
  109. "m_DisplayName": "In",
  110. "m_SlotType": 1,
  111. "m_Hidden": false,
  112. "m_ShaderOutputName": "Out",
  113. "m_StageCapability": 3,
  114. "m_Value": 0.0,
  115. "m_DefaultValue": 0.0,
  116. "m_Labels": []
  117. }
  118. {
  119. "m_SGVersion": 0,
  120. "m_Type": "UnityEditor.ShaderGraph.PropertyNode",
  121. "m_ObjectId": "616aa43f2043474cbdc71d15edd7b99c",
  122. "m_Group": {
  123. "m_Id": ""
  124. },
  125. "m_Name": "Property",
  126. "m_DrawState": {
  127. "m_Expanded": true,
  128. "m_Position": {
  129. "serializedVersion": "2",
  130. "x": -755.0000610351563,
  131. "y": 443.5000305175781,
  132. "width": 84.5,
  133. "height": 34.000030517578128
  134. }
  135. },
  136. "m_Slots": [
  137. {
  138. "m_Id": "0dd5e701abc44740ae78f0350937fee2"
  139. }
  140. ],
  141. "synonyms": [],
  142. "m_Precision": 0,
  143. "m_PreviewExpanded": true,
  144. "m_DismissedVersion": 0,
  145. "m_PreviewMode": 0,
  146. "m_CustomColors": {
  147. "m_SerializableColors": []
  148. },
  149. "m_Property": {
  150. "m_Id": "824885cbe741440ea17d2d1e241df9e9"
  151. }
  152. }
  153. {
  154. "m_SGVersion": 0,
  155. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  156. "m_ObjectId": "75e5f8553dd24cdc85961e8cdfec1910",
  157. "m_Id": 1,
  158. "m_DisplayName": "Out",
  159. "m_SlotType": 1,
  160. "m_Hidden": false,
  161. "m_ShaderOutputName": "Out",
  162. "m_StageCapability": 3,
  163. "m_Value": 0.0,
  164. "m_DefaultValue": 0.0,
  165. "m_Labels": []
  166. }
  167. {
  168. "m_SGVersion": 0,
  169. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  170. "m_ObjectId": "7bb05a9714e3414da68a94d1284a7686",
  171. "m_Id": 0,
  172. "m_DisplayName": "p",
  173. "m_SlotType": 0,
  174. "m_Hidden": false,
  175. "m_ShaderOutputName": "p",
  176. "m_StageCapability": 3,
  177. "m_Value": 0.0,
  178. "m_DefaultValue": 0.0,
  179. "m_Labels": []
  180. }
  181. {
  182. "m_SGVersion": 0,
  183. "m_Type": "UnityEditor.ShaderGraph.SubGraphOutputNode",
  184. "m_ObjectId": "7cd81ecf6c3a4fc7af5d969b135c5117",
  185. "m_Group": {
  186. "m_Id": ""
  187. },
  188. "m_Name": "Output",
  189. "m_DrawState": {
  190. "m_Expanded": true,
  191. "m_Position": {
  192. "serializedVersion": "2",
  193. "x": -428.0,
  194. "y": 400.66668701171877,
  195. "width": 85.33328247070313,
  196. "height": 76.66665649414063
  197. }
  198. },
  199. "m_Slots": [
  200. {
  201. "m_Id": "b30c1b64b56b4f97a05c85df5427ed6a"
  202. }
  203. ],
  204. "synonyms": [],
  205. "m_Precision": 0,
  206. "m_PreviewExpanded": true,
  207. "m_DismissedVersion": 0,
  208. "m_PreviewMode": 0,
  209. "m_CustomColors": {
  210. "m_SerializableColors": []
  211. },
  212. "IsFirstSlotValid": true
  213. }
  214. {
  215. "m_SGVersion": 1,
  216. "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty",
  217. "m_ObjectId": "824885cbe741440ea17d2d1e241df9e9",
  218. "m_Guid": {
  219. "m_GuidSerialized": "735bb76f-575f-46ab-86cb-2be8c828d70e"
  220. },
  221. "m_Name": "In",
  222. "m_DefaultRefNameVersion": 1,
  223. "m_RefNameGeneratedByDisplayName": "In",
  224. "m_DefaultReferenceName": "_In",
  225. "m_OverrideReferenceName": "",
  226. "m_GeneratePropertyBlock": true,
  227. "m_UseCustomSlotLabel": false,
  228. "m_CustomSlotLabel": "",
  229. "m_DismissedVersion": 0,
  230. "m_Precision": 0,
  231. "overrideHLSLDeclaration": false,
  232. "hlslDeclarationOverride": 0,
  233. "m_Hidden": false,
  234. "m_Value": 0.0,
  235. "m_FloatType": 0,
  236. "m_RangeValues": {
  237. "x": 0.0,
  238. "y": 1.0
  239. }
  240. }
  241. {
  242. "m_SGVersion": 0,
  243. "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot",
  244. "m_ObjectId": "b30c1b64b56b4f97a05c85df5427ed6a",
  245. "m_Id": 1,
  246. "m_DisplayName": "Out",
  247. "m_SlotType": 0,
  248. "m_Hidden": false,
  249. "m_ShaderOutputName": "Out",
  250. "m_StageCapability": 3,
  251. "m_Value": 0.0,
  252. "m_DefaultValue": 0.0,
  253. "m_Labels": []
  254. }
  255. {
  256. "m_SGVersion": 0,
  257. "m_Type": "UnityEditor.ShaderGraph.StickyNoteData",
  258. "m_ObjectId": "ca3839df5ebc49a79b043b35c282704a",
  259. "m_Title": "",
  260. "m_Content": "Generates a random output value for every unique input value.\n\nThis one receives a float and outputs a Float.",
  261. "m_TextSize": 0,
  262. "m_Theme": 0,
  263. "m_Position": {
  264. "serializedVersion": "2",
  265. "x": -642.0000610351563,
  266. "y": 300.5000305175781,
  267. "width": 200.00003051757813,
  268. "height": 100.0
  269. },
  270. "m_Group": {
  271. "m_Id": ""
  272. }
  273. }
  274. {
  275. "m_SGVersion": 1,
  276. "m_Type": "UnityEditor.ShaderGraph.CustomFunctionNode",
  277. "m_ObjectId": "f329ddd3ccbd40c895e296e64420e5eb",
  278. "m_Group": {
  279. "m_Id": ""
  280. },
  281. "m_Name": "Hash11Tchou (Custom Function)",
  282. "m_DrawState": {
  283. "m_Expanded": true,
  284. "m_Position": {
  285. "serializedVersion": "2",
  286. "x": -660.0000610351563,
  287. "y": 400.5000305175781,
  288. "width": 230.50006103515626,
  289. "height": 94.00003051757813
  290. }
  291. },
  292. "m_Slots": [
  293. {
  294. "m_Id": "7bb05a9714e3414da68a94d1284a7686"
  295. },
  296. {
  297. "m_Id": "75e5f8553dd24cdc85961e8cdfec1910"
  298. }
  299. ],
  300. "synonyms": [
  301. "code",
  302. "HLSL"
  303. ],
  304. "m_Precision": 0,
  305. "m_PreviewExpanded": false,
  306. "m_DismissedVersion": 0,
  307. "m_PreviewMode": 0,
  308. "m_CustomColors": {
  309. "m_SerializableColors": []
  310. },
  311. "m_SourceType": 1,
  312. "m_FunctionName": "Hash11Tchou",
  313. "m_FunctionSource": "",
  314. "m_FunctionBody": "uint v = (uint) (int) round(p);\r\nv ^= 1103515245U;\r\nv += v;\r\nv *= v; \nv ^= v >> 5u; \nv *= 0x27d4eb2du; \r\nOut = v * (1.0 / float(0xffffffff));"
  315. }