Nodes.json 46 KB

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