NodesMaterial.hx 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179
  1. package arm.node;
  2. import zui.Nodes;
  3. class NodesMaterial {
  4. public static var categories = ["Input", "Texture", "Color", "Vector", "Converter"];
  5. public static var list: Array<Array<TNode>> = [
  6. [ // Input
  7. {
  8. id: 0,
  9. name: "Attribute",
  10. type: "ATTRIBUTE",
  11. x: 0,
  12. y: 0,
  13. color: 0xffb34f5a,
  14. inputs: [],
  15. outputs: [
  16. {
  17. id: 0,
  18. node_id: 0,
  19. name: "Color",
  20. type: "RGBA",
  21. color: 0xffc7c729,
  22. default_value: [0.8, 0.8, 0.8, 1.0]
  23. },
  24. {
  25. id: 0,
  26. node_id: 0,
  27. name: "Vector",
  28. type: "VECTOR",
  29. color: 0xff6363c7,
  30. default_value: [0.0, 0.0, 0.0]
  31. },
  32. {
  33. id: 0,
  34. node_id: 0,
  35. name: "Fac",
  36. type: "VALUE",
  37. color: 0xffa1a1a1,
  38. default_value: 0.0
  39. }
  40. ],
  41. buttons: [
  42. {
  43. name: "Name",
  44. type: "STRING"
  45. }
  46. ]
  47. },
  48. {
  49. id: 0,
  50. name: "Camera Data",
  51. type: "CAMERA",
  52. x: 0,
  53. y: 0,
  54. color: 0xffb34f5a,
  55. inputs: [],
  56. outputs: [
  57. {
  58. id: 0,
  59. node_id: 0,
  60. name: "View Vector",
  61. type: "VECTOR",
  62. color: 0xff6363c7,
  63. default_value: [0.0, 0.0, 0.0]
  64. },
  65. {
  66. id: 0,
  67. node_id: 0,
  68. name: "View Z Depth",
  69. type: "VALUE",
  70. color: 0xffa1a1a1,
  71. default_value: 0.0
  72. },
  73. {
  74. id: 0,
  75. node_id: 0,
  76. name: "View Distance",
  77. type: "VALUE",
  78. color: 0xffa1a1a1,
  79. default_value: 0.0
  80. }
  81. ],
  82. buttons: []
  83. },
  84. {
  85. id: 0,
  86. name: "Layer",
  87. type: "LAYER", // extension
  88. x: 0,
  89. y: 0,
  90. color: 0xff4982a0,
  91. inputs: [
  92. {
  93. id: 0,
  94. node_id: 0,
  95. name: "Vector",
  96. type: "VECTOR",
  97. color: 0xff6363c7,
  98. default_value: [0.0, 0.0, 0.0]
  99. }
  100. ],
  101. outputs: [
  102. {
  103. id: 0,
  104. node_id: 0,
  105. name: "Base Color",
  106. type: "RGBA",
  107. color: 0xffc7c729,
  108. default_value: [0.0, 0.0, 0.0, 1.0]
  109. },
  110. {
  111. id: 0,
  112. node_id: 0,
  113. name: "Opacity",
  114. type: "VALUE",
  115. color: 0xffa1a1a1,
  116. default_value: 1.0
  117. },
  118. {
  119. id: 0,
  120. node_id: 0,
  121. name: "Occlusion",
  122. type: "VALUE",
  123. color: 0xffa1a1a1,
  124. default_value: 1.0
  125. },
  126. {
  127. id: 0,
  128. node_id: 0,
  129. name: "Roughness",
  130. type: "VALUE",
  131. color: 0xffa1a1a1,
  132. default_value: 1.0
  133. },
  134. {
  135. id: 0,
  136. node_id: 0,
  137. name: "Metallic",
  138. type: "VALUE",
  139. color: 0xffa1a1a1,
  140. default_value: 1.0
  141. },
  142. {
  143. id: 0,
  144. node_id: 0,
  145. name: "Normal Map",
  146. type: "VECTOR",
  147. color: -10238109,
  148. default_value: [0.5, 0.5, 1.0]
  149. },
  150. {
  151. id: 0,
  152. node_id: 0,
  153. name: "Emission",
  154. type: "VALUE",
  155. color: 0xffa1a1a1,
  156. default_value: 1.0
  157. },
  158. {
  159. id: 0,
  160. node_id: 0,
  161. name: "Height",
  162. type: "VALUE",
  163. color: 0xffa1a1a1,
  164. default_value: 1.0
  165. },
  166. {
  167. id: 0,
  168. node_id: 0,
  169. name: "Subsurface",
  170. type: "VALUE",
  171. color: 0xffa1a1a1,
  172. default_value: 1.0
  173. }
  174. ],
  175. buttons: [
  176. {
  177. name: "Layer",
  178. type: "ENUM",
  179. default_value: 0,
  180. data: ""
  181. }
  182. ]
  183. },
  184. {
  185. id: 0,
  186. name: "Layer Mask",
  187. type: "LAYER_MASK", // extension
  188. x: 0,
  189. y: 0,
  190. color: 0xff4982a0,
  191. inputs: [
  192. {
  193. id: 0,
  194. node_id: 0,
  195. name: "Vector",
  196. type: "VECTOR",
  197. color: 0xff6363c7,
  198. default_value: [0.0, 0.0, 0.0]
  199. }
  200. ],
  201. outputs: [
  202. {
  203. id: 0,
  204. node_id: 0,
  205. name: "Value",
  206. type: "VALUE",
  207. color: 0xffa1a1a1,
  208. default_value: 0.0
  209. }
  210. ],
  211. buttons: [
  212. {
  213. name: "Layer",
  214. type: "ENUM",
  215. default_value: 0,
  216. data: ""
  217. }
  218. ]
  219. },
  220. {
  221. id: 0,
  222. name: "Material",
  223. type: "MATERIAL", // extension
  224. x: 0,
  225. y: 0,
  226. color: 0xff4982a0,
  227. inputs: [],
  228. outputs: [
  229. {
  230. id: 0,
  231. node_id: 0,
  232. name: "Base Color",
  233. type: "RGBA",
  234. color: 0xffc7c729,
  235. default_value: [0.0, 0.0, 0.0, 1.0]
  236. },
  237. {
  238. id: 0,
  239. node_id: 0,
  240. name: "Opacity",
  241. type: "VALUE",
  242. color: 0xffa1a1a1,
  243. default_value: 1.0
  244. },
  245. {
  246. id: 0,
  247. node_id: 0,
  248. name: "Occlusion",
  249. type: "VALUE",
  250. color: 0xffa1a1a1,
  251. default_value: 1.0
  252. },
  253. {
  254. id: 0,
  255. node_id: 0,
  256. name: "Roughness",
  257. type: "VALUE",
  258. color: 0xffa1a1a1,
  259. default_value: 1.0
  260. },
  261. {
  262. id: 0,
  263. node_id: 0,
  264. name: "Metallic",
  265. type: "VALUE",
  266. color: 0xffa1a1a1,
  267. default_value: 1.0
  268. },
  269. {
  270. id: 0,
  271. node_id: 0,
  272. name: "Normal Map",
  273. type: "VECTOR",
  274. color: -10238109,
  275. default_value: [0.5, 0.5, 1.0]
  276. },
  277. {
  278. id: 0,
  279. node_id: 0,
  280. name: "Emission",
  281. type: "VALUE",
  282. color: 0xffa1a1a1,
  283. default_value: 1.0
  284. },
  285. {
  286. id: 0,
  287. node_id: 0,
  288. name: "Height",
  289. type: "VALUE",
  290. color: 0xffa1a1a1,
  291. default_value: 1.0
  292. },
  293. {
  294. id: 0,
  295. node_id: 0,
  296. name: "Subsurface",
  297. type: "VALUE",
  298. color: 0xffa1a1a1,
  299. default_value: 1.0
  300. }
  301. ],
  302. buttons: [
  303. {
  304. name: "Material",
  305. type: "ENUM",
  306. default_value: 0,
  307. data: ""
  308. }
  309. ]
  310. },
  311. {
  312. id: 0,
  313. name: "Fresnel",
  314. type: "FRESNEL",
  315. x: 0,
  316. y: 0,
  317. color: 0xffb34f5a,
  318. inputs: [
  319. {
  320. id: 0,
  321. node_id: 0,
  322. name: "IOR",
  323. type: "VALUE",
  324. color: 0xffa1a1a1,
  325. default_value: 1.45,
  326. min: 0,
  327. max: 3
  328. },
  329. {
  330. id: 0,
  331. node_id: 0,
  332. name: "Normal",
  333. type: "VECTOR",
  334. color: 0xff6363c7,
  335. default_value: [0.0, 0.0, 0.0]
  336. }
  337. ],
  338. outputs: [
  339. {
  340. id: 0,
  341. node_id: 0,
  342. name: "Fac",
  343. type: "VALUE",
  344. color: 0xffa1a1a1,
  345. default_value: 0.0
  346. }
  347. ],
  348. buttons: []
  349. },
  350. {
  351. id: 0,
  352. name: "Geometry",
  353. type: "NEW_GEOMETRY",
  354. x: 0,
  355. y: 0,
  356. color: 0xffb34f5a,
  357. inputs: [],
  358. outputs: [
  359. {
  360. id: 0,
  361. node_id: 0,
  362. name: "Position",
  363. type: "VECTOR",
  364. color: 0xff6363c7,
  365. default_value: [0.0, 0.0, 0.0]
  366. },
  367. {
  368. id: 0,
  369. node_id: 0,
  370. name: "Normal",
  371. type: "VECTOR",
  372. color: 0xff6363c7,
  373. default_value: [0.0, 0.0, 0.0]
  374. },
  375. {
  376. id: 0,
  377. node_id: 0,
  378. name: "Tangent",
  379. type: "VECTOR",
  380. color: 0xff6363c7,
  381. default_value: [0.0, 0.0, 0.0]
  382. },
  383. {
  384. id: 0,
  385. node_id: 0,
  386. name: "True Normal",
  387. type: "VECTOR",
  388. color: 0xff6363c7,
  389. default_value: [0.0, 0.0, 0.0]
  390. },
  391. {
  392. id: 0,
  393. node_id: 0,
  394. name: "Incoming",
  395. type: "VECTOR",
  396. color: 0xff6363c7,
  397. default_value: [0.0, 0.0, 0.0]
  398. },
  399. {
  400. id: 0,
  401. node_id: 0,
  402. name: "Parametric",
  403. type: "VECTOR",
  404. color: 0xff6363c7,
  405. default_value: [0.0, 0.0, 0.0]
  406. },
  407. {
  408. id: 0,
  409. node_id: 0,
  410. name: "Backfacing",
  411. type: "VALUE",
  412. color: 0xffa1a1a1,
  413. default_value: 0.0
  414. },
  415. {
  416. id: 0,
  417. node_id: 0,
  418. name: "Pointiness",
  419. type: "VALUE",
  420. color: 0xffa1a1a1,
  421. default_value: 0.0
  422. }
  423. ],
  424. buttons: []
  425. },
  426. {
  427. id: 0,
  428. name: "Layer Weight",
  429. type: "LAYER_WEIGHT",
  430. x: 0,
  431. y: 0,
  432. color: 0xffb34f5a,
  433. inputs: [
  434. {
  435. id: 0,
  436. node_id: 0,
  437. name: "Blend",
  438. type: "VALUE",
  439. color: 0xffa1a1a1,
  440. default_value: 0.5
  441. },
  442. {
  443. id: 0,
  444. node_id: 0,
  445. name: "Normal",
  446. type: "VECTOR",
  447. color: 0xff6363c7,
  448. default_value: [0.0, 0.0, 0.0]
  449. }
  450. ],
  451. outputs: [
  452. {
  453. id: 0,
  454. node_id: 0,
  455. name: "Fresnel",
  456. type: "VALUE",
  457. color: 0xffa1a1a1,
  458. default_value: 0.0
  459. },
  460. {
  461. id: 0,
  462. node_id: 0,
  463. name: "Facing",
  464. type: "VALUE",
  465. color: 0xffa1a1a1,
  466. default_value: 0.0
  467. }
  468. ],
  469. buttons: []
  470. },
  471. {
  472. id: 0,
  473. name: "Object Info",
  474. type: "OBJECT_INFO",
  475. x: 0,
  476. y: 0,
  477. color: 0xffb34f5a,
  478. inputs: [],
  479. outputs: [
  480. {
  481. id: 0,
  482. node_id: 0,
  483. name: "Location",
  484. type: "VECTOR",
  485. color: 0xff6363c7,
  486. default_value: [0.0, 0.0, 0.0]
  487. },
  488. {
  489. id: 0,
  490. node_id: 0,
  491. name: "Object Index",
  492. type: "VALUE",
  493. color: 0xffa1a1a1,
  494. default_value: 0.0
  495. },
  496. {
  497. id: 0,
  498. node_id: 0,
  499. name: "Material Index",
  500. type: "VALUE",
  501. color: 0xffa1a1a1,
  502. default_value: 0.0
  503. },
  504. {
  505. id: 0,
  506. node_id: 0,
  507. name: "Random",
  508. type: "VALUE",
  509. color: 0xffa1a1a1,
  510. default_value: 0.0
  511. }
  512. ],
  513. buttons: []
  514. },
  515. {
  516. id: 0,
  517. name: "RGB",
  518. type: "RGB",
  519. x: 0,
  520. y: 0,
  521. color: 0xffb34f5a,
  522. inputs: [],
  523. outputs: [
  524. {
  525. id: 0,
  526. node_id: 0,
  527. name: "Color",
  528. type: "RGBA",
  529. color: 0xffc7c729,
  530. default_value: [0.5, 0.5, 0.5, 1.0]
  531. }
  532. ],
  533. buttons: [
  534. {
  535. name: "default_value",
  536. type: "RGBA",
  537. output: 0
  538. }
  539. ]
  540. },
  541. {
  542. id: 0,
  543. name: "Tangent",
  544. type: "TANGENT",
  545. x: 0,
  546. y: 0,
  547. color: 0xffb34f5a,
  548. inputs: [],
  549. outputs: [
  550. {
  551. id: 0,
  552. node_id: 0,
  553. name: "Tangent",
  554. type: "VECTOR",
  555. color: 0xff6363c7,
  556. default_value: [0.0, 0.0, 0.0]
  557. }
  558. ],
  559. buttons: []
  560. },
  561. {
  562. id: 0,
  563. name: "Texture Coord",
  564. type: "TEX_COORD",
  565. x: 0,
  566. y: 0,
  567. color: 0xffb34f5a,
  568. inputs: [],
  569. outputs: [
  570. {
  571. id: 0,
  572. node_id: 0,
  573. name: "Generated",
  574. type: "VECTOR",
  575. color: 0xff6363c7,
  576. default_value: [0.0, 0.0, 0.0]
  577. },
  578. {
  579. id: 0,
  580. node_id: 0,
  581. name: "Normal",
  582. type: "VECTOR",
  583. color: 0xff6363c7,
  584. default_value: [0.0, 0.0, 0.0]
  585. },
  586. {
  587. id: 0,
  588. node_id: 0,
  589. name: "UV",
  590. type: "VECTOR",
  591. color: 0xff6363c7,
  592. default_value: [0.0, 0.0, 0.0]
  593. },
  594. {
  595. id: 0,
  596. node_id: 0,
  597. name: "Object",
  598. type: "VECTOR",
  599. color: 0xff6363c7,
  600. default_value: [0.0, 0.0, 0.0]
  601. },
  602. {
  603. id: 0,
  604. node_id: 0,
  605. name: "Camera",
  606. type: "VECTOR",
  607. color: 0xff6363c7,
  608. default_value: [0.0, 0.0, 0.0]
  609. },
  610. {
  611. id: 0,
  612. node_id: 0,
  613. name: "Window",
  614. type: "VECTOR",
  615. color: 0xff6363c7,
  616. default_value: [0.0, 0.0, 0.0]
  617. },
  618. {
  619. id: 0,
  620. node_id: 0,
  621. name: "Reflection",
  622. type: "VECTOR",
  623. color: 0xff6363c7,
  624. default_value: [0.0, 0.0, 0.0]
  625. }
  626. ],
  627. buttons: []
  628. },
  629. {
  630. id: 0,
  631. name: "UV Map",
  632. type: "UVMAP",
  633. x: 0,
  634. y: 0,
  635. color: 0xffb34f5a,
  636. inputs: [],
  637. outputs: [
  638. {
  639. id: 0,
  640. node_id: 0,
  641. name: "UV",
  642. type: "VECTOR",
  643. color: 0xff6363c7,
  644. default_value: [0.0, 0.0, 0.0]
  645. }
  646. ],
  647. buttons: []
  648. },
  649. {
  650. id: 0,
  651. name: "Value",
  652. type: "VALUE",
  653. x: 0,
  654. y: 0,
  655. color: 0xffb34f5a,
  656. inputs: [],
  657. outputs: [
  658. {
  659. id: 0,
  660. node_id: 0,
  661. name: "Value",
  662. type: "VALUE",
  663. color: 0xffa1a1a1,
  664. default_value: 0.5
  665. }
  666. ],
  667. buttons: [
  668. {
  669. name: "default_value",
  670. type: "VALUE",
  671. output: 0,
  672. min: 0.0,
  673. max: 10.0
  674. }
  675. ]
  676. }
  677. ],
  678. // [ // Output
  679. // {
  680. // id: 0,
  681. // name: "Material Output",
  682. // type: "OUTPUT_MATERIAL_PBR",
  683. // x: 0,
  684. // y: 0,
  685. // color: 0xffb34f5a,
  686. // inputs: [
  687. // {
  688. // id: 0,
  689. // node_id: 0,
  690. // name: "Base Color",
  691. // type: "RGBA",
  692. // color: 0xffc7c729,
  693. // default_value: [0.8, 0.8, 0.8, 1.0]
  694. // },
  695. // {
  696. // id: 0,
  697. // node_id: 0,
  698. // name: "Opacity",
  699. // type: "VALUE",
  700. // color: 0xffa1a1a1,
  701. // default_value: 1.0
  702. // },
  703. // {
  704. // id: 0,
  705. // node_id: 0,
  706. // name: "Occlusion",
  707. // type: "VALUE",
  708. // color: 0xffa1a1a1,
  709. // default_value: 1.0
  710. // },
  711. // {
  712. // id: 0,
  713. // node_id: 0,
  714. // name: "Roughness",
  715. // type: "VALUE",
  716. // color: 0xffa1a1a1,
  717. // default_value: 0.1
  718. // },
  719. // {
  720. // id: 0,
  721. // node_id: 0,
  722. // name: "Metallic",
  723. // type: "VALUE",
  724. // color: 0xffa1a1a1,
  725. // default_value: 0.0
  726. // },
  727. // {
  728. // id: 0,
  729. // node_id: 0,
  730. // name: "Normal Map",
  731. // type: "VECTOR",
  732. // color: -10238109,
  733. // default_value: [0.5, 0.5, 1.0]
  734. // },
  735. // {
  736. // id: 0,
  737. // node_id: 0,
  738. // name: "Emission",
  739. // type: "VALUE",
  740. // color: 0xffa1a1a1,
  741. // default_value: 0.0
  742. // },
  743. // {
  744. // id: 0,
  745. // node_id: 0,
  746. // name: "Height",
  747. // type: "VALUE",
  748. // color: 0xffa1a1a1,
  749. // default_value: 0.0
  750. // },
  751. // {
  752. // id: 0,
  753. // node_id: 0,
  754. // name: "Subsurface",
  755. // type: "VALUE",
  756. // color: 0xffa1a1a1,
  757. // default_value: 0.0
  758. // }
  759. // ],
  760. // outputs: [],
  761. // buttons: []
  762. // }
  763. // ],
  764. [ // Texture
  765. {
  766. id: 0,
  767. name: "Brick Texture",
  768. type: "TEX_BRICK",
  769. x: 0,
  770. y: 0,
  771. color: 0xff4982a0,
  772. inputs: [
  773. {
  774. id: 0,
  775. node_id: 0,
  776. name: "Vector",
  777. type: "VECTOR",
  778. color: 0xff6363c7,
  779. default_value: [0.0, 0.0, 0.0]
  780. },
  781. {
  782. id: 0,
  783. node_id: 0,
  784. name: "Color 1",
  785. type: "RGBA",
  786. color: 0xffc7c729,
  787. default_value: [0.8, 0.8, 0.8]
  788. },
  789. {
  790. id: 0,
  791. node_id: 0,
  792. name: "Color 2",
  793. type: "RGBA",
  794. color: 0xffc7c729,
  795. default_value: [0.2, 0.2, 0.2]
  796. },
  797. {
  798. id: 0,
  799. node_id: 0,
  800. name: "Color 3",
  801. type: "RGBA",
  802. color: 0xffc7c729,
  803. default_value: [0.0, 0.0, 0.0]
  804. },
  805. {
  806. id: 0,
  807. node_id: 0,
  808. name: "Scale",
  809. type: "VALUE",
  810. color: 0xffa1a1a1,
  811. default_value: 5.0,
  812. min: 0.0,
  813. max: 10.0
  814. }
  815. ],
  816. outputs: [
  817. {
  818. id: 0,
  819. node_id: 0,
  820. name: "Color",
  821. type: "RGBA",
  822. color: 0xffc7c729,
  823. default_value: [0.8, 0.8, 0.8, 1.0]
  824. },
  825. {
  826. id: 0,
  827. node_id: 0,
  828. name: "Fac",
  829. type: "VALUE",
  830. color: 0xffa1a1a1,
  831. default_value: 1.0
  832. }
  833. ],
  834. buttons: []
  835. },
  836. {
  837. id: 0,
  838. name: "Checker Texture",
  839. type: "TEX_CHECKER",
  840. x: 0,
  841. y: 0,
  842. color: 0xff4982a0,
  843. inputs: [
  844. {
  845. id: 0,
  846. node_id: 0,
  847. name: "Vector",
  848. type: "VECTOR",
  849. color: 0xff6363c7,
  850. default_value: [0.0, 0.0, 0.0]
  851. },
  852. {
  853. id: 0,
  854. node_id: 0,
  855. name: "Color 1",
  856. type: "RGBA",
  857. color: 0xffc7c729,
  858. default_value: [0.8, 0.8, 0.8]
  859. },
  860. {
  861. id: 0,
  862. node_id: 0,
  863. name: "Color 2",
  864. type: "RGBA",
  865. color: 0xffc7c729,
  866. default_value: [0.2, 0.2, 0.2]
  867. },
  868. {
  869. id: 0,
  870. node_id: 0,
  871. name: "Scale",
  872. type: "VALUE",
  873. color: 0xffa1a1a1,
  874. default_value: 5.0,
  875. min: 0.0,
  876. max: 10.0
  877. }
  878. ],
  879. outputs: [
  880. {
  881. id: 0,
  882. node_id: 0,
  883. name: "Color",
  884. type: "RGBA",
  885. color: 0xffc7c729,
  886. default_value: [0.8, 0.8, 0.8, 1.0]
  887. },
  888. {
  889. id: 0,
  890. node_id: 0,
  891. name: "Fac",
  892. type: "VALUE",
  893. color: 0xffa1a1a1,
  894. default_value: 1.0
  895. }
  896. ],
  897. buttons: []
  898. },
  899. {
  900. id: 0,
  901. name: "Gradient Texture",
  902. type: "TEX_GRADIENT",
  903. x: 0,
  904. y: 0,
  905. color: 0xff4982a0,
  906. inputs: [
  907. {
  908. id: 0,
  909. node_id: 0,
  910. name: "Vector",
  911. type: "VECTOR",
  912. color: 0xff6363c7,
  913. default_value: [0.0, 0.0, 0.0]
  914. }
  915. ],
  916. outputs: [
  917. {
  918. id: 0,
  919. node_id: 0,
  920. name: "Color",
  921. type: "RGBA",
  922. color: 0xffc7c729,
  923. default_value: [0.8, 0.8, 0.8, 1.0]
  924. },
  925. {
  926. id: 0,
  927. node_id: 0,
  928. name: "Fac",
  929. type: "VALUE",
  930. color: 0xffa1a1a1,
  931. default_value: 1.0
  932. }
  933. ],
  934. buttons: [
  935. {
  936. name: "gradient_type",
  937. type: "ENUM",
  938. // data: ["Linear", "Quadratic", "Easing", "Diagonal", "Radial", "Quadratic Sphere", "Spherical"],
  939. data: ["Linear", "Diagonal", "Radial", "Spherical"],
  940. default_value: 0,
  941. output: 0
  942. }
  943. ]
  944. },
  945. {
  946. id: 0,
  947. name: "Image Texture",
  948. type: "TEX_IMAGE",
  949. x: 0,
  950. y: 0,
  951. color: 0xff4982a0,
  952. inputs: [
  953. {
  954. id: 0,
  955. node_id: 0,
  956. name: "Vector",
  957. type: "VECTOR",
  958. color: 0xff6363c7,
  959. default_value: [0.0, 0.0, 0.0]
  960. }
  961. ],
  962. outputs: [
  963. {
  964. id: 0,
  965. node_id: 0,
  966. name: "Color",
  967. type: "RGBA",
  968. color: 0xffc7c729,
  969. default_value: [0.0, 0.0, 0.0, 1.0]
  970. },
  971. {
  972. id: 0,
  973. node_id: 0,
  974. name: "Alpha",
  975. type: "VALUE",
  976. color: 0xffa1a1a1,
  977. default_value: 1.0
  978. }
  979. ],
  980. buttons: [
  981. {
  982. name: "File",
  983. type: "ENUM",
  984. default_value: 0,
  985. data: ""
  986. },
  987. {
  988. name: "Color Space",
  989. type: "ENUM",
  990. default_value: 0,
  991. data: ["linear", "srgb"]
  992. }
  993. ]
  994. },
  995. {
  996. id: 0,
  997. name: "Magic Texture",
  998. type: "TEX_MAGIC",
  999. x: 0,
  1000. y: 0,
  1001. color: 0xff4982a0,
  1002. inputs: [
  1003. {
  1004. id: 0,
  1005. node_id: 0,
  1006. name: "Vector",
  1007. type: "VECTOR",
  1008. color: 0xff6363c7,
  1009. default_value: [0.0, 0.0, 0.0]
  1010. },
  1011. {
  1012. id: 0,
  1013. node_id: 0,
  1014. name: "Scale",
  1015. type: "VALUE",
  1016. color: 0xffa1a1a1,
  1017. default_value: 5.0,
  1018. min: 0.0,
  1019. max: 10.0
  1020. }
  1021. ],
  1022. outputs: [
  1023. {
  1024. id: 0,
  1025. node_id: 0,
  1026. name: "Color",
  1027. type: "RGBA",
  1028. color: 0xffc7c729,
  1029. default_value: [0.8, 0.8, 0.8, 1.0]
  1030. },
  1031. {
  1032. id: 0,
  1033. node_id: 0,
  1034. name: "Fac",
  1035. type: "VALUE",
  1036. color: 0xffa1a1a1,
  1037. default_value: 1.0
  1038. }
  1039. ],
  1040. buttons: []
  1041. },
  1042. {
  1043. id: 0,
  1044. name: "Musgrave Texture",
  1045. type: "TEX_MUSGRAVE",
  1046. x: 0,
  1047. y: 0,
  1048. color: 0xff4982a0,
  1049. inputs: [
  1050. {
  1051. id: 0,
  1052. node_id: 0,
  1053. name: "Vector",
  1054. type: "VECTOR",
  1055. color: 0xff6363c7,
  1056. default_value: [0.0, 0.0, 0.0]
  1057. },
  1058. {
  1059. id: 0,
  1060. node_id: 0,
  1061. name: "Scale",
  1062. type: "VALUE",
  1063. color: 0xffa1a1a1,
  1064. default_value: 5.0,
  1065. min: 0.0,
  1066. max: 10.0
  1067. }
  1068. ],
  1069. outputs: [
  1070. {
  1071. id: 0,
  1072. node_id: 0,
  1073. name: "Color",
  1074. type: "RGBA",
  1075. color: 0xffc7c729,
  1076. default_value: [0.8, 0.8, 0.8, 1.0]
  1077. },
  1078. {
  1079. id: 0,
  1080. node_id: 0,
  1081. name: "Fac",
  1082. type: "VALUE",
  1083. color: 0xffa1a1a1,
  1084. default_value: 1.0
  1085. }
  1086. ],
  1087. buttons: []
  1088. },
  1089. {
  1090. id: 0,
  1091. name: "Noise Texture",
  1092. type: "TEX_NOISE",
  1093. x: 0,
  1094. y: 0,
  1095. color: 0xff4982a0,
  1096. inputs: [
  1097. {
  1098. id: 0,
  1099. node_id: 0,
  1100. name: "Vector",
  1101. type: "VECTOR",
  1102. color: 0xff6363c7,
  1103. default_value: [0.0, 0.0, 0.0]
  1104. },
  1105. {
  1106. id: 0,
  1107. node_id: 0,
  1108. name: "Scale",
  1109. type: "VALUE",
  1110. color: 0xffa1a1a1,
  1111. default_value: 5.0,
  1112. min: 0.0,
  1113. max: 10.0
  1114. }
  1115. ],
  1116. outputs: [
  1117. {
  1118. id: 0,
  1119. node_id: 0,
  1120. name: "Color",
  1121. type: "RGBA",
  1122. color: 0xffc7c729,
  1123. default_value: [0.8, 0.8, 0.8, 1.0]
  1124. },
  1125. {
  1126. id: 0,
  1127. node_id: 0,
  1128. name: "Fac",
  1129. type: "VALUE",
  1130. color: 0xffa1a1a1,
  1131. default_value: 1.0
  1132. }
  1133. ],
  1134. buttons: []
  1135. },
  1136. {
  1137. id: 0,
  1138. name: "Voronoi Texture",
  1139. type: "TEX_VORONOI",
  1140. x: 0,
  1141. y: 0,
  1142. color: 0xff4982a0,
  1143. inputs: [
  1144. {
  1145. id: 0,
  1146. node_id: 0,
  1147. name: "Vector",
  1148. type: "VECTOR",
  1149. color: 0xff6363c7,
  1150. default_value: [0.0, 0.0, 0.0]
  1151. },
  1152. {
  1153. id: 0,
  1154. node_id: 0,
  1155. name: "Scale",
  1156. type: "VALUE",
  1157. color: 0xffa1a1a1,
  1158. default_value: 5.0,
  1159. min: 0.0,
  1160. max: 10.0
  1161. }
  1162. ],
  1163. outputs: [
  1164. {
  1165. id: 0,
  1166. node_id: 0,
  1167. name: "Color",
  1168. type: "RGBA",
  1169. color: 0xffc7c729,
  1170. default_value: [0.8, 0.8, 0.8, 1.0]
  1171. },
  1172. {
  1173. id: 0,
  1174. node_id: 0,
  1175. name: "Fac",
  1176. type: "VALUE",
  1177. color: 0xffa1a1a1,
  1178. default_value: 1.0
  1179. }
  1180. ],
  1181. buttons: [
  1182. {
  1183. name: "coloring",
  1184. type: "ENUM",
  1185. data: ["Intensity", "Cells"],
  1186. default_value: 0,
  1187. output: 0
  1188. }
  1189. ]
  1190. },
  1191. {
  1192. id: 0,
  1193. name: "Wave Texture",
  1194. type: "TEX_WAVE",
  1195. x: 0,
  1196. y: 0,
  1197. color: 0xff4982a0,
  1198. inputs: [
  1199. {
  1200. id: 0,
  1201. node_id: 0,
  1202. name: "Vector",
  1203. type: "VECTOR",
  1204. color: 0xff6363c7,
  1205. default_value: [0.0, 0.0, 0.0]
  1206. },
  1207. {
  1208. id: 0,
  1209. node_id: 0,
  1210. name: "Scale",
  1211. type: "VALUE",
  1212. color: 0xffa1a1a1,
  1213. default_value: 5.0,
  1214. min: 0.0,
  1215. max: 10.0
  1216. }
  1217. ],
  1218. outputs: [
  1219. {
  1220. id: 0,
  1221. node_id: 0,
  1222. name: "Color",
  1223. type: "RGBA",
  1224. color: 0xffc7c729,
  1225. default_value: [0.8, 0.8, 0.8, 1.0]
  1226. },
  1227. {
  1228. id: 0,
  1229. node_id: 0,
  1230. name: "Fac",
  1231. type: "VALUE",
  1232. color: 0xffa1a1a1,
  1233. default_value: 1.0
  1234. }
  1235. ],
  1236. buttons: []
  1237. }
  1238. ],
  1239. [ // Color
  1240. {
  1241. id: 0,
  1242. name: "BrightContrast",
  1243. type: "BRIGHTCONTRAST",
  1244. x: 0,
  1245. y: 0,
  1246. color: 0xff448c6d,
  1247. inputs: [
  1248. {
  1249. id: 0,
  1250. node_id: 0,
  1251. name: "Color",
  1252. type: "RGBA",
  1253. color: 0xffc7c729,
  1254. default_value: [0.8, 0.8, 0.8, 1.0]
  1255. },
  1256. {
  1257. id: 0,
  1258. node_id: 0,
  1259. name: "Bright",
  1260. type: "VALUE",
  1261. color: 0xffa1a1a1,
  1262. default_value: 0.0
  1263. },
  1264. {
  1265. id: 0,
  1266. node_id: 0,
  1267. name: "Contrast",
  1268. type: "VALUE",
  1269. color: 0xffa1a1a1,
  1270. default_value: 0.0
  1271. }
  1272. ],
  1273. outputs: [
  1274. {
  1275. id: 0,
  1276. node_id: 0,
  1277. name: "Color",
  1278. type: "RGBA",
  1279. color: 0xffc7c729,
  1280. default_value: [0.8, 0.8, 0.8, 1.0]
  1281. }
  1282. ],
  1283. buttons: []
  1284. },
  1285. {
  1286. id: 0,
  1287. name: "Gamma",
  1288. type: "GAMMA",
  1289. x: 0,
  1290. y: 0,
  1291. color: 0xff448c6d,
  1292. inputs: [
  1293. {
  1294. id: 0,
  1295. node_id: 0,
  1296. name: "Color",
  1297. type: "RGBA",
  1298. color: 0xffc7c729,
  1299. default_value: [0.8, 0.8, 0.8, 1.0]
  1300. },
  1301. {
  1302. id: 0,
  1303. node_id: 0,
  1304. name: "Gamma",
  1305. type: "VALUE",
  1306. color: 0xffa1a1a1,
  1307. default_value: 1.0
  1308. }
  1309. ],
  1310. outputs: [
  1311. {
  1312. id: 0,
  1313. node_id: 0,
  1314. name: "Color",
  1315. type: "RGBA",
  1316. color: 0xffc7c729,
  1317. default_value: [0.8, 0.8, 0.8, 1.0]
  1318. }
  1319. ],
  1320. buttons: []
  1321. },
  1322. {
  1323. id: 0,
  1324. name: "Blur (Image)",
  1325. type: "BLUR", // extension
  1326. x: 0,
  1327. y: 0,
  1328. color: 0xff448c6d,
  1329. inputs: [
  1330. {
  1331. id: 0,
  1332. node_id: 0,
  1333. name: "Color",
  1334. type: "RGBA",
  1335. color: 0xffc7c729,
  1336. default_value: [0.8, 0.8, 0.8, 1.0]
  1337. },
  1338. {
  1339. id: 0,
  1340. node_id: 0,
  1341. name: "Strength",
  1342. type: "VALUE",
  1343. color: 0xffa1a1a1,
  1344. default_value: 0.5
  1345. }
  1346. ],
  1347. outputs: [
  1348. {
  1349. id: 0,
  1350. node_id: 0,
  1351. name: "Color",
  1352. type: "RGBA",
  1353. color: 0xffc7c729,
  1354. default_value: [0.8, 0.8, 0.8, 1.0]
  1355. }
  1356. ],
  1357. buttons: []
  1358. },
  1359. {
  1360. id: 0,
  1361. name: "HueSatVal",
  1362. type: "HUE_SAT",
  1363. x: 0,
  1364. y: 0,
  1365. color: 0xff448c6d,
  1366. inputs: [
  1367. {
  1368. id: 0,
  1369. node_id: 0,
  1370. name: "Hue",
  1371. type: "VALUE",
  1372. color: 0xffa1a1a1,
  1373. default_value: 0.5
  1374. },
  1375. {
  1376. id: 0,
  1377. node_id: 0,
  1378. name: "Sat",
  1379. type: "VALUE",
  1380. color: 0xffa1a1a1,
  1381. default_value: 1.0
  1382. },
  1383. {
  1384. id: 0,
  1385. node_id: 0,
  1386. name: "Val",
  1387. type: "VALUE",
  1388. color: 0xffa1a1a1,
  1389. default_value: 1.0
  1390. },
  1391. {
  1392. id: 0,
  1393. node_id: 0,
  1394. name: "Fac",
  1395. type: "VALUE",
  1396. color: 0xffa1a1a1,
  1397. default_value: 1.0
  1398. },
  1399. {
  1400. id: 0,
  1401. node_id: 0,
  1402. name: "Color",
  1403. type: "RGBA",
  1404. color: 0xffc7c729,
  1405. default_value: [0.8, 0.8, 0.8, 1.0]
  1406. }
  1407. ],
  1408. outputs: [
  1409. {
  1410. id: 0,
  1411. node_id: 0,
  1412. name: "Color",
  1413. type: "RGBA",
  1414. color: 0xffc7c729,
  1415. default_value: [0.8, 0.8, 0.8, 1.0]
  1416. }
  1417. ],
  1418. buttons: []
  1419. },
  1420. {
  1421. id: 0,
  1422. name: "Invert",
  1423. type: "INVERT",
  1424. x: 0,
  1425. y: 0,
  1426. color: 0xff448c6d,
  1427. inputs: [
  1428. {
  1429. id: 0,
  1430. node_id: 0,
  1431. name: "Fac",
  1432. type: "VALUE",
  1433. color: 0xffa1a1a1,
  1434. default_value: 1.0
  1435. },
  1436. {
  1437. id: 0,
  1438. node_id: 0,
  1439. name: "Color",
  1440. type: "RGBA",
  1441. color: 0xffc7c729,
  1442. default_value: [0.8, 0.8, 0.8, 1.0]
  1443. }
  1444. ],
  1445. outputs: [
  1446. {
  1447. id: 0,
  1448. node_id: 0,
  1449. name: "Color",
  1450. type: "RGBA",
  1451. color: 0xffc7c729,
  1452. default_value: [0.8, 0.8, 0.8, 1.0]
  1453. }
  1454. ],
  1455. buttons: []
  1456. },
  1457. {
  1458. id: 0,
  1459. name: "MixRGB",
  1460. type: "MIX_RGB",
  1461. x: 0,
  1462. y: 0,
  1463. color: 0xff448c6d,
  1464. inputs: [
  1465. {
  1466. id: 0,
  1467. node_id: 0,
  1468. name: "Fac",
  1469. type: "VALUE",
  1470. color: 0xffa1a1a1,
  1471. default_value: 0.5
  1472. },
  1473. {
  1474. id: 0,
  1475. node_id: 0,
  1476. name: "Color1",
  1477. type: "RGBA",
  1478. color: 0xffc7c729,
  1479. default_value: [0.5, 0.5, 0.5, 1.0]
  1480. },
  1481. {
  1482. id: 0,
  1483. node_id: 0,
  1484. name: "Color2",
  1485. type: "RGBA",
  1486. color: 0xffc7c729,
  1487. default_value: [0.5, 0.5, 0.5, 1.0]
  1488. }
  1489. ],
  1490. outputs: [
  1491. {
  1492. id: 0,
  1493. node_id: 0,
  1494. name: "Color",
  1495. type: "RGBA",
  1496. color: 0xffc7c729,
  1497. default_value: [0.8, 0.8, 0.8, 1.0]
  1498. }
  1499. ],
  1500. buttons: [
  1501. {
  1502. name: "blend_type",
  1503. type: "ENUM",
  1504. data: ["Mix", "Darken", "Multiply", "Burn", "Lighten", "Screen", "Dodge", "Add", "Overlay", "Soft Light", "Linear Light", "Difference", "Subtract", "Divide", "Hue", "Saturation", "Color", "Value"],
  1505. default_value: 0,
  1506. output: 0
  1507. },
  1508. {
  1509. name: "use_clamp",
  1510. type: "BOOL",
  1511. default_value: false,
  1512. output: 0
  1513. }
  1514. ]
  1515. }
  1516. ],
  1517. [ // Vector
  1518. {
  1519. id: 0,
  1520. name: "Bump",
  1521. type: "BUMP",
  1522. x: 0,
  1523. y: 0,
  1524. color: 0xff522c99,
  1525. inputs: [
  1526. {
  1527. id: 0,
  1528. node_id: 0,
  1529. name: "Strength",
  1530. type: "VALUE",
  1531. color: 0xffa1a1a1,
  1532. default_value: 1.0
  1533. },
  1534. {
  1535. id: 0,
  1536. node_id: 0,
  1537. name: "Distance",
  1538. type: "VALUE",
  1539. color: 0xffa1a1a1,
  1540. default_value: 0.0
  1541. },
  1542. {
  1543. id: 0,
  1544. node_id: 0,
  1545. name: "Height",
  1546. type: "VALUE",
  1547. color: 0xffa1a1a1,
  1548. default_value: 1.0
  1549. },
  1550. {
  1551. id: 0,
  1552. node_id: 0,
  1553. name: "Normal",
  1554. type: "VECTOR",
  1555. color: 0xff6363c7,
  1556. default_value: [0.0, 0.0, 0.0]
  1557. }
  1558. ],
  1559. outputs: [
  1560. {
  1561. id: 0,
  1562. node_id: 0,
  1563. // name: "Normal",
  1564. name: "Normal Map",
  1565. type: "VECTOR",
  1566. color: -10238109,
  1567. default_value: [0.0, 0.0, 0.0]
  1568. }
  1569. ],
  1570. buttons: []
  1571. },
  1572. {
  1573. id: 0,
  1574. name: "Mapping",
  1575. type: "MAPPING",
  1576. x: 0,
  1577. y: 0,
  1578. color: 0xff522c99,
  1579. inputs: [
  1580. {
  1581. id: 0,
  1582. node_id: 0,
  1583. name: "Vector",
  1584. type: "VECTOR",
  1585. color: 0xff6363c7,
  1586. default_value: [0.0, 0.0, 0.0]
  1587. }
  1588. ],
  1589. outputs: [
  1590. {
  1591. id: 0,
  1592. node_id: 0,
  1593. name: "Vector",
  1594. type: "VECTOR",
  1595. color: 0xff6363c7,
  1596. default_value: [0.0, 0.0, 0.0]
  1597. }
  1598. ],
  1599. buttons: [
  1600. {
  1601. name: "Location",
  1602. type: "VECTOR",
  1603. default_value: [0.0, 0.0, 0.0],
  1604. output: 0
  1605. },
  1606. {
  1607. name: "Rotation",
  1608. type: "VECTOR",
  1609. default_value: [0.0, 0.0, 0.0],
  1610. output: 0
  1611. },
  1612. {
  1613. name: "Scale",
  1614. type: "VECTOR",
  1615. default_value: [1.0, 1.0, 1.0],
  1616. output: 0
  1617. }
  1618. ]
  1619. },
  1620. {
  1621. id: 0,
  1622. name: "Normal",
  1623. type: "NORMAL",
  1624. x: 0,
  1625. y: 0,
  1626. color: 0xff522c99,
  1627. inputs: [
  1628. {
  1629. id: 0,
  1630. node_id: 0,
  1631. name: "Normal",
  1632. type: "VECTOR",
  1633. color: 0xff6363c7,
  1634. default_value: [0.0, 0.0, 0.0]
  1635. }
  1636. ],
  1637. outputs: [
  1638. {
  1639. id: 0,
  1640. node_id: 0,
  1641. name: "Normal",
  1642. type: "VECTOR",
  1643. color: 0xff6363c7,
  1644. default_value: [0.0, 0.0, 0.0]
  1645. },
  1646. {
  1647. id: 0,
  1648. node_id: 0,
  1649. name: "Dot",
  1650. type: "VALUE",
  1651. color: 0xffa1a1a1,
  1652. default_value: 1.0
  1653. }
  1654. ],
  1655. buttons: [
  1656. {
  1657. name: "Vector",
  1658. type: "VECTOR",
  1659. default_value: [0.0, 0.0, 0.0],
  1660. output: 0
  1661. }
  1662. ]
  1663. },
  1664. {
  1665. id: 0,
  1666. name: "Vector Curves",
  1667. type: "CURVE_VEC",
  1668. x: 0,
  1669. y: 0,
  1670. color: 0xff522c99,
  1671. inputs: [
  1672. {
  1673. id: 0,
  1674. node_id: 0,
  1675. name: "Fac",
  1676. type: "VALUE",
  1677. color: 0xffa1a1a1,
  1678. default_value: 1.0
  1679. },
  1680. {
  1681. id: 0,
  1682. node_id: 0,
  1683. name: "Vector",
  1684. type: "VECTOR",
  1685. color: 0xff6363c7,
  1686. default_value: [0.0, 0.0, 0.0]
  1687. }
  1688. ],
  1689. outputs: [
  1690. {
  1691. id: 0,
  1692. node_id: 0,
  1693. name: "Vector",
  1694. type: "VECTOR",
  1695. color: 0xff6363c7,
  1696. default_value: [0.0, 0.0, 0.0]
  1697. }
  1698. ],
  1699. buttons: [
  1700. {
  1701. name: "Vector",
  1702. type: "CURVES",
  1703. default_value: [[0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]],
  1704. output: 0
  1705. }
  1706. ]
  1707. }
  1708. ],
  1709. [ // Converter
  1710. {
  1711. id: 0,
  1712. name: "Color Ramp",
  1713. type: "VALTORGB",
  1714. x: 0,
  1715. y: 0,
  1716. color: 0xff62676d,
  1717. inputs: [
  1718. {
  1719. id: 0,
  1720. node_id: 0,
  1721. name: "Fac",
  1722. type: "VALUE",
  1723. color: 0xffa1a1a1,
  1724. default_value: 0.5
  1725. }
  1726. ],
  1727. outputs: [
  1728. {
  1729. id: 0,
  1730. node_id: 0,
  1731. name: "Color",
  1732. type: "RGBA",
  1733. color: 0xffc7c729,
  1734. default_value: [0.0, 0.0, 0.0, 1.0]
  1735. },
  1736. {
  1737. id: 0,
  1738. node_id: 0,
  1739. name: "Alpha",
  1740. type: "VALUE",
  1741. color: 0xffa1a1a1,
  1742. default_value: 0.0
  1743. }
  1744. ],
  1745. buttons: [
  1746. {
  1747. name: "Ramp",
  1748. type: "RAMP",
  1749. default_value: [[1.0, 1.0, 1.0, 1.0, 0.0]],
  1750. data: 0,
  1751. output: 0
  1752. }
  1753. ]
  1754. },
  1755. {
  1756. id: 0,
  1757. name: "Combine HSV",
  1758. type: "COMBHSV",
  1759. x: 0,
  1760. y: 0,
  1761. color: 0xff62676d,
  1762. inputs: [
  1763. {
  1764. id: 0,
  1765. node_id: 0,
  1766. name: "H",
  1767. type: "VALUE",
  1768. color: 0xffa1a1a1,
  1769. default_value: 0.0
  1770. },
  1771. {
  1772. id: 0,
  1773. node_id: 0,
  1774. name: "S",
  1775. type: "VALUE",
  1776. color: 0xffa1a1a1,
  1777. default_value: 0.0
  1778. },
  1779. {
  1780. id: 0,
  1781. node_id: 0,
  1782. name: "V",
  1783. type: "VALUE",
  1784. color: 0xffa1a1a1,
  1785. default_value: 0.0
  1786. }
  1787. ],
  1788. outputs: [
  1789. {
  1790. id: 0,
  1791. node_id: 0,
  1792. name: "Color",
  1793. type: "RGBA",
  1794. color: 0xffc7c729,
  1795. default_value: [0.8, 0.8, 0.8, 1.0]
  1796. }
  1797. ],
  1798. buttons: []
  1799. },
  1800. {
  1801. id: 0,
  1802. name: "Combine RGB",
  1803. type: "COMBRGB",
  1804. x: 0,
  1805. y: 0,
  1806. color: 0xff62676d,
  1807. inputs: [
  1808. {
  1809. id: 0,
  1810. node_id: 0,
  1811. name: "R",
  1812. type: "VALUE",
  1813. color: 0xffa1a1a1,
  1814. default_value: 0.0
  1815. },
  1816. {
  1817. id: 0,
  1818. node_id: 0,
  1819. name: "G",
  1820. type: "VALUE",
  1821. color: 0xffa1a1a1,
  1822. default_value: 0.0
  1823. },
  1824. {
  1825. id: 0,
  1826. node_id: 0,
  1827. name: "B",
  1828. type: "VALUE",
  1829. color: 0xffa1a1a1,
  1830. default_value: 0.0
  1831. }
  1832. ],
  1833. outputs: [
  1834. {
  1835. id: 0,
  1836. node_id: 0,
  1837. name: "Color",
  1838. type: "RGBA",
  1839. color: 0xffc7c729,
  1840. default_value: [0.8, 0.8, 0.8, 1.0]
  1841. }
  1842. ],
  1843. buttons: []
  1844. },
  1845. {
  1846. id: 0,
  1847. name: "Combine XYZ",
  1848. type: "COMBXYZ",
  1849. x: 0,
  1850. y: 0,
  1851. color: 0xff62676d,
  1852. inputs: [
  1853. {
  1854. id: 0,
  1855. node_id: 0,
  1856. name: "X",
  1857. type: "VALUE",
  1858. color: 0xffa1a1a1,
  1859. default_value: 0.0
  1860. },
  1861. {
  1862. id: 0,
  1863. node_id: 0,
  1864. name: "Y",
  1865. type: "VALUE",
  1866. color: 0xffa1a1a1,
  1867. default_value: 0.0
  1868. },
  1869. {
  1870. id: 0,
  1871. node_id: 0,
  1872. name: "Z",
  1873. type: "VALUE",
  1874. color: 0xffa1a1a1,
  1875. default_value: 0.0
  1876. }
  1877. ],
  1878. outputs: [
  1879. {
  1880. id: 0,
  1881. node_id: 0,
  1882. name: "Vector",
  1883. type: "VECTOR",
  1884. color: 0xff6363c7,
  1885. default_value: [0.0, 0.0, 0.0]
  1886. }
  1887. ],
  1888. buttons: []
  1889. },
  1890. {
  1891. id: 0,
  1892. name: "Math",
  1893. type: "MATH",
  1894. x: 0,
  1895. y: 0,
  1896. color: 0xff62676d,
  1897. inputs: [
  1898. {
  1899. id: 0,
  1900. node_id: 0,
  1901. name: "Value",
  1902. type: "VALUE",
  1903. color: 0xffa1a1a1,
  1904. default_value: 0.5
  1905. },
  1906. {
  1907. id: 0,
  1908. node_id: 0,
  1909. name: "Value",
  1910. type: "VALUE",
  1911. color: 0xffa1a1a1,
  1912. default_value: 0.5
  1913. }
  1914. ],
  1915. outputs: [
  1916. {
  1917. id: 0,
  1918. node_id: 0,
  1919. name: "Value",
  1920. type: "VALUE",
  1921. color: 0xffa1a1a1,
  1922. default_value: 0.0
  1923. }
  1924. ],
  1925. buttons: [
  1926. {
  1927. name: "operation",
  1928. type: "ENUM",
  1929. data: ["Add", "Subtract", "Multiply", "Divide", "Power", "Logarithm", "Square Root", "Absolute", "Minimum", "Maximum", "Less Than", "Greater Than", "Round", "Floor", "Ceil", "Fract", "Modulo", "Sine", "Cosine", "Tangent", "Arcsine", "Arccosine", "Arctangent", "Arctan2"],
  1930. default_value: 0,
  1931. output: 0
  1932. },
  1933. {
  1934. name: "use_clamp",
  1935. type: "BOOL",
  1936. default_value: false,
  1937. output: 0
  1938. }
  1939. ]
  1940. },
  1941. {
  1942. id: 0,
  1943. name: "RGB to BW",
  1944. type: "RGBTOBW",
  1945. x: 0,
  1946. y: 0,
  1947. color: 0xff62676d,
  1948. inputs: [
  1949. {
  1950. id: 0,
  1951. node_id: 0,
  1952. name: "Color",
  1953. type: "RGBA",
  1954. color: 0xffc7c729,
  1955. default_value: [0.0, 0.0, 0.0, 0.0]
  1956. }
  1957. ],
  1958. outputs: [
  1959. {
  1960. id: 0,
  1961. node_id: 0,
  1962. name: "Val",
  1963. type: "VALUE",
  1964. color: 0xffa1a1a1,
  1965. default_value: 0.0
  1966. }
  1967. ],
  1968. buttons: []
  1969. },
  1970. {
  1971. id: 0,
  1972. name: "Separate HSV",
  1973. type: "SEPHSV",
  1974. x: 0,
  1975. y: 0,
  1976. color: 0xff62676d,
  1977. inputs: [
  1978. {
  1979. id: 0,
  1980. node_id: 0,
  1981. name: "Color",
  1982. type: "RGBA",
  1983. color: 0xffc7c729,
  1984. default_value: [0.5, 0.5, 0.5, 1.0]
  1985. }
  1986. ],
  1987. outputs: [
  1988. {
  1989. id: 0,
  1990. node_id: 0,
  1991. name: "H",
  1992. type: "VALUE",
  1993. color: 0xffa1a1a1,
  1994. default_value: 0.0
  1995. },
  1996. {
  1997. id: 0,
  1998. node_id: 0,
  1999. name: "S",
  2000. type: "VALUE",
  2001. color: 0xffa1a1a1,
  2002. default_value: 0.0
  2003. },
  2004. {
  2005. id: 0,
  2006. node_id: 0,
  2007. name: "V",
  2008. type: "VALUE",
  2009. color: 0xffa1a1a1,
  2010. default_value: 0.0
  2011. }
  2012. ],
  2013. buttons: []
  2014. },
  2015. {
  2016. id: 0,
  2017. name: "Separate RGB",
  2018. type: "SEPRGB",
  2019. x: 0,
  2020. y: 0,
  2021. color: 0xff62676d,
  2022. inputs: [
  2023. {
  2024. id: 0,
  2025. node_id: 0,
  2026. name: "Color",
  2027. type: "RGBA",
  2028. color: 0xffc7c729,
  2029. default_value: [0.8, 0.8, 0.8, 1.0]
  2030. }
  2031. ],
  2032. outputs: [
  2033. {
  2034. id: 0,
  2035. node_id: 0,
  2036. name: "R",
  2037. type: "VALUE",
  2038. color: 0xffa1a1a1,
  2039. default_value: 0.0
  2040. },
  2041. {
  2042. id: 0,
  2043. node_id: 0,
  2044. name: "G",
  2045. type: "VALUE",
  2046. color: 0xffa1a1a1,
  2047. default_value: 0.0
  2048. },
  2049. {
  2050. id: 0,
  2051. node_id: 0,
  2052. name: "B",
  2053. type: "VALUE",
  2054. color: 0xffa1a1a1,
  2055. default_value: 0.0
  2056. }
  2057. ],
  2058. buttons: []
  2059. },
  2060. {
  2061. id: 0,
  2062. name: "Separate XYZ",
  2063. type: "SEPXYZ",
  2064. x: 0,
  2065. y: 0,
  2066. color: 0xff62676d,
  2067. inputs: [
  2068. {
  2069. id: 0,
  2070. node_id: 0,
  2071. name: "Vector",
  2072. type: "VECTOR",
  2073. color: 0xff6363c7,
  2074. default_value: [0.0, 0.0, 0.0]
  2075. }
  2076. ],
  2077. outputs: [
  2078. {
  2079. id: 0,
  2080. node_id: 0,
  2081. name: "X",
  2082. type: "VALUE",
  2083. color: 0xffa1a1a1,
  2084. default_value: 0.0
  2085. },
  2086. {
  2087. id: 0,
  2088. node_id: 0,
  2089. name: "Y",
  2090. type: "VALUE",
  2091. color: 0xffa1a1a1,
  2092. default_value: 0.0
  2093. },
  2094. {
  2095. id: 0,
  2096. node_id: 0,
  2097. name: "Z",
  2098. type: "VALUE",
  2099. color: 0xffa1a1a1,
  2100. default_value: 0.0
  2101. }
  2102. ],
  2103. buttons: []
  2104. },
  2105. {
  2106. id: 0,
  2107. name: "Vector Math",
  2108. type: "VECT_MATH",
  2109. x: 0,
  2110. y: 0,
  2111. color: 0xff62676d,
  2112. inputs: [
  2113. {
  2114. id: 0,
  2115. node_id: 0,
  2116. name: "Vector",
  2117. type: "VECTOR",
  2118. color: 0xff6363c7,
  2119. default_value: [0.0, 0.0, 0.0]
  2120. },
  2121. {
  2122. id: 0,
  2123. node_id: 0,
  2124. name: "Vector",
  2125. type: "VECTOR",
  2126. color: 0xff6363c7,
  2127. default_value: [0.0, 0.0, 0.0]
  2128. }
  2129. ],
  2130. outputs: [
  2131. {
  2132. id: 0,
  2133. node_id: 0,
  2134. name: "Vector",
  2135. type: "VECTOR",
  2136. color: 0xff6363c7,
  2137. default_value: [0.0, 0.0, 0.0]
  2138. },
  2139. {
  2140. id: 0,
  2141. node_id: 0,
  2142. name: "Value",
  2143. type: "VALUE",
  2144. color: 0xffa1a1a1,
  2145. default_value: 0.0
  2146. }
  2147. ],
  2148. buttons: [
  2149. {
  2150. name: "operation",
  2151. type: "ENUM",
  2152. data: ["Add", "Subtract", "Average", "Dot Product", "Cross Product", "Normalize"],
  2153. default_value: 0,
  2154. output: 0
  2155. }
  2156. ]
  2157. }
  2158. ]
  2159. ];
  2160. public static function createNode(nodeType: String): TNode {
  2161. for (c in list) {
  2162. for (n in c) {
  2163. if (n.type == nodeType) {
  2164. var canvas = Context.material.canvas;
  2165. var nodes = Context.material.nodes;
  2166. var node = arm.ui.UINodes.makeNode(n, nodes, canvas);
  2167. canvas.nodes.push(node);
  2168. return node;
  2169. }
  2170. }
  2171. }
  2172. return null;
  2173. }
  2174. }