fresnel.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. {
  2. "tags": null,
  3. "id": "dummy node",
  4. "uniqueId": 78,
  5. "name": "dummy node",
  6. "checkReadyOnEveryCall": false,
  7. "checkReadyOnlyOnce": false,
  8. "state": "",
  9. "alpha": 1,
  10. "backFaceCulling": true,
  11. "sideOrientation": 1,
  12. "alphaMode": 2,
  13. "_needDepthPrePass": false,
  14. "disableDepthWrite": false,
  15. "forceDepthWrite": false,
  16. "separateCullingPass": false,
  17. "fogEnabled": true,
  18. "pointSize": 1,
  19. "zOffset": 0,
  20. "wireframe": false,
  21. "pointsCloud": false,
  22. "fillMode": 0,
  23. "customType": "BABYLON.NodeMaterial",
  24. "outputNodes": [
  25. 200,
  26. 213,
  27. 226
  28. ],
  29. "blocks": [
  30. {
  31. "customType": "BABYLON.VertexOutputBlock",
  32. "id": 200,
  33. "name": "vertexOutput",
  34. "inputs": [
  35. {
  36. "name": "vector",
  37. "inputName": "vector",
  38. "targetBlockId": 201,
  39. "targetConnectionName": "output"
  40. }
  41. ]
  42. },
  43. {
  44. "customType": "BABYLON.TransformBlock",
  45. "id": 201,
  46. "name": "worldPos * viewProjectionTransform",
  47. "inputs": [
  48. {
  49. "name": "vector",
  50. "inputName": "vector",
  51. "targetBlockId": 202,
  52. "targetConnectionName": "output"
  53. },
  54. {
  55. "name": "transform",
  56. "inputName": "transform",
  57. "targetBlockId": 212,
  58. "targetConnectionName": "output"
  59. }
  60. ],
  61. "complementZ": 0,
  62. "complementW": 1
  63. },
  64. {
  65. "customType": "BABYLON.TransformBlock",
  66. "id": 202,
  67. "name": "worldPos",
  68. "inputs": [
  69. {
  70. "name": "vector",
  71. "inputName": "vector",
  72. "targetBlockId": 203,
  73. "targetConnectionName": "positionOutput"
  74. },
  75. {
  76. "name": "transform",
  77. "inputName": "transform",
  78. "targetBlockId": 208,
  79. "targetConnectionName": "output"
  80. }
  81. ],
  82. "complementZ": 0,
  83. "complementW": 1
  84. },
  85. {
  86. "customType": "BABYLON.MorphTargetsBlock",
  87. "id": 203,
  88. "name": "morphTargets",
  89. "inputs": [
  90. {
  91. "name": "position",
  92. "inputName": "position",
  93. "targetBlockId": 204,
  94. "targetConnectionName": "output"
  95. },
  96. {
  97. "name": "normal",
  98. "inputName": "normal",
  99. "targetBlockId": 205,
  100. "targetConnectionName": "output"
  101. },
  102. {
  103. "name": "tangent",
  104. "inputName": "tangent",
  105. "targetBlockId": 206,
  106. "targetConnectionName": "output"
  107. },
  108. {
  109. "name": "uv",
  110. "inputName": "uv",
  111. "targetBlockId": 207,
  112. "targetConnectionName": "output"
  113. }
  114. ]
  115. },
  116. {
  117. "customType": "BABYLON.InputBlock",
  118. "id": 204,
  119. "name": "position",
  120. "inputs": [],
  121. "type": 8,
  122. "mode": 1,
  123. "wellKnownValue": null,
  124. "animationType": 0,
  125. "visibleInInspector": false
  126. },
  127. {
  128. "customType": "BABYLON.InputBlock",
  129. "id": 205,
  130. "name": "normal",
  131. "inputs": [],
  132. "type": 8,
  133. "mode": 1,
  134. "wellKnownValue": null,
  135. "animationType": 0,
  136. "visibleInInspector": false
  137. },
  138. {
  139. "customType": "BABYLON.InputBlock",
  140. "id": 206,
  141. "name": "tangent",
  142. "inputs": [],
  143. "type": 8,
  144. "mode": 1,
  145. "wellKnownValue": null,
  146. "animationType": 0,
  147. "visibleInInspector": false
  148. },
  149. {
  150. "customType": "BABYLON.InputBlock",
  151. "id": 207,
  152. "name": "uv",
  153. "inputs": [],
  154. "type": 4,
  155. "mode": 1,
  156. "wellKnownValue": null,
  157. "animationType": 0,
  158. "visibleInInspector": false
  159. },
  160. {
  161. "customType": "BABYLON.BonesBlock",
  162. "id": 208,
  163. "name": "bonesBlock",
  164. "inputs": [
  165. {
  166. "name": "matricesIndices",
  167. "inputName": "matricesIndices",
  168. "targetBlockId": 209,
  169. "targetConnectionName": "output"
  170. },
  171. {
  172. "name": "matricesWeights",
  173. "inputName": "matricesWeights",
  174. "targetBlockId": 210,
  175. "targetConnectionName": "output"
  176. },
  177. {
  178. "name": "matricesIndicesExtra"
  179. },
  180. {
  181. "name": "matricesWeightsExtra"
  182. },
  183. {
  184. "name": "world",
  185. "inputName": "world",
  186. "targetBlockId": 211,
  187. "targetConnectionName": "output"
  188. }
  189. ]
  190. },
  191. {
  192. "customType": "BABYLON.InputBlock",
  193. "id": 209,
  194. "name": "matricesIndices",
  195. "inputs": [],
  196. "type": 16,
  197. "mode": 1,
  198. "wellKnownValue": null,
  199. "animationType": 0,
  200. "visibleInInspector": false
  201. },
  202. {
  203. "customType": "BABYLON.InputBlock",
  204. "id": 210,
  205. "name": "matricesWeights",
  206. "inputs": [],
  207. "type": 16,
  208. "mode": 1,
  209. "wellKnownValue": null,
  210. "animationType": 0,
  211. "visibleInInspector": false
  212. },
  213. {
  214. "customType": "BABYLON.InputBlock",
  215. "id": 211,
  216. "name": "world",
  217. "inputs": [],
  218. "type": 128,
  219. "mode": 0,
  220. "wellKnownValue": 1,
  221. "animationType": 0,
  222. "visibleInInspector": false,
  223. "valueType": "BABYLON.Matrix",
  224. "value": {
  225. "0": 1,
  226. "1": 0,
  227. "2": 0,
  228. "3": 0,
  229. "4": 0,
  230. "5": 1,
  231. "6": 0,
  232. "7": 0,
  233. "8": 0,
  234. "9": 0,
  235. "10": 1,
  236. "11": 0,
  237. "12": 0,
  238. "13": 0,
  239. "14": 0,
  240. "15": 1
  241. }
  242. },
  243. {
  244. "customType": "BABYLON.InputBlock",
  245. "id": 212,
  246. "name": "viewProjection",
  247. "inputs": [],
  248. "type": 128,
  249. "mode": 0,
  250. "wellKnownValue": 4,
  251. "animationType": 0,
  252. "visibleInInspector": false
  253. },
  254. {
  255. "customType": "BABYLON.FogBlock",
  256. "id": 213,
  257. "name": "fog",
  258. "inputs": [
  259. {
  260. "name": "worldPosition",
  261. "inputName": "worldPosition",
  262. "targetBlockId": 202,
  263. "targetConnectionName": "output"
  264. },
  265. {
  266. "name": "view",
  267. "inputName": "view",
  268. "targetBlockId": 214,
  269. "targetConnectionName": "output"
  270. },
  271. {
  272. "name": "input",
  273. "inputName": "input",
  274. "targetBlockId": 215,
  275. "targetConnectionName": "rgb"
  276. },
  277. {
  278. "name": "fogColor",
  279. "inputName": "fogColor",
  280. "targetBlockId": 225,
  281. "targetConnectionName": "output"
  282. }
  283. ]
  284. },
  285. {
  286. "customType": "BABYLON.InputBlock",
  287. "id": 214,
  288. "name": "view",
  289. "inputs": [],
  290. "type": 128,
  291. "mode": 0,
  292. "wellKnownValue": 2,
  293. "animationType": 0,
  294. "visibleInInspector": false
  295. },
  296. {
  297. "customType": "BABYLON.ColorSplitterBlock",
  298. "id": 215,
  299. "name": "color4 splitter",
  300. "inputs": [
  301. {
  302. "name": "rgba",
  303. "inputName": "rgba",
  304. "targetBlockId": 216,
  305. "targetConnectionName": "output"
  306. },
  307. {
  308. "name": "rgb "
  309. }
  310. ]
  311. },
  312. {
  313. "customType": "BABYLON.ScaleBlock",
  314. "id": 216,
  315. "name": "color scale",
  316. "inputs": [
  317. {
  318. "name": "input",
  319. "inputName": "input",
  320. "targetBlockId": 217,
  321. "targetConnectionName": "output"
  322. },
  323. {
  324. "name": "factor",
  325. "inputName": "factor",
  326. "targetBlockId": 224,
  327. "targetConnectionName": "output"
  328. }
  329. ]
  330. },
  331. {
  332. "customType": "BABYLON.MultiplyBlock",
  333. "id": 217,
  334. "name": "color multiplier",
  335. "inputs": [
  336. {
  337. "name": "left",
  338. "inputName": "left",
  339. "targetBlockId": 218,
  340. "targetConnectionName": "rgba"
  341. },
  342. {
  343. "name": "right",
  344. "inputName": "right",
  345. "targetBlockId": 221,
  346. "targetConnectionName": "rgba"
  347. }
  348. ]
  349. },
  350. {
  351. "customType": "BABYLON.TextureBlock",
  352. "id": 218,
  353. "name": "diffuseTexture",
  354. "inputs": [
  355. {
  356. "name": "uv",
  357. "inputName": "uv",
  358. "targetBlockId": 220,
  359. "targetConnectionName": "output"
  360. }
  361. ],
  362. "texture": {
  363. "tags": null,
  364. "url": "/playground/textures/bloc.jpg",
  365. "uOffset": 0,
  366. "vOffset": 0,
  367. "uScale": 1,
  368. "vScale": 1,
  369. "uAng": 0,
  370. "vAng": 0,
  371. "wAng": 0,
  372. "uRotationCenter": 0.5,
  373. "vRotationCenter": 0.5,
  374. "wRotationCenter": 0.5,
  375. "isBlocking": true,
  376. "uniqueId": 88,
  377. "name": "/playground/textures/bloc.jpg",
  378. "hasAlpha": false,
  379. "getAlphaFromRGB": false,
  380. "level": 1,
  381. "coordinatesIndex": 0,
  382. "coordinatesMode": 0,
  383. "wrapU": 1,
  384. "wrapV": 1,
  385. "wrapR": 1,
  386. "anisotropicFilteringLevel": 4,
  387. "isCube": false,
  388. "is3D": false,
  389. "gammaSpace": true,
  390. "invertZ": false,
  391. "lodLevelInAlpha": false,
  392. "lodGenerationOffset": 0,
  393. "lodGenerationScale": 0,
  394. "linearSpecularLOD": false,
  395. "isRenderTarget": false,
  396. "animations": [],
  397. "invertY": true,
  398. "samplingMode": 3
  399. }
  400. },
  401. {
  402. "customType": "BABYLON.InputBlock",
  403. "id": 220,
  404. "name": "uv",
  405. "inputs": [],
  406. "type": 4,
  407. "mode": 1,
  408. "wellKnownValue": null,
  409. "animationType": 0,
  410. "visibleInInspector": false
  411. },
  412. {
  413. "customType": "BABYLON.TextureBlock",
  414. "id": 221,
  415. "name": "diffuseTexture2",
  416. "inputs": [
  417. {
  418. "name": "uv",
  419. "inputName": "uv",
  420. "targetBlockId": 223,
  421. "targetConnectionName": "output"
  422. }
  423. ],
  424. "texture": {
  425. "tags": null,
  426. "url": "/playground/textures/crate.png",
  427. "uOffset": 0,
  428. "vOffset": 0,
  429. "uScale": 1,
  430. "vScale": 1,
  431. "uAng": 0,
  432. "vAng": 0,
  433. "wAng": 0,
  434. "uRotationCenter": 0.5,
  435. "vRotationCenter": 0.5,
  436. "wRotationCenter": 0.5,
  437. "isBlocking": true,
  438. "uniqueId": 90,
  439. "name": "/playground/textures/crate.png",
  440. "hasAlpha": false,
  441. "getAlphaFromRGB": false,
  442. "level": 1,
  443. "coordinatesIndex": 0,
  444. "coordinatesMode": 0,
  445. "wrapU": 1,
  446. "wrapV": 1,
  447. "wrapR": 1,
  448. "anisotropicFilteringLevel": 4,
  449. "isCube": false,
  450. "is3D": false,
  451. "gammaSpace": true,
  452. "invertZ": false,
  453. "lodLevelInAlpha": false,
  454. "lodGenerationOffset": 0,
  455. "lodGenerationScale": 0,
  456. "linearSpecularLOD": false,
  457. "isRenderTarget": false,
  458. "animations": [],
  459. "invertY": true,
  460. "samplingMode": 3
  461. }
  462. },
  463. {
  464. "customType": "BABYLON.InputBlock",
  465. "id": 223,
  466. "name": "uv",
  467. "inputs": [],
  468. "type": 4,
  469. "mode": 1,
  470. "wellKnownValue": null,
  471. "animationType": 0,
  472. "visibleInInspector": false
  473. },
  474. {
  475. "customType": "BABYLON.InputBlock",
  476. "id": 224,
  477. "name": "time",
  478. "inputs": [],
  479. "type": 1,
  480. "mode": 0,
  481. "wellKnownValue": null,
  482. "animationType": 0,
  483. "visibleInInspector": false,
  484. "valueType": "number",
  485. "value": 1
  486. },
  487. {
  488. "customType": "BABYLON.InputBlock",
  489. "id": 225,
  490. "name": "fogColor",
  491. "inputs": [],
  492. "type": 32,
  493. "mode": 0,
  494. "wellKnownValue": 8,
  495. "animationType": 0,
  496. "visibleInInspector": false,
  497. "valueType": "BABYLON.Color3",
  498. "value": [
  499. 1,
  500. 1,
  501. 1
  502. ]
  503. },
  504. {
  505. "customType": "BABYLON.FragmentOutputBlock",
  506. "id": 226,
  507. "name": "pixelOutput",
  508. "inputs": [
  509. {
  510. "name": "rgba"
  511. },
  512. {
  513. "name": "rgb",
  514. "inputName": "rgb",
  515. "targetBlockId": 524,
  516. "targetConnectionName": "output"
  517. },
  518. {
  519. "name": "a"
  520. }
  521. ]
  522. },
  523. {
  524. "customType": "BABYLON.ScaleBlock",
  525. "id": 524,
  526. "name": "Scale",
  527. "inputs": [
  528. {
  529. "name": "input",
  530. "inputName": "input",
  531. "targetBlockId": 213,
  532. "targetConnectionName": "output"
  533. },
  534. {
  535. "name": "factor",
  536. "inputName": "factor",
  537. "targetBlockId": 228,
  538. "targetConnectionName": "fresnel"
  539. }
  540. ]
  541. },
  542. {
  543. "customType": "BABYLON.FresnelBlock",
  544. "id": 228,
  545. "name": "Fresnel",
  546. "inputs": [
  547. {
  548. "name": "worldPosition",
  549. "inputName": "worldPosition",
  550. "targetBlockId": 202,
  551. "targetConnectionName": "output"
  552. },
  553. {
  554. "name": "worldNormal",
  555. "inputName": "worldNormal",
  556. "targetBlockId": 229,
  557. "targetConnectionName": "output"
  558. },
  559. {
  560. "name": "cameraPosition",
  561. "inputName": "cameraPosition",
  562. "targetBlockId": 231,
  563. "targetConnectionName": "output"
  564. },
  565. {
  566. "name": "bias",
  567. "inputName": "bias",
  568. "targetBlockId": 232,
  569. "targetConnectionName": "output"
  570. },
  571. {
  572. "name": "power",
  573. "inputName": "power",
  574. "targetBlockId": 233,
  575. "targetConnectionName": "output"
  576. }
  577. ]
  578. },
  579. {
  580. "customType": "BABYLON.TransformBlock",
  581. "id": 229,
  582. "name": "Transform",
  583. "inputs": [
  584. {
  585. "name": "vector",
  586. "inputName": "vector",
  587. "targetBlockId": 230,
  588. "targetConnectionName": "output"
  589. },
  590. {
  591. "name": "transform",
  592. "inputName": "transform",
  593. "targetBlockId": 208,
  594. "targetConnectionName": "output"
  595. }
  596. ],
  597. "complementZ": 0,
  598. "complementW": 1
  599. },
  600. {
  601. "customType": "BABYLON.InputBlock",
  602. "id": 230,
  603. "name": "normal",
  604. "inputs": [],
  605. "type": 8,
  606. "mode": 1,
  607. "wellKnownValue": null,
  608. "animationType": 0,
  609. "visibleInInspector": false
  610. },
  611. {
  612. "customType": "BABYLON.InputBlock",
  613. "id": 231,
  614. "name": "Vector3",
  615. "inputs": [],
  616. "type": 8,
  617. "mode": 0,
  618. "wellKnownValue": 7,
  619. "animationType": 0,
  620. "visibleInInspector": false,
  621. "valueType": "BABYLON.Vector3",
  622. "value": [
  623. 0,
  624. 0,
  625. 0
  626. ]
  627. },
  628. {
  629. "customType": "BABYLON.InputBlock",
  630. "id": 232,
  631. "name": "Float",
  632. "inputs": [],
  633. "type": 1,
  634. "mode": 0,
  635. "wellKnownValue": null,
  636. "animationType": 0,
  637. "visibleInInspector": false,
  638. "valueType": "number",
  639. "value": 0
  640. },
  641. {
  642. "customType": "BABYLON.InputBlock",
  643. "id": 233,
  644. "name": "Float",
  645. "inputs": [],
  646. "type": 1,
  647. "mode": 0,
  648. "wellKnownValue": null,
  649. "animationType": 0,
  650. "visibleInInspector": false,
  651. "valueType": "number",
  652. "value": 1
  653. }
  654. ],
  655. "locations": [
  656. {
  657. "blockId": 200,
  658. "x": 1500,
  659. "y": 561.5
  660. },
  661. {
  662. "blockId": 201,
  663. "x": 1250,
  664. "y": 548.5
  665. },
  666. {
  667. "blockId": 202,
  668. "x": 1000,
  669. "y": 465
  670. },
  671. {
  672. "blockId": 203,
  673. "x": 750,
  674. "y": 172
  675. },
  676. {
  677. "blockId": 204,
  678. "x": 500,
  679. "y": 0
  680. },
  681. {
  682. "blockId": 205,
  683. "x": 500,
  684. "y": 158
  685. },
  686. {
  687. "blockId": 206,
  688. "x": 500,
  689. "y": 316
  690. },
  691. {
  692. "blockId": 207,
  693. "x": 500,
  694. "y": 474
  695. },
  696. {
  697. "blockId": 208,
  698. "x": 750,
  699. "y": 639
  700. },
  701. {
  702. "blockId": 209,
  703. "x": 500,
  704. "y": 632
  705. },
  706. {
  707. "blockId": 210,
  708. "x": 500,
  709. "y": 790
  710. },
  711. {
  712. "blockId": 211,
  713. "x": 500,
  714. "y": 948
  715. },
  716. {
  717. "blockId": 212,
  718. "x": 1000,
  719. "y": 842
  720. },
  721. {
  722. "blockId": 213,
  723. "x": 1473,
  724. "y": 1109
  725. },
  726. {
  727. "blockId": 214,
  728. "x": 1000,
  729. "y": 1000
  730. },
  731. {
  732. "blockId": 215,
  733. "x": 1000,
  734. "y": 1158
  735. },
  736. {
  737. "blockId": 216,
  738. "x": 750,
  739. "y": 1221
  740. },
  741. {
  742. "blockId": 217,
  743. "x": 500,
  744. "y": 1137.5
  745. },
  746. {
  747. "blockId": 218,
  748. "x": 250,
  749. "y": 931.5
  750. },
  751. {
  752. "blockId": 220,
  753. "x": 0,
  754. "y": 999.5
  755. },
  756. {
  757. "blockId": 221,
  758. "x": 250,
  759. "y": 1225.5
  760. },
  761. {
  762. "blockId": 223,
  763. "x": 0,
  764. "y": 1293.5
  765. },
  766. {
  767. "blockId": 224,
  768. "x": 500,
  769. "y": 1313.5
  770. },
  771. {
  772. "blockId": 225,
  773. "x": 1000,
  774. "y": 1460
  775. },
  776. {
  777. "blockId": 226,
  778. "x": 2470.619469026549,
  779. "y": 953.8318584070795
  780. },
  781. {
  782. "blockId": 228,
  783. "x": 1721.8141602372705,
  784. "y": 789.0458809677541
  785. },
  786. {
  787. "blockId": 229,
  788. "x": 1176.0973460779783,
  789. "y": 704.7538455695241
  790. },
  791. {
  792. "blockId": 230,
  793. "x": 989.1946912107215,
  794. "y": 592.1874738881081
  795. },
  796. {
  797. "blockId": 231,
  798. "x": 1432.91148916599,
  799. "y": 680.329066808462
  800. },
  801. {
  802. "blockId": 232,
  803. "x": 1411.6725511128925,
  804. "y": 834.3113676934179
  805. },
  806. {
  807. "blockId": 233,
  808. "x": 1369.1946750066977,
  809. "y": 962.8688898173117
  810. },
  811. {
  812. "blockId": 524,
  813. "x": 2063,
  814. "y": 1078
  815. }
  816. ]
  817. }