2
0

Nodes.json 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008
  1. {
  2. "nodes": [
  3. {
  4. "name": "Inputs",
  5. "icon": "stack-push",
  6. "children": [
  7. {
  8. "name": "Primitives",
  9. "icon": "forms",
  10. "children": [
  11. {
  12. "name": "Color",
  13. "icon": "palette",
  14. "editorClass": "ColorEditor"
  15. },
  16. {
  17. "name": "Float",
  18. "icon": "box-multiple-1",
  19. "editorClass": "FloatEditor"
  20. },
  21. {
  22. "name": "Slider",
  23. "icon": "adjustments-horizontal",
  24. "editorClass": "SliderEditor"
  25. },
  26. {
  27. "name": "String",
  28. "icon": "forms",
  29. "editorClass": "StringEditor"
  30. },
  31. {
  32. "name": "Texture",
  33. "icon": "photo",
  34. "editorClass": "TextureEditor"
  35. },
  36. {
  37. "name": "Vector 2",
  38. "icon": "box-multiple-2",
  39. "editorClass": "Vector2Editor"
  40. },
  41. {
  42. "name": "Vector 3",
  43. "icon": "box-multiple-3",
  44. "editorClass": "Vector3Editor"
  45. },
  46. {
  47. "name": "Vector 4",
  48. "icon": "box-multiple-4",
  49. "editorClass": "Vector4Editor"
  50. }
  51. ]
  52. },
  53. {
  54. "name": "Camera",
  55. "icon": "video",
  56. "children": [
  57. {
  58. "name": "Camera Normal Matrix",
  59. "icon": "video",
  60. "nodeType": "mat4",
  61. "shaderNode": "cameraNormalMatrix"
  62. },
  63. {
  64. "name": "Camera Position",
  65. "icon": "video",
  66. "description": "Returns the global transform of the camera.",
  67. "nodeType": "vec3",
  68. "shaderNode": "cameraPosition"
  69. },
  70. {
  71. "name": "Camera Projection Matrix",
  72. "icon": "video",
  73. "nodeType": "mat4",
  74. "description": "Returns the matrix which contains the projection.",
  75. "shaderNode": "cameraProjectionMatrix"
  76. },
  77. {
  78. "name": "Camera View Matrix",
  79. "icon": "video",
  80. "nodeType": "mat4",
  81. "shaderNode": "cameraViewMatrix"
  82. },
  83. {
  84. "name": "Camera World Matrix",
  85. "icon": "video",
  86. "description": "Returns the global transform of the camera.",
  87. "nodeType": "mat4",
  88. "shaderNode": "cameraWorldMatrix"
  89. }
  90. ]
  91. },
  92. {
  93. "name": "Normal",
  94. "icon": "arrow-bar-up",
  95. "children": [
  96. {
  97. "name": "Normal Geometry",
  98. "icon": "arrow-bar-up",
  99. "description": "Return the normal vector from the coordinate space Geometry.",
  100. "nodeType": "vec3",
  101. "shaderNode": "normalGeometry"
  102. },
  103. {
  104. "name": "Normal Local",
  105. "icon": "arrow-bar-up",
  106. "description": "Return the normal vector from the coordinate space Local.",
  107. "nodeType": "vec3",
  108. "shaderNode": "normalLocal"
  109. },
  110. {
  111. "name": "Normal View",
  112. "icon": "arrow-bar-up",
  113. "description": "Return the normal vector from the coordinate space View.",
  114. "nodeType": "vec3",
  115. "shaderNode": "normalView"
  116. },
  117. {
  118. "name": "Normal World",
  119. "icon": "arrow-bar-up",
  120. "description": "Return the normal vector from the coordinate space World.",
  121. "nodeType": "vec3",
  122. "shaderNode": "normalWorld"
  123. },
  124. {
  125. "name": "Transformed Normal View",
  126. "icon": "arrow-bar-up",
  127. "nodeType": "vec3",
  128. "shaderNode": "transformedNormalView"
  129. },
  130. {
  131. "name": "Transformed Normal World",
  132. "icon": "arrow-bar-up",
  133. "nodeType": "vec3",
  134. "shaderNode": "transformedNormalWorld"
  135. }
  136. ]
  137. },
  138. {
  139. "name": "Tangent",
  140. "icon": "arrows-up-right",
  141. "children": [
  142. {
  143. "name": "Tangent Geometry",
  144. "icon": "arrows-up-right",
  145. "nodeType": "vec3",
  146. "shaderNode": "tangentGeometry"
  147. },
  148. {
  149. "name": "Tangent Local",
  150. "icon": "arrows-up-right",
  151. "nodeType": "vec3",
  152. "shaderNode": "tangentLocal"
  153. },
  154. {
  155. "name": "Tangent View",
  156. "icon": "arrows-up-right",
  157. "nodeType": "vec3",
  158. "shaderNode": "tangentView"
  159. },
  160. {
  161. "name": "Tangent World",
  162. "icon": "arrows-up-right",
  163. "nodeType": "vec3",
  164. "shaderNode": "tangentWorld"
  165. },
  166. {
  167. "name": "Transformed Tangent View",
  168. "icon": "arrows-up-right",
  169. "nodeType": "vec3",
  170. "shaderNode": "transformedTangentView"
  171. },
  172. {
  173. "name": "Transformed Tangent World",
  174. "icon": "arrows-up-right",
  175. "nodeType": "vec3",
  176. "shaderNode": "transformedTangentWorld"
  177. }
  178. ]
  179. },
  180. {
  181. "name": "Bitangent",
  182. "icon": "arrows-up-left",
  183. "children": [
  184. {
  185. "name": "Bitangent Geometry",
  186. "icon": "arrows-up-left",
  187. "nodeType": "vec3",
  188. "shaderNode": "bitangentGeometry"
  189. },
  190. {
  191. "name": "Bitangent Local",
  192. "icon": "arrows-up-left",
  193. "nodeType": "vec3",
  194. "shaderNode": "bitangentLocal"
  195. },
  196. {
  197. "name": "Bitangent View",
  198. "icon": "arrow-up-left",
  199. "nodeType": "vec3",
  200. "shaderNode": "bitangentView"
  201. },
  202. {
  203. "name": "Bitangent World",
  204. "icon": "arrows-up-left",
  205. "nodeType": "vec3",
  206. "shaderNode": "bitangentWorld"
  207. },
  208. {
  209. "name": "Transformed Bitangent View",
  210. "icon": "arrows-up-left",
  211. "nodeType": "vec3",
  212. "shaderNode": "transformedBitangentView"
  213. },
  214. {
  215. "name": "Transformed Bitangent World",
  216. "icon": "arrows-up-left",
  217. "nodeType": "vec3",
  218. "shaderNode": "transformedBitangentWorld"
  219. }
  220. ]
  221. },
  222. {
  223. "name": "Model",
  224. "icon": "box",
  225. "children": [
  226. {
  227. "name": "Model Direction",
  228. "icon": "box",
  229. "nodeType": "vec3",
  230. "shaderNode": "modelDirection"
  231. },
  232. {
  233. "name": "Model Normal Matrix",
  234. "icon": "box",
  235. "nodeType": "vec3",
  236. "shaderNode": "modelNormalMatrix"
  237. },
  238. {
  239. "name": "Model Position",
  240. "icon": "box",
  241. "nodeType": "vec3",
  242. "shaderNode": "modelPosition"
  243. },
  244. {
  245. "name": "Model View Matrix",
  246. "icon": "box",
  247. "nodeType": "vec3",
  248. "shaderNode": "modelViewMatrix"
  249. },
  250. {
  251. "name": "Model View Position",
  252. "icon": "box",
  253. "nodeType": "vec3",
  254. "shaderNode": "modelViewPosition"
  255. },
  256. {
  257. "name": "Model World Matrix",
  258. "icon": "box",
  259. "nodeType": "vec3",
  260. "shaderNode": "modelWorldMatrix"
  261. }
  262. ]
  263. },
  264. {
  265. "name": "Object",
  266. "icon": "3d-cube-sphere",
  267. "children": [
  268. {
  269. "name": "Object Direction",
  270. "icon": "3d-cube-sphere",
  271. "shaderNode": "objectDirection",
  272. "properties": [
  273. {
  274. "name": "object3d",
  275. "nodeType": "Object3D"
  276. }
  277. ]
  278. },
  279. {
  280. "name": "Object Normal Matrix",
  281. "icon": "3d-cube-sphere",
  282. "shaderNode": "objectNormalMatrix",
  283. "properties": [
  284. {
  285. "name": "object3d",
  286. "nodeType": "Object3D"
  287. }
  288. ]
  289. },
  290. {
  291. "name": "Object Position",
  292. "icon": "3d-cube-sphere",
  293. "shaderNode": "objectPosition",
  294. "properties": [
  295. {
  296. "name": "object3d",
  297. "nodeType": "Object3D"
  298. }
  299. ]
  300. },
  301. {
  302. "name": "Object View Matrix",
  303. "icon": "3d-cube-sphere",
  304. "shaderNode": "objectViewMatrix",
  305. "properties": [
  306. {
  307. "name": "object3d",
  308. "nodeType": "Object3D"
  309. }
  310. ]
  311. },
  312. {
  313. "name": "Object View Position",
  314. "icon": "3d-cube-sphere",
  315. "shaderNode": "objectViewPosition",
  316. "properties": [
  317. {
  318. "name": "object3d",
  319. "nodeType": "Object3D"
  320. }
  321. ]
  322. },
  323. {
  324. "name": "Object World Matrix",
  325. "icon": "3d-cube-sphere",
  326. "shaderNode": "objectWorldMatrix",
  327. "properties": [
  328. {
  329. "name": "object3d",
  330. "nodeType": "Object3D"
  331. }
  332. ]
  333. }
  334. ]
  335. },
  336. {
  337. "name": "Position",
  338. "icon": "gizmo",
  339. "children": [
  340. {
  341. "name": "Position Geometry",
  342. "icon": "gizmo",
  343. "nodeType": "vec3",
  344. "shaderNode": "positionGeometry"
  345. },
  346. {
  347. "name": "Position Local",
  348. "icon": "gizmo",
  349. "nodeType": "mat4",
  350. "shaderNode": "positionLocal"
  351. },
  352. {
  353. "name": "Position View",
  354. "icon": "gizmo",
  355. "nodeType": "vec3",
  356. "shaderNode": "positionView"
  357. },
  358. {
  359. "name": "Position View Direction",
  360. "icon": "gizmo",
  361. "nodeType": "vec3",
  362. "shaderNode": "positionViewDirection"
  363. },
  364. {
  365. "name": "Position World",
  366. "icon": "gizmo",
  367. "nodeType": "mat3",
  368. "shaderNode": "positionWorld"
  369. },
  370. {
  371. "name": "Position World Direction",
  372. "icon": "gizmo",
  373. "nodeType": "mat4",
  374. "shaderNode": "positionWorldDirection"
  375. }
  376. ]
  377. },
  378. {
  379. "name": "Viewport",
  380. "icon": "device-desktop",
  381. "children": [
  382. {
  383. "name": "Viewport Bottom Left",
  384. "icon": "device-desktop",
  385. "nodeType": "vec3",
  386. "shaderNode": "viewportBottomLeft"
  387. },
  388. {
  389. "name": "Viewport Bottom Right",
  390. "icon": "device-desktop",
  391. "nodeType": "vec3",
  392. "shaderNode": "viewportBottomRight"
  393. },
  394. {
  395. "name": "Viewport Coordinate",
  396. "icon": "device-desktop",
  397. "nodeType": "vec3",
  398. "shaderNode": "viewportCoordinate"
  399. },
  400. {
  401. "name": "Viewport Resolution",
  402. "icon": "device-desktop",
  403. "nodeType": "vec3",
  404. "shaderNode": "viewportResolution"
  405. },
  406. {
  407. "name": "Viewport Top Left",
  408. "icon": "device-desktop",
  409. "nodeType": "vec3",
  410. "shaderNode": "viewportTopLeft"
  411. },
  412. {
  413. "name": "Viewport Top Right",
  414. "icon": "device-desktop",
  415. "nodeType": "vec3",
  416. "shaderNode": "viewportTopRight"
  417. }
  418. ]
  419. },
  420. {
  421. "name": "UV",
  422. "icon": "chart-treemap",
  423. "children": [
  424. {
  425. "name": "Matcap UV",
  426. "icon": "chart-treemap",
  427. "nodeType": "vec1",
  428. "shaderNode": "matcapUV"
  429. },
  430. {
  431. "name": "Point UV",
  432. "icon": "chart-treemap",
  433. "nodeType": "vec1",
  434. "shaderNode": "pointUV"
  435. },
  436. {
  437. "name": "UV",
  438. "icon": "chart-treemap",
  439. "nodeType": "vec2",
  440. "editorClass": "UVEditor"
  441. }
  442. ]
  443. },
  444. {
  445. "name": "Geometry",
  446. "icon": "world",
  447. "children": [
  448. {
  449. "name": "Attribute",
  450. "icon": "book-upload",
  451. "shaderNode": "attribute",
  452. "nodeType": "bool",
  453. "properties": [
  454. {
  455. "name": "aNode",
  456. "nodeType": "node"
  457. }
  458. ]
  459. },
  460. {
  461. "name": "Face Direction",
  462. "icon": "brightness",
  463. "nodeType": "float",
  464. "shaderNode": "faceDirection"
  465. },
  466. {
  467. "name": "Front Facing",
  468. "icon": "brightness",
  469. "shaderNode": "frontFacing",
  470. "nodeType": "bool"
  471. },
  472. {
  473. "name": "Geometry Color",
  474. "icon": "palette",
  475. "shaderNode": "geometryColor",
  476. "nodeType": "color"
  477. }
  478. ]
  479. }
  480. ]
  481. },
  482. {
  483. "name": "Math",
  484. "icon": "calculator",
  485. "children": [
  486. {
  487. "name": "Arithmetic Operators",
  488. "icon": "math-symbols",
  489. "children": [
  490. {
  491. "name": "Addition",
  492. "icon": "plus",
  493. "description": "Addition operator.",
  494. "shaderNode": "add",
  495. "nodeType": "node",
  496. "properties": [
  497. {
  498. "name": "aNode",
  499. "nodeType": "node"
  500. },
  501. {
  502. "name": "bNode",
  503. "nodeType": "node"
  504. }
  505. ]
  506. },
  507. {
  508. "name": "Division",
  509. "icon": "divide",
  510. "description": "Division operator.",
  511. "shaderNode": "div",
  512. "nodeType": "node",
  513. "properties": [
  514. {
  515. "name": "aNode",
  516. "nodeType": "node"
  517. },
  518. {
  519. "name": "bNode",
  520. "nodeType": "node"
  521. }
  522. ]
  523. },
  524. {
  525. "name": "Multiply",
  526. "icon": "x",
  527. "tags": "tag1,tag2",
  528. "description": "Multiply operator.",
  529. "shaderNode": "mul",
  530. "nodeType": "node",
  531. "renderers": "WebGPU",
  532. "properties": [
  533. {
  534. "name": "aNode",
  535. "nodeType": "float"
  536. },
  537. {
  538. "name": "bNode",
  539. "nodeType": "float"
  540. }
  541. ]
  542. },
  543. {
  544. "name": "Power",
  545. "icon": "arrow-up-right",
  546. "description": "Exponentiation operator.",
  547. "shaderNode": "pow",
  548. "nodeType": "node",
  549. "properties": [
  550. {
  551. "name": "aNode",
  552. "nodeType": "node"
  553. },
  554. {
  555. "name": "bNode",
  556. "nodeType": "node"
  557. }
  558. ]
  559. },
  560. {
  561. "name": "Remainder",
  562. "icon": "percentage",
  563. "description": "Remainder operator.",
  564. "shaderNode": "remainder",
  565. "nodeType": "node",
  566. "properties": [
  567. {
  568. "name": "aNode",
  569. "nodeType": "node"
  570. },
  571. {
  572. "name": "bNode",
  573. "nodeType": "node"
  574. }
  575. ]
  576. },
  577. {
  578. "name": "Subtraction",
  579. "icon": "minus",
  580. "description": "Subtraction operator.",
  581. "shaderNode": "sub",
  582. "nodeType": "node",
  583. "properties": [
  584. {
  585. "name": "aNode",
  586. "nodeType": "node"
  587. },
  588. {
  589. "name": "bNode",
  590. "nodeType": "node"
  591. }
  592. ]
  593. }
  594. ]
  595. },
  596. {
  597. "name": "Logic Operators",
  598. "icon": "math-symbols",
  599. "children": [
  600. {
  601. "name": "Less Than",
  602. "icon": "math-lower",
  603. "description": "Less than operator..",
  604. "shaderNode": "lessThan",
  605. "nodeType": "bool",
  606. "properties": [
  607. {
  608. "name": "aNode",
  609. "nodeType": "node"
  610. },
  611. {
  612. "name": "bNode",
  613. "nodeType": "node"
  614. }
  615. ]
  616. },
  617. {
  618. "name": "Less Than Or Equal",
  619. "icon": "math-equal-lower",
  620. "description": "Less than or equal operator.",
  621. "shaderNode": "lessThanEqual",
  622. "nodeType": "bool",
  623. "properties": [
  624. {
  625. "name": "aNode",
  626. "nodeType": "node"
  627. },
  628. {
  629. "name": "bNode",
  630. "nodeType": "node"
  631. }
  632. ]
  633. },
  634. {
  635. "name": "Greater Than",
  636. "icon": "math-greater",
  637. "description": "Greater than operator.",
  638. "shaderNode": "greaterThan",
  639. "nodeType": "bool",
  640. "renderers": "WebGPU",
  641. "properties": [
  642. {
  643. "name": "aNode",
  644. "nodeType": "node"
  645. },
  646. {
  647. "name": "bNode",
  648. "nodeType": "node"
  649. }
  650. ]
  651. },
  652. {
  653. "name": "Greater Than Or Equal",
  654. "icon": "math-equal-greater",
  655. "description": "Greater than or equal operator.",
  656. "shaderNode": "greaterThanEqual",
  657. "nodeType": "bool",
  658. "properties": [
  659. {
  660. "name": "aNode",
  661. "nodeType": "node"
  662. },
  663. {
  664. "name": "bNode",
  665. "nodeType": "node"
  666. }
  667. ]
  668. },
  669. {
  670. "name": "Equality",
  671. "icon": "equal-double",
  672. "description": "Equality operator.",
  673. "shaderNode": "equal",
  674. "nodeType": "bool",
  675. "properties": [
  676. {
  677. "name": "aNode",
  678. "nodeType": "node"
  679. },
  680. {
  681. "name": "bNode",
  682. "nodeType": "node"
  683. }
  684. ]
  685. },
  686. {
  687. "name": "Inequality",
  688. "icon": "equal-not",
  689. "description": "Inequality operator.",
  690. "shaderNode": "notEqual",
  691. "nodeType": "bool",
  692. "properties": [
  693. {
  694. "name": "aNode",
  695. "nodeType": "node"
  696. },
  697. {
  698. "name": "bNode",
  699. "nodeType": "node"
  700. }
  701. ]
  702. },
  703. {
  704. "name": "And",
  705. "icon": "ampersand",
  706. "description": "Logical AND operator.",
  707. "shaderNode": "and",
  708. "nodeType": "bool",
  709. "properties": [
  710. {
  711. "name": "aNode",
  712. "nodeType": "node"
  713. },
  714. {
  715. "name": "bNode",
  716. "nodeType": "node"
  717. }
  718. ]
  719. },
  720. {
  721. "name": "Or",
  722. "icon": "switch-horizontal",
  723. "description": "Logical OR operator.",
  724. "shaderNode": "or",
  725. "nodeType": "bool",
  726. "properties": [
  727. {
  728. "name": "aNode",
  729. "nodeType": "node"
  730. },
  731. {
  732. "name": "bNode",
  733. "nodeType": "node"
  734. }
  735. ]
  736. },
  737. {
  738. "name": "Conditional",
  739. "icon": "arrows-split",
  740. "description": "Logical OR operator.",
  741. "shaderNode": "Conditional",
  742. "nodeType": "bool",
  743. "properties": [
  744. {
  745. "name": "condNode",
  746. "nodeType": "node"
  747. },
  748. {
  749. "name": "ifNode",
  750. "nodeType": "node"
  751. },
  752. {
  753. "name": "elseNode",
  754. "nodeType": "node"
  755. }
  756. ]
  757. }
  758. ]
  759. },
  760. {
  761. "name": "Bitwise Operators",
  762. "icon": "math-symbols",
  763. "children": [
  764. {
  765. "name": "Bitwise AND",
  766. "icon": "binary",
  767. "description": "Bitwise AND operator.",
  768. "shaderNode": "bitAnd",
  769. "nodeType": "node",
  770. "properties": [
  771. {
  772. "name": "aNode",
  773. "nodeType": "node"
  774. },
  775. {
  776. "name": "bNode",
  777. "nodeType": "node"
  778. }
  779. ]
  780. },
  781. {
  782. "name": "Bitwise OR",
  783. "icon": "binary",
  784. "description": "Bitwise OR operator.",
  785. "shaderNode": "bitOr",
  786. "nodeType": "node",
  787. "properties": [
  788. {
  789. "name": "aNode",
  790. "nodeType": "node"
  791. },
  792. {
  793. "name": "bNode",
  794. "nodeType": "node"
  795. }
  796. ]
  797. },
  798. {
  799. "name": "Bitwise XOR",
  800. "icon": "binary",
  801. "description": "Bitwise XOR operator.",
  802. "shaderNode": "bitXor",
  803. "nodeType": "node",
  804. "properties": [
  805. {
  806. "name": "aNode",
  807. "nodeType": "node"
  808. },
  809. {
  810. "name": "bNode",
  811. "nodeType": "node"
  812. }
  813. ]
  814. },
  815. {
  816. "name": "Shift left",
  817. "icon": "binary",
  818. "description": "Bitwise left shift operator.",
  819. "shaderNode": "shiftLeft",
  820. "nodeType": "node",
  821. "properties": [
  822. {
  823. "name": "aNode",
  824. "nodeType": "node"
  825. },
  826. {
  827. "name": "bNode",
  828. "nodeType": "node"
  829. }
  830. ]
  831. },
  832. {
  833. "name": "Shift right",
  834. "icon": "binary",
  835. "description": "Bitwise right shift operator.",
  836. "shaderNode": "shiftRight",
  837. "nodeType": "node",
  838. "properties": [
  839. {
  840. "name": "aNode",
  841. "nodeType": "node"
  842. },
  843. {
  844. "name": "bNode",
  845. "nodeType": "node"
  846. }
  847. ]
  848. },
  849. {
  850. "name": "XOR",
  851. "icon": "binary",
  852. "description": "Bitwise XOR operator.",
  853. "shaderNode": "xor",
  854. "nodeType": "node",
  855. "properties": [
  856. {
  857. "name": "aNode",
  858. "nodeType": "node"
  859. },
  860. {
  861. "name": "bNode",
  862. "nodeType": "node"
  863. }
  864. ]
  865. }
  866. ]
  867. },
  868. {
  869. "name": "Functions",
  870. "icon": "math-function",
  871. "children": [
  872. {
  873. "name": "Abs",
  874. "icon": "math-function",
  875. "description": "Returns the absolute value of x.",
  876. "shaderNode": "abs",
  877. "nodeType": "node",
  878. "properties": [
  879. {
  880. "name": "aNode",
  881. "nodeType": "node",
  882. "label": "x",
  883. "description": "Specify the value of which to return the absolute."
  884. }
  885. ]
  886. },
  887. {
  888. "name": "Acos",
  889. "icon": "math-function",
  890. "description": "Returns the angle whose trigonometric cosine is x.",
  891. "shaderNode": "acos",
  892. "nodeType": "node",
  893. "properties": [
  894. {
  895. "name": "aNode",
  896. "nodeType": "node",
  897. "label": "x",
  898. "description": "Specify the value whose arccosine to return."
  899. }
  900. ]
  901. },
  902. {
  903. "name": "Asin",
  904. "icon": "math-function",
  905. "description": "Returns the angle whose trigonometric sine is X.",
  906. "shaderNode": "asin",
  907. "nodeType": "node",
  908. "properties": [
  909. {
  910. "name": "aNode",
  911. "nodeType": "node",
  912. "label": "x",
  913. "description": "Specify the value whose arcsine to return."
  914. }
  915. ]
  916. },
  917. {
  918. "name": "Atan",
  919. "icon": "math-function",
  920. "description": "Returns either the angle whose trigonometric arctangent is yx or y_over_x, depending on which overload is invoked. In the first overload, the signs of y and x are used to determine the quadrant that the angle lies in.",
  921. "shaderNode": "atan",
  922. "nodeType": "node",
  923. "properties": [
  924. {
  925. "name": "aSNode",
  926. "nodeType": "node",
  927. "label": "y_over_x",
  928. "description": "Specify the fraction whose arctangent to return."
  929. }
  930. ]
  931. },
  932. {
  933. "name": "Atan2",
  934. "icon": "math-function",
  935. "description": "Return the arc-tangent of the parameters",
  936. "shaderNode": "atan2",
  937. "nodeType": "node",
  938. "properties": [
  939. {
  940. "name": "aNode",
  941. "nodeType": "node",
  942. "label": "y",
  943. "description": "Specify the numerator of the fraction whose arctangent to return."
  944. },
  945. {
  946. "name": "bNode",
  947. "nodeType": "node",
  948. "label": "x",
  949. "description": "Specify the denominator of the fraction whose arctangent to return."
  950. }
  951. ]
  952. },
  953. {
  954. "name": "Ceil",
  955. "icon": "math-function",
  956. "description": "Returns a value equal to the nearest integer that is greater than or equal to x.",
  957. "shaderNode": "ceil",
  958. "nodeType": "node",
  959. "properties": [
  960. {
  961. "name": "aNode",
  962. "nodeType": "node",
  963. "label": "x",
  964. "description": "Specify the value to evaluate."
  965. }
  966. ]
  967. },
  968. {
  969. "name": "Clamp",
  970. "icon": "math-function",
  971. "description": "Constrain a value to lie between two further values",
  972. "shaderNode": "clamp",
  973. "nodeType": "node",
  974. "properties": [
  975. {
  976. "name": "aNode",
  977. "nodeType": "node",
  978. "label": "x",
  979. "description": "Specify the value to constrain."
  980. },
  981. {
  982. "name": "bNode",
  983. "nodeType": "node",
  984. "label": "minVal",
  985. "description": "Specify the lower end of the range into which to constrain."
  986. },
  987. {
  988. "name": "cNode",
  989. "nodeType": "node",
  990. "label": "maxVal",
  991. "description": "Specify the upper end of the range into which to constrain."
  992. }
  993. ]
  994. },
  995. {
  996. "name": "Cosine",
  997. "icon": "math-function",
  998. "description": "Returns the trigonometric cosine of angle.",
  999. "shaderNode": "cos",
  1000. "nodeType": "node",
  1001. "properties": [
  1002. {
  1003. "name": "aNode",
  1004. "nodeType": "node",
  1005. "label": "angle",
  1006. "description": "Specify the quantity, in radians, of which to return the cosine."
  1007. }
  1008. ]
  1009. },
  1010. {
  1011. "name": "Cross",
  1012. "icon": "math-function",
  1013. "description": "Calculate the cross product of two vectors",
  1014. "shaderNode": "cross",
  1015. "nodeType": "node",
  1016. "properties": [
  1017. {
  1018. "name": "aNode",
  1019. "nodeType": "node",
  1020. "label": "x",
  1021. "description": "Specifies the first of two points."
  1022. },
  1023. {
  1024. "name": "bNode",
  1025. "nodeType": "node",
  1026. "label": "y",
  1027. "description": "Specifies the second of two points."
  1028. }
  1029. ]
  1030. },
  1031. {
  1032. "name": "Degrees",
  1033. "icon": "math-function",
  1034. "description": "Converts a quantity specified in radians into degrees.",
  1035. "shaderNode": "degrees",
  1036. "nodeType": "node",
  1037. "properties": [
  1038. {
  1039. "name": "aNode",
  1040. "nodeType": "node",
  1041. "label": "radians",
  1042. "description": "Specify the quantity, in radians, to be converted to degrees."
  1043. }
  1044. ]
  1045. },
  1046. {
  1047. "name": "Distance",
  1048. "icon": "math-function",
  1049. "description": "Calculate the distance between two points",
  1050. "shaderNode": "distance",
  1051. "nodeType": "node",
  1052. "properties": [
  1053. {
  1054. "name": "aNode",
  1055. "nodeType": "node",
  1056. "label": "p0",
  1057. "description": "Specifies the first of two points."
  1058. },
  1059. {
  1060. "name": "bNode",
  1061. "nodeType": "node",
  1062. "label": "p1",
  1063. "description": "Specifies the second of two points."
  1064. }
  1065. ]
  1066. },
  1067. {
  1068. "name": "Dot",
  1069. "icon": "math-function",
  1070. "description": "Calculate the dot product of two vectors",
  1071. "shaderNode": "dot",
  1072. "nodeType": "node",
  1073. "properties": [
  1074. {
  1075. "name": "aNode",
  1076. "nodeType": "node",
  1077. "label": "x",
  1078. "description": "Specifies the first of two points."
  1079. },
  1080. {
  1081. "name": "bNode",
  1082. "nodeType": "node",
  1083. "label": "y",
  1084. "description": "Specifies the second of two points."
  1085. }
  1086. ]
  1087. },
  1088. {
  1089. "name": "Exp",
  1090. "icon": "math-function",
  1091. "description": "Returns the natural exponentiation of x. i.e., ex.",
  1092. "shaderNode": "exp",
  1093. "nodeType": "node",
  1094. "properties": [
  1095. {
  1096. "name": "aNode",
  1097. "nodeType": "node",
  1098. "label": "x",
  1099. "description": "Specify the value to exponentiate."
  1100. }
  1101. ]
  1102. },
  1103. {
  1104. "name": "Face Forward",
  1105. "icon": "math-function",
  1106. "description": "Return a vector pointing in the same direction as another",
  1107. "shaderNode": "faceForward",
  1108. "nodeType": "node",
  1109. "properties": [
  1110. {
  1111. "name": "aNode",
  1112. "nodeType": "node",
  1113. "label": "n",
  1114. "description": "Specifies the vector to orient."
  1115. },
  1116. {
  1117. "name": "bNode",
  1118. "nodeType": "node",
  1119. "label": "i",
  1120. "description": "Specifies the incident vector."
  1121. },
  1122. {
  1123. "name": "cNode",
  1124. "nodeType": "node",
  1125. "label": "nref",
  1126. "description": "Specifies the reference vector."
  1127. }
  1128. ]
  1129. },
  1130. {
  1131. "name": "Floor",
  1132. "icon": "math-function",
  1133. "description": "Returns a value equal to the nearest integer that is less than or equal to x.",
  1134. "shaderNode": "floor",
  1135. "nodeType": "node",
  1136. "properties": [
  1137. {
  1138. "name": "aNode",
  1139. "nodeType": "node",
  1140. "label": "x",
  1141. "description": "Specify the value to evaluate."
  1142. }
  1143. ]
  1144. },
  1145. {
  1146. "name": "Fract",
  1147. "icon": "math-function",
  1148. "description": "Returns the fractional part of x. This is calculated as x - floor(x).",
  1149. "shaderNode": "fract",
  1150. "nodeType": "node",
  1151. "properties": [
  1152. {
  1153. "name": "aNode",
  1154. "nodeType": "node",
  1155. "label": "x",
  1156. "description": "Specify the value to evaluate."
  1157. }
  1158. ]
  1159. },
  1160. {
  1161. "name": "Inverse Sqrt",
  1162. "icon": "math-function",
  1163. "description": "Returns the inverse of the square root of x; i.e. the value 1x√.",
  1164. "shaderNode": "inversesqrt",
  1165. "nodeType": "node",
  1166. "properties": [
  1167. {
  1168. "name": "aNode",
  1169. "nodeType": "node",
  1170. "label": "x",
  1171. "description": "Specify the value of which to take the inverse of the square root."
  1172. }
  1173. ]
  1174. },
  1175. {
  1176. "name": "Length",
  1177. "icon": "math-function",
  1178. "description": "Returns the length of the vector, i.e.",
  1179. "shaderNode": "length",
  1180. "nodeType": "node",
  1181. "properties": [
  1182. {
  1183. "name": "aNode",
  1184. "nodeType": "node",
  1185. "label": "x",
  1186. "description": "Specify the vector of which to calculate the length."
  1187. }
  1188. ]
  1189. },
  1190. {
  1191. "name": "Log",
  1192. "icon": "math-function",
  1193. "description": "Returns the natural logarithm of x, i.e. the value y which satisfies x=ey.",
  1194. "shaderNode": "log",
  1195. "nodeType": "node",
  1196. "properties": [
  1197. {
  1198. "name": "aNode",
  1199. "nodeType": "node",
  1200. "label": "x",
  1201. "description": "Specify the value of which to take the natural logarithm."
  1202. }
  1203. ]
  1204. },
  1205. {
  1206. "name": "Log2",
  1207. "icon": "math-function",
  1208. "description": "Returns the base 2 logarithm of x, i.e. the value y which satisfies x=2y.",
  1209. "shaderNode": "log2",
  1210. "nodeType": "node",
  1211. "properties": [
  1212. {
  1213. "name": "aNode",
  1214. "nodeType": "node",
  1215. "label": "x",
  1216. "description": "Specify the value of which to take the base 2 logarithm."
  1217. }
  1218. ]
  1219. },
  1220. {
  1221. "name": "Max",
  1222. "icon": "math-function",
  1223. "description": "Returns the maximun of the two parameters.",
  1224. "shaderNode": "max",
  1225. "nodeType": "node",
  1226. "properties": [
  1227. {
  1228. "name": "aNode",
  1229. "nodeType": "node",
  1230. "label": "x",
  1231. "description": "Specify the first value to compare."
  1232. },
  1233. {
  1234. "name": "bNode",
  1235. "nodeType": "node",
  1236. "label": "y",
  1237. "description": "Specify the second value to compare."
  1238. }
  1239. ]
  1240. },
  1241. {
  1242. "name": "Min",
  1243. "icon": "math-function",
  1244. "description": "Returns the minimum of the two parameters.",
  1245. "shaderNode": "min",
  1246. "nodeType": "node",
  1247. "properties": [
  1248. {
  1249. "name": "aNode",
  1250. "nodeType": "node",
  1251. "label": "x",
  1252. "description": "Specify the first value to compare."
  1253. },
  1254. {
  1255. "name": "bNode",
  1256. "nodeType": "node",
  1257. "label": "y",
  1258. "description": "Specify the second value to compare."
  1259. }
  1260. ]
  1261. },
  1262. {
  1263. "name": "Mix",
  1264. "icon": "math-function",
  1265. "description": "Linearly interpolate between two values",
  1266. "shaderNode": "mix",
  1267. "nodeType": "node",
  1268. "properties": [
  1269. {
  1270. "name": "aNode",
  1271. "nodeType": "node",
  1272. "label": "x",
  1273. "description": "Specify the start of the range in which to interpolate."
  1274. },
  1275. {
  1276. "name": "bNode",
  1277. "nodeType": "node",
  1278. "label": "y",
  1279. "description": "Specify the end of the range in which to interpolate."
  1280. },
  1281. {
  1282. "name": "cNode",
  1283. "nodeType": "node",
  1284. "label": "a",
  1285. "description": "Specify the value to use to interpolate between x and y."
  1286. }
  1287. ]
  1288. },
  1289. {
  1290. "name": "Modulo",
  1291. "icon": "math-function",
  1292. "description": "Returns the value of x modulo y.",
  1293. "shaderNode": "mod",
  1294. "nodeType": "node",
  1295. "properties": [
  1296. {
  1297. "name": "aNode",
  1298. "nodeType": "node",
  1299. "label": "x",
  1300. "description": "Specify the value to evaluate."
  1301. },
  1302. {
  1303. "name": "bNode",
  1304. "nodeType": "float",
  1305. "label": "y",
  1306. "description": "Specify the value to evaluate."
  1307. }
  1308. ]
  1309. },
  1310. {
  1311. "name": "Negate",
  1312. "icon": "math-function",
  1313. "description": "Returns the flipped sign value of input In",
  1314. "shaderNode": "negate",
  1315. "nodeType": "node",
  1316. "properties": [
  1317. {
  1318. "name": "aNode",
  1319. "nodeType": "node",
  1320. "description": "Input value."
  1321. }
  1322. ]
  1323. },
  1324. {
  1325. "name": "Normalize",
  1326. "icon": "math-function",
  1327. "description": "Returns a vector with the same direction as its parameter, v, but with length 1.",
  1328. "shaderNode": "normalize",
  1329. "nodeType": "node",
  1330. "properties": [
  1331. {
  1332. "name": "aNode",
  1333. "nodeType": "node",
  1334. "label": "v",
  1335. "description": "Specifies the vector to normalize."
  1336. }
  1337. ]
  1338. },
  1339. {
  1340. "name": "One Minus",
  1341. "icon": "math-function",
  1342. "description": "Returns the result of input `a` subtracted from 1.",
  1343. "shaderNode": "oneMinus",
  1344. "nodeType": "node",
  1345. "properties": [
  1346. {
  1347. "name": "aNode",
  1348. "nodeType": "node",
  1349. "description": "Input value."
  1350. }
  1351. ]
  1352. },
  1353. {
  1354. "name": "Pow",
  1355. "icon": "math-function",
  1356. "description": "Return the value of the first parameter raised to the power of the second",
  1357. "shaderNode": "pow",
  1358. "nodeType": "node",
  1359. "properties": [
  1360. {
  1361. "name": "aNode",
  1362. "nodeType": "node",
  1363. "label": "x",
  1364. "description": "Specify the value to raise to the power y."
  1365. },
  1366. {
  1367. "name": "bNode",
  1368. "nodeType": "node",
  1369. "label": "y",
  1370. "description": "Specify the value to whitch to raise x."
  1371. }
  1372. ]
  1373. },
  1374. {
  1375. "name": "Radians",
  1376. "icon": "math-function",
  1377. "description": "Converts a quantity specified in degrees into radians.",
  1378. "shaderNode": "radians",
  1379. "nodeType": "node",
  1380. "properties": [
  1381. {
  1382. "name": "aNode",
  1383. "nodeType": "node",
  1384. "label": "degrees",
  1385. "description": "Specify the quantity, in degrees, to be converted to radians."
  1386. }
  1387. ]
  1388. },
  1389. {
  1390. "name": "Reciprocal",
  1391. "icon": "math-function",
  1392. "description": "Returns the result of dividing 1 by the input.",
  1393. "shaderNode": "reciprocal",
  1394. "nodeType": "node",
  1395. "properties": [
  1396. {
  1397. "name": "aNode",
  1398. "nodeType": "node",
  1399. "description": "Input value."
  1400. }
  1401. ]
  1402. },
  1403. {
  1404. "name": "Reflect",
  1405. "icon": "math-function",
  1406. "description": "Calculate the reflection direction for an incident vector",
  1407. "shaderNode": "reflect",
  1408. "nodeType": "node",
  1409. "properties": [
  1410. {
  1411. "name": "aNode",
  1412. "nodeType": "node",
  1413. "label": "i",
  1414. "description": "Specifies the incident vector."
  1415. },
  1416. {
  1417. "name": "bNode",
  1418. "nodeType": "node",
  1419. "label": "n",
  1420. "description": "Specifies the normal vector."
  1421. }
  1422. ]
  1423. },
  1424. {
  1425. "name": "Refract",
  1426. "icon": "math-function",
  1427. "description": "Calculate the refraction direction for an incident vector",
  1428. "shaderNode": "refract",
  1429. "nodeType": "node",
  1430. "properties": [
  1431. {
  1432. "name": "aNode",
  1433. "nodeType": "node",
  1434. "label": "i",
  1435. "description": "Specifies the incident vector."
  1436. },
  1437. {
  1438. "name": "bNode",
  1439. "nodeType": "node",
  1440. "label": "n",
  1441. "description": "Specifies the normal vector."
  1442. },
  1443. {
  1444. "name": "cNode",
  1445. "nodeType": "node",
  1446. "label": "eta",
  1447. "description": "Specifies the ratio of indices of refraction."
  1448. }
  1449. ]
  1450. },
  1451. {
  1452. "name": "Remap",
  1453. "icon": "math-function",
  1454. "nodeType": "node",
  1455. "shaderNode": "remap",
  1456. "properties": [
  1457. {
  1458. "name": "node",
  1459. "nodeType": "node"
  1460. },
  1461. {
  1462. "name": "inLowNode",
  1463. "nodeType": "node"
  1464. },
  1465. {
  1466. "name": "inHighNode",
  1467. "nodeType": "node"
  1468. },
  1469. {
  1470. "name": "outLowNode",
  1471. "nodeType": "node"
  1472. },
  1473. {
  1474. "name": "outHighNode",
  1475. "nodeType": "node"
  1476. }
  1477. ]
  1478. },
  1479. {
  1480. "name": "Round",
  1481. "icon": "math-function",
  1482. "description": "Round returns a value equal to the nearest integer to x.",
  1483. "shaderNode": "round",
  1484. "nodeType": "node",
  1485. "properties": [
  1486. {
  1487. "name": "aNode",
  1488. "nodeType": "node",
  1489. "label": "x",
  1490. "description": "Specify the value to evaluate."
  1491. }
  1492. ]
  1493. },
  1494. {
  1495. "name": "Saturate",
  1496. "icon": "math-function",
  1497. "shaderNode": "saturate",
  1498. "nodeType": "node",
  1499. "properties": [
  1500. {
  1501. "name": "aNode",
  1502. "nodeType": "node"
  1503. }
  1504. ]
  1505. },
  1506. {
  1507. "name": "Sign",
  1508. "icon": "math-function",
  1509. "description": "Returns -1.0 if x is less than 0.0, 0.0 if x is equal to 0.0, and +1.0 if x is greater than 0.0.",
  1510. "shaderNode": "sign",
  1511. "nodeType": "node",
  1512. "properties": [
  1513. {
  1514. "name": "aNode",
  1515. "nodeType": "node",
  1516. "label": "x",
  1517. "description": "Specify the value from wich to extract the sign."
  1518. }
  1519. ]
  1520. },
  1521. {
  1522. "name": "Sine",
  1523. "icon": "math-function",
  1524. "description": "Returns the trigonometric sine of angle.",
  1525. "shaderNode": "sin",
  1526. "nodeType": "node",
  1527. "properties": [
  1528. {
  1529. "name": "aNode",
  1530. "nodeType": "node",
  1531. "label": "angle",
  1532. "description": "Specify the quantity, in radians, of which to return the sine."
  1533. }
  1534. ]
  1535. },
  1536. {
  1537. "name": "Smoothstep",
  1538. "icon": "math-function",
  1539. "description": "Perform Hermite interpolation between two values",
  1540. "shaderNode": "smoothstep",
  1541. "nodeType": "node",
  1542. "properties": [
  1543. {
  1544. "name": "aNode",
  1545. "nodeType": "node",
  1546. "label": "edge0",
  1547. "description": "Specifies the value of the lower edge of the Hermite function."
  1548. },
  1549. {
  1550. "name": "bNode",
  1551. "nodeType": "node",
  1552. "label": "edge1",
  1553. "description": "Specifies the value of the upper edge of the Hermite function."
  1554. },
  1555. {
  1556. "name": "cNode",
  1557. "nodeType": "node",
  1558. "label": "x",
  1559. "description": "Specifies the value to be used to generate the Hermite function."
  1560. }
  1561. ]
  1562. },
  1563. {
  1564. "name": "Sqrt",
  1565. "icon": "math-function",
  1566. "description": "Returns the square root of x, i.e.",
  1567. "shaderNode": "sqrt",
  1568. "nodeType": "node",
  1569. "properties": [
  1570. {
  1571. "name": "aNode",
  1572. "nodeType": "node",
  1573. "label": "x",
  1574. "description": "Specify the value of which to take the square root."
  1575. }
  1576. ]
  1577. },
  1578. {
  1579. "name": "Tangent",
  1580. "icon": "math-function",
  1581. "description": "Returns the trigonometric tangent of angle.",
  1582. "shaderNode": "tan",
  1583. "nodeType": "node",
  1584. "properties": [
  1585. {
  1586. "name": "aNode",
  1587. "nodeType": "node",
  1588. "label": "angle",
  1589. "description": "Specify the quantity, in radians, of which to return the tangent."
  1590. }
  1591. ]
  1592. },
  1593. {
  1594. "name": "Transform Direction",
  1595. "icon": "math-function",
  1596. "description": "Transforms the direction of vector by a matrix and then normalizes the result.",
  1597. "shaderNode": "transformDirection",
  1598. "nodeType": "node",
  1599. "properties": [
  1600. {
  1601. "name": "aNode",
  1602. "nodeType": "node",
  1603. "label": "dir"
  1604. },
  1605. {
  1606. "name": "bNode",
  1607. "nodeType": "node",
  1608. "label": "matrix"
  1609. }
  1610. ]
  1611. },
  1612. {
  1613. "name": "dFdx",
  1614. "icon": "math-function",
  1615. "description": "Return the partial derivative of expression p with respect to the window x coordinate.",
  1616. "shaderNode": "dFdx",
  1617. "nodeType": "node",
  1618. "properties": [
  1619. {
  1620. "name": "aNode",
  1621. "nodeType": "node",
  1622. "label": "p",
  1623. "description": "Specifies the expression of which to take the partial derivative."
  1624. }
  1625. ]
  1626. },
  1627. {
  1628. "name": "dFdy",
  1629. "icon": "math-function",
  1630. "description": "Return the partial derivative of expression p with respect to the window y coordinate.",
  1631. "shaderNode": "dFdy",
  1632. "nodeType": "node",
  1633. "properties": [
  1634. {
  1635. "name": "aNode",
  1636. "nodeType": "node",
  1637. "label": "p",
  1638. "description": "Specifies the expression of which to take the partial derivative."
  1639. }
  1640. ]
  1641. },
  1642. {
  1643. "name": "Step",
  1644. "icon": "math-function",
  1645. "description": "Generates a step function by comparing x to edge.",
  1646. "shaderNode": "step",
  1647. "nodeType": "node",
  1648. "properties": [
  1649. {
  1650. "name": "aNode",
  1651. "nodeType": "node",
  1652. "label": "edge",
  1653. "description": "Specifies the location of the edge of the step function."
  1654. },
  1655. {
  1656. "name": "bNode",
  1657. "nodeType": "node",
  1658. "label": "x",
  1659. "description": "Specify the value to be used to generate the step function."
  1660. }
  1661. ]
  1662. }
  1663. ]
  1664. },
  1665. {
  1666. "name": "Constants",
  1667. "icon": "123",
  1668. "children": [
  1669. {
  1670. "name": "Epsilon",
  1671. "icon": "letter-e",
  1672. "shaderNode": "EPSILON",
  1673. "nodeType": "float",
  1674. "value": 1000000
  1675. },
  1676. {
  1677. "name": "Infinity",
  1678. "icon": "infinity",
  1679. "shaderNode": "INFINITY",
  1680. "nodeType": "float",
  1681. "value": 0.000001
  1682. },
  1683. {
  1684. "name": "PI",
  1685. "icon": "math-pi",
  1686. "shaderNode": "PI",
  1687. "nodeType": "float",
  1688. "value": 3.141592653589793
  1689. }
  1690. ]
  1691. }
  1692. ]
  1693. },
  1694. {
  1695. "name": "Filters",
  1696. "icon": "color-filter",
  1697. "children": [
  1698. {
  1699. "name": "Burn",
  1700. "icon": "color-filter",
  1701. "nodeType": "color",
  1702. "shaderNode": "burn",
  1703. "properties": [
  1704. {
  1705. "name": "blendNode",
  1706. "nodeType": "color"
  1707. },
  1708. {
  1709. "name": "baseNode",
  1710. "nodeType": "color"
  1711. }
  1712. ]
  1713. },
  1714. {
  1715. "name": "Difference",
  1716. "icon": "color-filter",
  1717. "nodeType": "color",
  1718. "shaderNode": "difference",
  1719. "properties": [
  1720. {
  1721. "name": "blendNode",
  1722. "nodeType": "color"
  1723. },
  1724. {
  1725. "name": "baseNode",
  1726. "nodeType": "color"
  1727. }
  1728. ]
  1729. },
  1730. {
  1731. "name": "Dodge",
  1732. "icon": "color-filter",
  1733. "nodeType": "color",
  1734. "shaderNode": "dodge",
  1735. "properties": [
  1736. {
  1737. "name": "blendNode",
  1738. "nodeType": "color"
  1739. },
  1740. {
  1741. "name": "baseNode",
  1742. "nodeType": "color"
  1743. }
  1744. ]
  1745. },
  1746. {
  1747. "name": "Hue",
  1748. "icon": "color-filter",
  1749. "nodeType": "color",
  1750. "shaderNode": "hue",
  1751. "properties": [
  1752. {
  1753. "name": "blendNode",
  1754. "nodeType": "color"
  1755. },
  1756. {
  1757. "name": "baseNode",
  1758. "nodeType": "color"
  1759. }
  1760. ]
  1761. },
  1762. {
  1763. "name": "Luminance",
  1764. "icon": "color-filter",
  1765. "nodeType": "color",
  1766. "shaderNode": "luminance",
  1767. "properties": [
  1768. {
  1769. "name": "blendNode",
  1770. "nodeType": "color"
  1771. },
  1772. {
  1773. "name": "baseNode",
  1774. "nodeType": "color"
  1775. }
  1776. ]
  1777. },
  1778. {
  1779. "name": "Overlay",
  1780. "icon": "color-filter",
  1781. "nodeType": "color",
  1782. "shaderNode": "overlay",
  1783. "properties": [
  1784. {
  1785. "name": "blendNode",
  1786. "nodeType": "color"
  1787. },
  1788. {
  1789. "name": "baseNode",
  1790. "nodeType": "color"
  1791. }
  1792. ]
  1793. },
  1794. {
  1795. "name": "Posterize",
  1796. "icon": "color-filter",
  1797. "nodeType": "color",
  1798. "shaderNode": "posterize",
  1799. "visible": false,
  1800. "properties": [
  1801. {
  1802. "name": "blendNode",
  1803. "nodeType": "color"
  1804. },
  1805. {
  1806. "name": "baseNode",
  1807. "nodeType": "color"
  1808. }
  1809. ]
  1810. },
  1811. {
  1812. "name": "Saturation",
  1813. "icon": "color-filter",
  1814. "nodeType": "color",
  1815. "shaderNode": "saturation",
  1816. "properties": [
  1817. {
  1818. "name": "blendNode",
  1819. "nodeType": "color"
  1820. },
  1821. {
  1822. "name": "baseNode",
  1823. "nodeType": "color"
  1824. }
  1825. ]
  1826. },
  1827. {
  1828. "name": "Screen",
  1829. "icon": "color-filter",
  1830. "nodeType": "color",
  1831. "shaderNode": "screen",
  1832. "properties": [
  1833. {
  1834. "name": "blendNode",
  1835. "nodeType": "color"
  1836. },
  1837. {
  1838. "name": "baseNode",
  1839. "nodeType": "color"
  1840. }
  1841. ]
  1842. },
  1843. {
  1844. "name": "Vibrance",
  1845. "icon": "color-filter",
  1846. "nodeType": "color",
  1847. "shaderNode": "vibrance",
  1848. "properties": [
  1849. {
  1850. "name": "blendNode",
  1851. "nodeType": "color"
  1852. },
  1853. {
  1854. "name": "baseNode",
  1855. "nodeType": "color"
  1856. }
  1857. ]
  1858. }
  1859. ]
  1860. },
  1861. {
  1862. "name": "Utils",
  1863. "icon": "apps",
  1864. "children": [
  1865. {
  1866. "name": "Channel",
  1867. "icon": "server-2",
  1868. "children": [
  1869. {
  1870. "name": "Join",
  1871. "icon": "arrows-join",
  1872. "nodeType": "node",
  1873. "editorClass": "JoinEditor"
  1874. },
  1875. {
  1876. "name": "Split",
  1877. "icon": "arrows-split",
  1878. "nodeType": "node",
  1879. "editorClass": "SplitEditor"
  1880. },
  1881. {
  1882. "name": "Swizzle",
  1883. "icon": "switch-3",
  1884. "nodeType": "node",
  1885. "editorClass": "SwizzleEditor"
  1886. }
  1887. ]
  1888. },
  1889. {
  1890. "name": "UV",
  1891. "icon": "chart-treemap",
  1892. "children": [
  1893. {
  1894. "name": "Rotate UV",
  1895. "icon": "rotate-clockwise-2",
  1896. "nodeType": "float",
  1897. "shaderNode": "rotateUV"
  1898. }
  1899. ]
  1900. },
  1901. {
  1902. "name": "Preview",
  1903. "icon": "square-check",
  1904. "nodeType": "float",
  1905. "editorClass": "PreviewEditor"
  1906. },
  1907. {
  1908. "name": "Timer",
  1909. "icon": "clock",
  1910. "editorClass": "TimerEditor"
  1911. }
  1912. ]
  1913. },
  1914. {
  1915. "name": "Conversions",
  1916. "icon": "arrows-exchange",
  1917. "children": [
  1918. {
  1919. "name": "Color To Direction",
  1920. "icon": "arrows-exchange",
  1921. "nodeType": "color",
  1922. "shaderNode": "colorToDirection"
  1923. },
  1924. {
  1925. "name": "Direction To Color",
  1926. "icon": "arrows-exchange",
  1927. "nodeType": "color",
  1928. "shaderNode": "directionToColor"
  1929. }
  1930. ]
  1931. },
  1932. {
  1933. "name": "Procedural",
  1934. "icon": "binary-tree",
  1935. "children": [
  1936. {
  1937. "name": "Checker",
  1938. "icon": "border-all",
  1939. "nodeType": "float",
  1940. "shaderNode": "checker",
  1941. "properties": [
  1942. {
  1943. "name": "uvNode",
  1944. "nodeType": "vec2"
  1945. }
  1946. ]
  1947. },
  1948. {
  1949. "name": "Range",
  1950. "icon": "sort-ascending-2",
  1951. "nodeType": "node",
  1952. "shaderNode": "range",
  1953. "properties": [
  1954. {
  1955. "name": "minNode",
  1956. "nodeType": "InputNode"
  1957. },
  1958. {
  1959. "name": "maxNode",
  1960. "nodeType": "InputNode"
  1961. }
  1962. ]
  1963. }
  1964. ]
  1965. },
  1966. {
  1967. "name": "Prototype",
  1968. "icon": "code",
  1969. "children": [
  1970. {
  1971. "name": "Node Prototype",
  1972. "icon": "components",
  1973. "editorClass": "NodePrototypeEditor"
  1974. },
  1975. {
  1976. "name": "Scriptable",
  1977. "icon": "variable",
  1978. "editorClass": "ScriptableEditor"
  1979. }
  1980. ]
  1981. },
  1982. {
  1983. "name": "Material",
  1984. "icon": "circles",
  1985. "children": [
  1986. {
  1987. "name": "Basic Material",
  1988. "icon": "circle",
  1989. "nodeType": "float",
  1990. "editorClass": "BasicMaterialEditor",
  1991. "editorURL": "./materials/BasicMaterialEditor.js"
  1992. },
  1993. {
  1994. "name": "Points Material",
  1995. "icon": "circle-dotted",
  1996. "nodeType": "float",
  1997. "editorClass": "PointsMaterialEditor"
  1998. },
  1999. {
  2000. "name": "Standard Material",
  2001. "icon": "inner-shadow-top-left",
  2002. "nodeType": "float",
  2003. "editorClass": "StandardMaterialEditor"
  2004. }
  2005. ]
  2006. }
  2007. ]
  2008. }