lights.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  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. 84,
  26. 93,
  27. 94
  28. ],
  29. "blocks": [
  30. {
  31. "customType": "BABYLON.VertexOutputBlock",
  32. "id": 84,
  33. "name": "vertexOutput",
  34. "inputs": [
  35. {
  36. "name": "vector",
  37. "inputName": "vector",
  38. "targetBlockId": 83,
  39. "targetConnectionName": "output"
  40. }
  41. ]
  42. },
  43. {
  44. "customType": "BABYLON.TransformBlock",
  45. "id": 83,
  46. "name": "worldPos * viewProjectionTransform",
  47. "inputs": [
  48. {
  49. "name": "vector",
  50. "inputName": "vector",
  51. "targetBlockId": 81,
  52. "targetConnectionName": "output"
  53. },
  54. {
  55. "name": "transform",
  56. "inputName": "transform",
  57. "targetBlockId": 82,
  58. "targetConnectionName": "output"
  59. }
  60. ],
  61. "complementZ": 0,
  62. "complementW": 1
  63. },
  64. {
  65. "customType": "BABYLON.TransformBlock",
  66. "id": 81,
  67. "name": "worldPos",
  68. "inputs": [
  69. {
  70. "name": "vector",
  71. "inputName": "vector",
  72. "targetBlockId": 79,
  73. "targetConnectionName": "positionOutput"
  74. },
  75. {
  76. "name": "transform",
  77. "inputName": "transform",
  78. "targetBlockId": 80,
  79. "targetConnectionName": "output"
  80. }
  81. ],
  82. "complementZ": 0,
  83. "complementW": 1
  84. },
  85. {
  86. "customType": "BABYLON.MorphTargetsBlock",
  87. "id": 79,
  88. "name": "morphTargets",
  89. "inputs": [
  90. {
  91. "name": "position",
  92. "inputName": "position",
  93. "targetBlockId": 95,
  94. "targetConnectionName": "output"
  95. },
  96. {
  97. "name": "normal",
  98. "inputName": "normal",
  99. "targetBlockId": 96,
  100. "targetConnectionName": "output"
  101. },
  102. {
  103. "name": "tangent",
  104. "inputName": "tangent",
  105. "targetBlockId": 97,
  106. "targetConnectionName": "output"
  107. },
  108. {
  109. "name": "uv",
  110. "inputName": "uv",
  111. "targetBlockId": 98,
  112. "targetConnectionName": "output"
  113. }
  114. ]
  115. },
  116. {
  117. "customType": "BABYLON.InputBlock",
  118. "id": 95,
  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": 96,
  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": 97,
  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": 98,
  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": 80,
  163. "name": "bonesBlock",
  164. "inputs": [
  165. {
  166. "name": "matricesIndices",
  167. "inputName": "matricesIndices",
  168. "targetBlockId": 99,
  169. "targetConnectionName": "output"
  170. },
  171. {
  172. "name": "matricesWeights",
  173. "inputName": "matricesWeights",
  174. "targetBlockId": 100,
  175. "targetConnectionName": "output"
  176. },
  177. {
  178. "name": "matricesIndicesExtra"
  179. },
  180. {
  181. "name": "matricesWeightsExtra"
  182. },
  183. {
  184. "name": "world",
  185. "inputName": "world",
  186. "targetBlockId": 101,
  187. "targetConnectionName": "output"
  188. }
  189. ]
  190. },
  191. {
  192. "customType": "BABYLON.InputBlock",
  193. "id": 99,
  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": 100,
  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": 101,
  216. "name": "world",
  217. "inputs": [],
  218. "type": 128,
  219. "mode": 0,
  220. "wellKnownValue": 1,
  221. "animationType": 0,
  222. "visibleInInspector": false
  223. },
  224. {
  225. "customType": "BABYLON.InputBlock",
  226. "id": 82,
  227. "name": "viewProjection",
  228. "inputs": [],
  229. "type": 128,
  230. "mode": 0,
  231. "wellKnownValue": 4,
  232. "animationType": 0,
  233. "visibleInInspector": false
  234. },
  235. {
  236. "customType": "BABYLON.FogBlock",
  237. "id": 93,
  238. "name": "fog",
  239. "inputs": [
  240. {
  241. "name": "worldPosition",
  242. "inputName": "worldPosition",
  243. "targetBlockId": 81,
  244. "targetConnectionName": "output"
  245. },
  246. {
  247. "name": "view",
  248. "inputName": "view",
  249. "targetBlockId": 102,
  250. "targetConnectionName": "output"
  251. },
  252. {
  253. "name": "input",
  254. "inputName": "input",
  255. "targetBlockId": 92,
  256. "targetConnectionName": "rgb"
  257. },
  258. {
  259. "name": "fogColor",
  260. "inputName": "fogColor",
  261. "targetBlockId": 103,
  262. "targetConnectionName": "output"
  263. }
  264. ]
  265. },
  266. {
  267. "customType": "BABYLON.InputBlock",
  268. "id": 102,
  269. "name": "view",
  270. "inputs": [],
  271. "type": 128,
  272. "mode": 0,
  273. "wellKnownValue": 2,
  274. "animationType": 0,
  275. "visibleInInspector": false
  276. },
  277. {
  278. "customType": "BABYLON.ColorSplitterBlock",
  279. "id": 92,
  280. "name": "color4 splitter",
  281. "inputs": [
  282. {
  283. "name": "rgba"
  284. },
  285. {
  286. "name": "rgb ",
  287. "inputName": "rgb ",
  288. "targetBlockId": 491,
  289. "targetConnectionName": "output"
  290. }
  291. ]
  292. },
  293. {
  294. "customType": "BABYLON.MultiplyBlock",
  295. "id": 491,
  296. "name": "Multiply",
  297. "inputs": [
  298. {
  299. "name": "left",
  300. "inputName": "left",
  301. "targetBlockId": 86,
  302. "targetConnectionName": "output"
  303. },
  304. {
  305. "name": "right",
  306. "inputName": "right",
  307. "targetBlockId": 255,
  308. "targetConnectionName": "diffuseOutput"
  309. }
  310. ]
  311. },
  312. {
  313. "customType": "BABYLON.MultiplyBlock",
  314. "id": 86,
  315. "name": "color multiplier",
  316. "inputs": [
  317. {
  318. "name": "left",
  319. "inputName": "left",
  320. "targetBlockId": 87,
  321. "targetConnectionName": "rgb"
  322. },
  323. {
  324. "name": "right",
  325. "inputName": "right",
  326. "targetBlockId": 89,
  327. "targetConnectionName": "rgb"
  328. }
  329. ]
  330. },
  331. {
  332. "customType": "BABYLON.TextureBlock",
  333. "id": 87,
  334. "name": "diffuseTexture",
  335. "inputs": [
  336. {
  337. "name": "uv",
  338. "inputName": "uv",
  339. "targetBlockId": 98,
  340. "targetConnectionName": "output"
  341. }
  342. ],
  343. "texture": {
  344. "tags": null,
  345. "url": "/playground/textures/bloc.jpg",
  346. "uOffset": 0,
  347. "vOffset": 0,
  348. "uScale": 1,
  349. "vScale": 1,
  350. "uAng": 0,
  351. "vAng": 0,
  352. "wAng": 0,
  353. "uRotationCenter": 0.5,
  354. "vRotationCenter": 0.5,
  355. "wRotationCenter": 0.5,
  356. "isBlocking": true,
  357. "uniqueId": 88,
  358. "name": "/playground/textures/bloc.jpg",
  359. "hasAlpha": false,
  360. "getAlphaFromRGB": false,
  361. "level": 1,
  362. "coordinatesIndex": 0,
  363. "coordinatesMode": 0,
  364. "wrapU": 1,
  365. "wrapV": 1,
  366. "wrapR": 1,
  367. "anisotropicFilteringLevel": 4,
  368. "isCube": false,
  369. "is3D": false,
  370. "gammaSpace": true,
  371. "invertZ": false,
  372. "lodLevelInAlpha": false,
  373. "lodGenerationOffset": 0,
  374. "lodGenerationScale": 0,
  375. "linearSpecularLOD": false,
  376. "isRenderTarget": false,
  377. "animations": [],
  378. "invertY": true,
  379. "samplingMode": 3
  380. }
  381. },
  382. {
  383. "customType": "BABYLON.TextureBlock",
  384. "id": 89,
  385. "name": "diffuseTexture2",
  386. "inputs": [
  387. {
  388. "name": "uv",
  389. "inputName": "uv",
  390. "targetBlockId": 98,
  391. "targetConnectionName": "output"
  392. }
  393. ],
  394. "texture": {
  395. "tags": null,
  396. "url": "/playground/textures/crate.png",
  397. "uOffset": 0,
  398. "vOffset": 0,
  399. "uScale": 1,
  400. "vScale": 1,
  401. "uAng": 0,
  402. "vAng": 0,
  403. "wAng": 0,
  404. "uRotationCenter": 0.5,
  405. "vRotationCenter": 0.5,
  406. "wRotationCenter": 0.5,
  407. "isBlocking": true,
  408. "uniqueId": 90,
  409. "name": "/playground/textures/crate.png",
  410. "hasAlpha": false,
  411. "getAlphaFromRGB": false,
  412. "level": 1,
  413. "coordinatesIndex": 0,
  414. "coordinatesMode": 0,
  415. "wrapU": 1,
  416. "wrapV": 1,
  417. "wrapR": 1,
  418. "anisotropicFilteringLevel": 4,
  419. "isCube": false,
  420. "is3D": false,
  421. "gammaSpace": true,
  422. "invertZ": false,
  423. "lodLevelInAlpha": false,
  424. "lodGenerationOffset": 0,
  425. "lodGenerationScale": 0,
  426. "linearSpecularLOD": false,
  427. "isRenderTarget": false,
  428. "animations": [],
  429. "invertY": true,
  430. "samplingMode": 3
  431. }
  432. },
  433. {
  434. "customType": "BABYLON.LightBlock",
  435. "id": 255,
  436. "name": "Lights",
  437. "inputs": [
  438. {
  439. "name": "worldPosition",
  440. "inputName": "worldPosition",
  441. "targetBlockId": 81,
  442. "targetConnectionName": "output"
  443. },
  444. {
  445. "name": "worldNormal",
  446. "inputName": "worldNormal",
  447. "targetBlockId": 418,
  448. "targetConnectionName": "output"
  449. },
  450. {
  451. "name": "cameraPosition",
  452. "inputName": "cameraPosition",
  453. "targetBlockId": 256,
  454. "targetConnectionName": "output"
  455. }
  456. ]
  457. },
  458. {
  459. "customType": "BABYLON.TransformBlock",
  460. "id": 418,
  461. "name": "Transform",
  462. "inputs": [
  463. {
  464. "name": "vector",
  465. "inputName": "vector",
  466. "targetBlockId": 409,
  467. "targetConnectionName": "output"
  468. },
  469. {
  470. "name": "transform",
  471. "inputName": "transform",
  472. "targetBlockId": 80,
  473. "targetConnectionName": "output"
  474. }
  475. ],
  476. "complementZ": 0,
  477. "complementW": 1
  478. },
  479. {
  480. "customType": "BABYLON.InputBlock",
  481. "id": 409,
  482. "name": "normal",
  483. "inputs": [],
  484. "type": 8,
  485. "mode": 1,
  486. "wellKnownValue": null,
  487. "animationType": 0,
  488. "visibleInInspector": false
  489. },
  490. {
  491. "customType": "BABYLON.InputBlock",
  492. "id": 256,
  493. "name": "cameraPosition",
  494. "inputs": [],
  495. "type": 8,
  496. "mode": 0,
  497. "wellKnownValue": 7,
  498. "animationType": 0,
  499. "visibleInInspector": false
  500. },
  501. {
  502. "customType": "BABYLON.InputBlock",
  503. "id": 103,
  504. "name": "fogColor",
  505. "inputs": [],
  506. "type": 32,
  507. "mode": 0,
  508. "wellKnownValue": 8,
  509. "animationType": 0,
  510. "visibleInInspector": false,
  511. "valueType": "BABYLON.Color3",
  512. "value": [
  513. 1,
  514. 1,
  515. 1
  516. ]
  517. },
  518. {
  519. "customType": "BABYLON.FragmentOutputBlock",
  520. "id": 94,
  521. "name": "pixelOutput",
  522. "inputs": [
  523. {
  524. "name": "rgba"
  525. },
  526. {
  527. "name": "rgb",
  528. "inputName": "rgb",
  529. "targetBlockId": 93,
  530. "targetConnectionName": "output"
  531. },
  532. {
  533. "name": "a"
  534. }
  535. ]
  536. }
  537. ],
  538. "locations": [
  539. {
  540. "blockId": 84,
  541. "x": 1500,
  542. "y": 399
  543. },
  544. {
  545. "blockId": 83,
  546. "x": 1250,
  547. "y": 386
  548. },
  549. {
  550. "blockId": 81,
  551. "x": 1000,
  552. "y": 396
  553. },
  554. {
  555. "blockId": 79,
  556. "x": 750,
  557. "y": 137.5
  558. },
  559. {
  560. "blockId": 95,
  561. "x": 500,
  562. "y": 0
  563. },
  564. {
  565. "blockId": 96,
  566. "x": 500,
  567. "y": 158
  568. },
  569. {
  570. "blockId": 97,
  571. "x": 500,
  572. "y": 316
  573. },
  574. {
  575. "blockId": 98,
  576. "x": 0,
  577. "y": 691
  578. },
  579. {
  580. "blockId": 80,
  581. "x": 750,
  582. "y": 501
  583. },
  584. {
  585. "blockId": 99,
  586. "x": 500,
  587. "y": 494
  588. },
  589. {
  590. "blockId": 100,
  591. "x": 500,
  592. "y": 652
  593. },
  594. {
  595. "blockId": 101,
  596. "x": 500,
  597. "y": 810
  598. },
  599. {
  600. "blockId": 82,
  601. "x": 1000,
  602. "y": 704
  603. },
  604. {
  605. "blockId": 94,
  606. "x": 1500,
  607. "y": 973
  608. },
  609. {
  610. "blockId": 93,
  611. "x": 1250,
  612. "y": 916
  613. },
  614. {
  615. "blockId": 102,
  616. "x": 1000,
  617. "y": 862
  618. },
  619. {
  620. "blockId": 92,
  621. "x": 1000,
  622. "y": 1020
  623. },
  624. {
  625. "blockId": 86,
  626. "x": 519.7647058823529,
  627. "y": 965.1764705882352
  628. },
  629. {
  630. "blockId": 87,
  631. "x": 250,
  632. "y": 701.5
  633. },
  634. {
  635. "blockId": 89,
  636. "x": 250,
  637. "y": 1056
  638. },
  639. {
  640. "blockId": 103,
  641. "x": 1000,
  642. "y": 1322
  643. },
  644. {
  645. "blockId": 255,
  646. "x": 452.0588235294116,
  647. "y": 1241.0588235294117
  648. },
  649. {
  650. "blockId": 256,
  651. "x": 221.05882352941177,
  652. "y": 1607.1176470588236
  653. },
  654. {
  655. "blockId": 409,
  656. "x": 21.82147288123261,
  657. "y": 1389.5119468766763
  658. },
  659. {
  660. "blockId": 418,
  661. "x": 333.8214728812328,
  662. "y": 1361.2766527590293
  663. },
  664. {
  665. "blockId": 491,
  666. "x": 770.0567669988801,
  667. "y": 1040.8060645237351
  668. }
  669. ]
  670. }