Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2020
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. [Log] Babylon.js v4.2.0 - WebGL1 (0.chunk.js, line 11541)
  3. [Log] Babylon.js v4.2.0 - WebGL1 (0.chunk.js, line 11541)
  4. [Error] WebGL: ERROR: 0:149: 'vDetailInfos' : undeclared identifier
  5. compileShader
  6. (anonymous function) (0.chunk.js:12092)
  7. (anonymous function) (0.chunk.js:12106)
  8. (anonymous function) (0.chunk.js:7845)
  9. (anonymous function) (0.chunk.js:12135:100)
  10. (anonymous function) (0.chunk.js:4966:269)
  11. (anonymous function) (0.chunk.js:4853)
  12. (anonymous function) (0.chunk.js:4833)
  13. (anonymous function) (0.chunk.js:71926)
  14. (anonymous function) (0.chunk.js:72083)
  15. (anonymous function) (0.chunk.js:71923)
  16. (anonymous function) (0.chunk.js:4832)
  17. (anonymous function) (0.chunk.js:71926)
  18. (anonymous function) (0.chunk.js:72083)
  19. (anonymous function) (0.chunk.js:71923)
  20. (anonymous function) (0.chunk.js:4831)
  21. (anonymous function) (0.chunk.js:4918:186)
  22. (anonymous function) (0.chunk.js:4830)
  23. (anonymous function) (0.chunk.js:4918:108)
  24. e (0.chunk.js:4829)
  25. (anonymous function) (0.chunk.js:12082)
  26. (anonymous function) (0.chunk.js:13763)
  27. (anonymous function) (0.chunk.js:5857)
  28. (anonymous function) (0.chunk.js:18302)
  29. (anonymous function) (0.chunk.js:72807)
  30. (anonymous function) (0.chunk.js:72771:202)
  31. (anonymous function) (0.chunk.js:21377)
  32. (anonymous function) (0.chunk.js:10305:97)
  33. (anonymous function) (0.chunk.js:10320:188)
  34. (anonymous function) (0.chunk.js:10404)
  35. (anonymous function) (main.chunk.js:18744)
  36. (anonymous function) (0.chunk.js:7800)
  37. (anonymous function) (0.chunk.js:7805:147)
  38. (anonymous function)
  39. [Error] WebGL: ERROR: 0:149: 'x' : field selection requires structure or vector on left hand side
  40. compileShader
  41. (anonymous function) (0.chunk.js:12092)
  42. (anonymous function) (0.chunk.js:12106)
  43. (anonymous function) (0.chunk.js:7845)
  44. (anonymous function) (0.chunk.js:12135:100)
  45. (anonymous function) (0.chunk.js:4966:269)
  46. (anonymous function) (0.chunk.js:4853)
  47. (anonymous function) (0.chunk.js:4833)
  48. (anonymous function) (0.chunk.js:71926)
  49. (anonymous function) (0.chunk.js:72083)
  50. (anonymous function) (0.chunk.js:71923)
  51. (anonymous function) (0.chunk.js:4832)
  52. (anonymous function) (0.chunk.js:71926)
  53. (anonymous function) (0.chunk.js:72083)
  54. (anonymous function) (0.chunk.js:71923)
  55. (anonymous function) (0.chunk.js:4831)
  56. (anonymous function) (0.chunk.js:4918:186)
  57. (anonymous function) (0.chunk.js:4830)
  58. (anonymous function) (0.chunk.js:4918:108)
  59. e (0.chunk.js:4829)
  60. (anonymous function) (0.chunk.js:12082)
  61. (anonymous function) (0.chunk.js:13763)
  62. (anonymous function) (0.chunk.js:5857)
  63. (anonymous function) (0.chunk.js:18302)
  64. (anonymous function) (0.chunk.js:72807)
  65. (anonymous function) (0.chunk.js:72771:202)
  66. (anonymous function) (0.chunk.js:21377)
  67. (anonymous function) (0.chunk.js:10305:97)
  68. (anonymous function) (0.chunk.js:10320:188)
  69. (anonymous function) (0.chunk.js:10404)
  70. (anonymous function) (main.chunk.js:18744)
  71. (anonymous function) (0.chunk.js:7800)
  72. (anonymous function) (0.chunk.js:7805:147)
  73. (anonymous function)
  74. [Error] WebGL: ERROR: 0:151: 'detailMatrix' : undeclared identifier
  75. compileShader
  76. (anonymous function) (0.chunk.js:12092)
  77. (anonymous function) (0.chunk.js:12106)
  78. (anonymous function) (0.chunk.js:7845)
  79. (anonymous function) (0.chunk.js:12135:100)
  80. (anonymous function) (0.chunk.js:4966:269)
  81. (anonymous function) (0.chunk.js:4853)
  82. (anonymous function) (0.chunk.js:4833)
  83. (anonymous function) (0.chunk.js:71926)
  84. (anonymous function) (0.chunk.js:72083)
  85. (anonymous function) (0.chunk.js:71923)
  86. (anonymous function) (0.chunk.js:4832)
  87. (anonymous function) (0.chunk.js:71926)
  88. (anonymous function) (0.chunk.js:72083)
  89. (anonymous function) (0.chunk.js:71923)
  90. (anonymous function) (0.chunk.js:4831)
  91. (anonymous function) (0.chunk.js:4918:186)
  92. (anonymous function) (0.chunk.js:4830)
  93. (anonymous function) (0.chunk.js:4918:108)
  94. e (0.chunk.js:4829)
  95. (anonymous function) (0.chunk.js:12082)
  96. (anonymous function) (0.chunk.js:13763)
  97. (anonymous function) (0.chunk.js:5857)
  98. (anonymous function) (0.chunk.js:18302)
  99. (anonymous function) (0.chunk.js:72807)
  100. (anonymous function) (0.chunk.js:72771:202)
  101. (anonymous function) (0.chunk.js:21377)
  102. (anonymous function) (0.chunk.js:10305:97)
  103. (anonymous function) (0.chunk.js:10320:188)
  104. (anonymous function) (0.chunk.js:10404)
  105. (anonymous function) (main.chunk.js:18744)
  106. (anonymous function) (0.chunk.js:7800)
  107. (anonymous function) (0.chunk.js:7805:147)
  108. (anonymous function)
  109. [Error] WebGL: ERROR: 0:155: 'detailMatrix' : undeclared identifier
  110. compileShader
  111. (anonymous function) (0.chunk.js:12092)
  112. (anonymous function) (0.chunk.js:12106)
  113. (anonymous function) (0.chunk.js:7845)
  114. (anonymous function) (0.chunk.js:12135:100)
  115. (anonymous function) (0.chunk.js:4966:269)
  116. (anonymous function) (0.chunk.js:4853)
  117. (anonymous function) (0.chunk.js:4833)
  118. (anonymous function) (0.chunk.js:71926)
  119. (anonymous function) (0.chunk.js:72083)
  120. (anonymous function) (0.chunk.js:71923)
  121. (anonymous function) (0.chunk.js:4832)
  122. (anonymous function) (0.chunk.js:71926)
  123. (anonymous function) (0.chunk.js:72083)
  124. (anonymous function) (0.chunk.js:71923)
  125. (anonymous function) (0.chunk.js:4831)
  126. (anonymous function) (0.chunk.js:4918:186)
  127. (anonymous function) (0.chunk.js:4830)
  128. (anonymous function) (0.chunk.js:4918:108)
  129. e (0.chunk.js:4829)
  130. (anonymous function) (0.chunk.js:12082)
  131. (anonymous function) (0.chunk.js:13763)
  132. (anonymous function) (0.chunk.js:5857)
  133. (anonymous function) (0.chunk.js:18302)
  134. (anonymous function) (0.chunk.js:72807)
  135. (anonymous function) (0.chunk.js:72771:202)
  136. (anonymous function) (0.chunk.js:21377)
  137. (anonymous function) (0.chunk.js:10305:97)
  138. (anonymous function) (0.chunk.js:10320:188)
  139. (anonymous function) (0.chunk.js:10404)
  140. (anonymous function) (main.chunk.js:18744)
  141. (anonymous function) (0.chunk.js:7800)
  142. (anonymous function) (0.chunk.js:7805:147)
  143. (anonymous function)
  144. [Error] WebGL: WARNING: 0:36: '
  145. compileShader
  146. (anonymous function) (0.chunk.js:12092)
  147. (anonymous function) (0.chunk.js:12107)
  148. (anonymous function) (0.chunk.js:7845)
  149. (anonymous function) (0.chunk.js:12135:100)
  150. (anonymous function) (0.chunk.js:4966:269)
  151. (anonymous function) (0.chunk.js:4853)
  152. (anonymous function) (0.chunk.js:4833)
  153. (anonymous function) (0.chunk.js:71926)
  154. (anonymous function) (0.chunk.js:72083)
  155. (anonymous function) (0.chunk.js:71923)
  156. (anonymous function) (0.chunk.js:4832)
  157. (anonymous function) (0.chunk.js:71926)
  158. (anonymous function) (0.chunk.js:72083)
  159. (anonymous function) (0.chunk.js:71923)
  160. (anonymous function) (0.chunk.js:4831)
  161. (anonymous function) (0.chunk.js:4918:186)
  162. (anonymous function) (0.chunk.js:4830)
  163. (anonymous function) (0.chunk.js:4918:108)
  164. e (0.chunk.js:4829)
  165. (anonymous function) (0.chunk.js:12082)
  166. (anonymous function) (0.chunk.js:13763)
  167. (anonymous function) (0.chunk.js:5857)
  168. (anonymous function) (0.chunk.js:18302)
  169. (anonymous function) (0.chunk.js:72807)
  170. (anonymous function) (0.chunk.js:72771:202)
  171. (anonymous function) (0.chunk.js:21377)
  172. (anonymous function) (0.chunk.js:10305:97)
  173. (anonymous function) (0.chunk.js:10320:188)
  174. (anonymous function) (0.chunk.js:10404)
  175. (anonymous function) (main.chunk.js:18744)
  176. (anonymous function) (0.chunk.js:7800)
  177. (anonymous function) (0.chunk.js:7805:147)
  178. (anonymous function)
  179. [Error] WebGL: ' : extension directive should occur before any non-preprocessor tokens
  180. compileShader
  181. (anonymous function) (0.chunk.js:12092)
  182. (anonymous function) (0.chunk.js:12107)
  183. (anonymous function) (0.chunk.js:7845)
  184. (anonymous function) (0.chunk.js:12135:100)
  185. (anonymous function) (0.chunk.js:4966:269)
  186. (anonymous function) (0.chunk.js:4853)
  187. (anonymous function) (0.chunk.js:4833)
  188. (anonymous function) (0.chunk.js:71926)
  189. (anonymous function) (0.chunk.js:72083)
  190. (anonymous function) (0.chunk.js:71923)
  191. (anonymous function) (0.chunk.js:4832)
  192. (anonymous function) (0.chunk.js:71926)
  193. (anonymous function) (0.chunk.js:72083)
  194. (anonymous function) (0.chunk.js:71923)
  195. (anonymous function) (0.chunk.js:4831)
  196. (anonymous function) (0.chunk.js:4918:186)
  197. (anonymous function) (0.chunk.js:4830)
  198. (anonymous function) (0.chunk.js:4918:108)
  199. e (0.chunk.js:4829)
  200. (anonymous function) (0.chunk.js:12082)
  201. (anonymous function) (0.chunk.js:13763)
  202. (anonymous function) (0.chunk.js:5857)
  203. (anonymous function) (0.chunk.js:18302)
  204. (anonymous function) (0.chunk.js:72807)
  205. (anonymous function) (0.chunk.js:72771:202)
  206. (anonymous function) (0.chunk.js:21377)
  207. (anonymous function) (0.chunk.js:10305:97)
  208. (anonymous function) (0.chunk.js:10320:188)
  209. (anonymous function) (0.chunk.js:10404)
  210. (anonymous function) (main.chunk.js:18744)
  211. (anonymous function) (0.chunk.js:7800)
  212. (anonymous function) (0.chunk.js:7805:147)
  213. (anonymous function)
  214. [Error] WebGL: ERROR: 0:234: 'vDetailInfos' : undeclared identifier
  215. compileShader
  216. (anonymous function) (0.chunk.js:12092)
  217. (anonymous function) (0.chunk.js:12107)
  218. (anonymous function) (0.chunk.js:7845)
  219. (anonymous function) (0.chunk.js:12135:100)
  220. (anonymous function) (0.chunk.js:4966:269)
  221. (anonymous function) (0.chunk.js:4853)
  222. (anonymous function) (0.chunk.js:4833)
  223. (anonymous function) (0.chunk.js:71926)
  224. (anonymous function) (0.chunk.js:72083)
  225. (anonymous function) (0.chunk.js:71923)
  226. (anonymous function) (0.chunk.js:4832)
  227. (anonymous function) (0.chunk.js:71926)
  228. (anonymous function) (0.chunk.js:72083)
  229. (anonymous function) (0.chunk.js:71923)
  230. (anonymous function) (0.chunk.js:4831)
  231. (anonymous function) (0.chunk.js:4918:186)
  232. (anonymous function) (0.chunk.js:4830)
  233. (anonymous function) (0.chunk.js:4918:108)
  234. e (0.chunk.js:4829)
  235. (anonymous function) (0.chunk.js:12082)
  236. (anonymous function) (0.chunk.js:13763)
  237. (anonymous function) (0.chunk.js:5857)
  238. (anonymous function) (0.chunk.js:18302)
  239. (anonymous function) (0.chunk.js:72807)
  240. (anonymous function) (0.chunk.js:72771:202)
  241. (anonymous function) (0.chunk.js:21377)
  242. (anonymous function) (0.chunk.js:10305:97)
  243. (anonymous function) (0.chunk.js:10320:188)
  244. (anonymous function) (0.chunk.js:10404)
  245. (anonymous function) (main.chunk.js:18744)
  246. (anonymous function) (0.chunk.js:7800)
  247. (anonymous function) (0.chunk.js:7805:147)
  248. (anonymous function)
  249. [Error] WebGL: ERROR: 0:234: 'z' : field selection requires structure or vector on left hand side
  250. compileShader
  251. (anonymous function) (0.chunk.js:12092)
  252. (anonymous function) (0.chunk.js:12107)
  253. (anonymous function) (0.chunk.js:7845)
  254. (anonymous function) (0.chunk.js:12135:100)
  255. (anonymous function) (0.chunk.js:4966:269)
  256. (anonymous function) (0.chunk.js:4853)
  257. (anonymous function) (0.chunk.js:4833)
  258. (anonymous function) (0.chunk.js:71926)
  259. (anonymous function) (0.chunk.js:72083)
  260. (anonymous function) (0.chunk.js:71923)
  261. (anonymous function) (0.chunk.js:4832)
  262. (anonymous function) (0.chunk.js:71926)
  263. (anonymous function) (0.chunk.js:72083)
  264. (anonymous function) (0.chunk.js:71923)
  265. (anonymous function) (0.chunk.js:4831)
  266. (anonymous function) (0.chunk.js:4918:186)
  267. (anonymous function) (0.chunk.js:4830)
  268. (anonymous function) (0.chunk.js:4918:108)
  269. e (0.chunk.js:4829)
  270. (anonymous function) (0.chunk.js:12082)
  271. (anonymous function) (0.chunk.js:13763)
  272. (anonymous function) (0.chunk.js:5857)
  273. (anonymous function) (0.chunk.js:18302)
  274. (anonymous function) (0.chunk.js:72807)
  275. (anonymous function) (0.chunk.js:72771:202)
  276. (anonymous function) (0.chunk.js:21377)
  277. (anonymous function) (0.chunk.js:10305:97)
  278. (anonymous function) (0.chunk.js:10320:188)
  279. (anonymous function) (0.chunk.js:10404)
  280. (anonymous function) (main.chunk.js:18744)
  281. (anonymous function) (0.chunk.js:7800)
  282. (anonymous function) (0.chunk.js:7805:147)
  283. (anonymous function)
  284. [Error] WebGL: ERROR: 0:235: 'vDetailInfos' : undeclared identifier
  285. compileShader
  286. (anonymous function) (0.chunk.js:12092)
  287. (anonymous function) (0.chunk.js:12107)
  288. (anonymous function) (0.chunk.js:7845)
  289. (anonymous function) (0.chunk.js:12135:100)
  290. (anonymous function) (0.chunk.js:4966:269)
  291. (anonymous function) (0.chunk.js:4853)
  292. (anonymous function) (0.chunk.js:4833)
  293. (anonymous function) (0.chunk.js:71926)
  294. (anonymous function) (0.chunk.js:72083)
  295. (anonymous function) (0.chunk.js:71923)
  296. (anonymous function) (0.chunk.js:4832)
  297. (anonymous function) (0.chunk.js:71926)
  298. (anonymous function) (0.chunk.js:72083)
  299. (anonymous function) (0.chunk.js:71923)
  300. (anonymous function) (0.chunk.js:4831)
  301. (anonymous function) (0.chunk.js:4918:186)
  302. (anonymous function) (0.chunk.js:4830)
  303. (anonymous function) (0.chunk.js:4918:108)
  304. e (0.chunk.js:4829)
  305. (anonymous function) (0.chunk.js:12082)
  306. (anonymous function) (0.chunk.js:13763)
  307. (anonymous function) (0.chunk.js:5857)
  308. (anonymous function) (0.chunk.js:18302)
  309. (anonymous function) (0.chunk.js:72807)
  310. (anonymous function) (0.chunk.js:72771:202)
  311. (anonymous function) (0.chunk.js:21377)
  312. (anonymous function) (0.chunk.js:10305:97)
  313. (anonymous function) (0.chunk.js:10320:188)
  314. (anonymous function) (0.chunk.js:10404)
  315. (anonymous function) (main.chunk.js:18744)
  316. (anonymous function) (0.chunk.js:7800)
  317. (anonymous function) (0.chunk.js:7805:147)
  318. (anonymous function)
  319. [Error] WebGL: ERROR: 0:235: 'z' : field selection requires structure or vector on left hand side
  320. compileShader
  321. (anonymous function) (0.chunk.js:12092)
  322. (anonymous function) (0.chunk.js:12107)
  323. (anonymous function) (0.chunk.js:7845)
  324. (anonymous function) (0.chunk.js:12135:100)
  325. (anonymous function) (0.chunk.js:4966:269)
  326. (anonymous function) (0.chunk.js:4853)
  327. (anonymous function) (0.chunk.js:4833)
  328. (anonymous function) (0.chunk.js:71926)
  329. (anonymous function) (0.chunk.js:72083)
  330. (anonymous function) (0.chunk.js:71923)
  331. (anonymous function) (0.chunk.js:4832)
  332. (anonymous function) (0.chunk.js:71926)
  333. (anonymous function) (0.chunk.js:72083)
  334. (anonymous function) (0.chunk.js:71923)
  335. (anonymous function) (0.chunk.js:4831)
  336. (anonymous function) (0.chunk.js:4918:186)
  337. (anonymous function) (0.chunk.js:4830)
  338. (anonymous function) (0.chunk.js:4918:108)
  339. e (0.chunk.js:4829)
  340. (anonymous function) (0.chunk.js:12082)
  341. (anonymous function) (0.chunk.js:13763)
  342. (anonymous function) (0.chunk.js:5857)
  343. (anonymous function) (0.chunk.js:18302)
  344. (anonymous function) (0.chunk.js:72807)
  345. (anonymous function) (0.chunk.js:72771:202)
  346. (anonymous function) (0.chunk.js:21377)
  347. (anonymous function) (0.chunk.js:10305:97)
  348. (anonymous function) (0.chunk.js:10320:188)
  349. (anonymous function) (0.chunk.js:10404)
  350. (anonymous function) (main.chunk.js:18744)
  351. (anonymous function) (0.chunk.js:7800)
  352. (anonymous function) (0.chunk.js:7805:147)
  353. (anonymous function)
  354. [Error] WebGL: ERROR: 0:240: 'vDetailInfos' : undeclared identifier
  355. compileShader
  356. (anonymous function) (0.chunk.js:12092)
  357. (anonymous function) (0.chunk.js:12107)
  358. (anonymous function) (0.chunk.js:7845)
  359. (anonymous function) (0.chunk.js:12135:100)
  360. (anonymous function) (0.chunk.js:4966:269)
  361. (anonymous function) (0.chunk.js:4853)
  362. (anonymous function) (0.chunk.js:4833)
  363. (anonymous function) (0.chunk.js:71926)
  364. (anonymous function) (0.chunk.js:72083)
  365. (anonymous function) (0.chunk.js:71923)
  366. (anonymous function) (0.chunk.js:4832)
  367. (anonymous function) (0.chunk.js:71926)
  368. (anonymous function) (0.chunk.js:72083)
  369. (anonymous function) (0.chunk.js:71923)
  370. (anonymous function) (0.chunk.js:4831)
  371. (anonymous function) (0.chunk.js:4918:186)
  372. (anonymous function) (0.chunk.js:4830)
  373. (anonymous function) (0.chunk.js:4918:108)
  374. e (0.chunk.js:4829)
  375. (anonymous function) (0.chunk.js:12082)
  376. (anonymous function) (0.chunk.js:13763)
  377. (anonymous function) (0.chunk.js:5857)
  378. (anonymous function) (0.chunk.js:18302)
  379. (anonymous function) (0.chunk.js:72807)
  380. (anonymous function) (0.chunk.js:72771:202)
  381. (anonymous function) (0.chunk.js:21377)
  382. (anonymous function) (0.chunk.js:10305:97)
  383. (anonymous function) (0.chunk.js:10320:188)
  384. (anonymous function) (0.chunk.js:10404)
  385. (anonymous function) (main.chunk.js:18744)
  386. (anonymous function) (0.chunk.js:7800)
  387. (anonymous function) (0.chunk.js:7805:147)
  388. (anonymous function)
  389. [Error] WebGL: ERROR: 0:240: 'y' : field selection requires structure or vector on left hand side
  390. compileShader
  391. (anonymous function) (0.chunk.js:12092)
  392. (anonymous function) (0.chunk.js:12107)
  393. (anonymous function) (0.chunk.js:7845)
  394. (anonymous function) (0.chunk.js:12135:100)
  395. (anonymous function) (0.chunk.js:4966:269)
  396. (anonymous function) (0.chunk.js:4853)
  397. (anonymous function) (0.chunk.js:4833)
  398. (anonymous function) (0.chunk.js:71926)
  399. (anonymous function) (0.chunk.js:72083)
  400. (anonymous function) (0.chunk.js:71923)
  401. (anonymous function) (0.chunk.js:4832)
  402. (anonymous function) (0.chunk.js:71926)
  403. (anonymous function) (0.chunk.js:72083)
  404. (anonymous function) (0.chunk.js:71923)
  405. (anonymous function) (0.chunk.js:4831)
  406. (anonymous function) (0.chunk.js:4918:186)
  407. (anonymous function) (0.chunk.js:4830)
  408. (anonymous function) (0.chunk.js:4918:108)
  409. e (0.chunk.js:4829)
  410. (anonymous function) (0.chunk.js:12082)
  411. (anonymous function) (0.chunk.js:13763)
  412. (anonymous function) (0.chunk.js:5857)
  413. (anonymous function) (0.chunk.js:18302)
  414. (anonymous function) (0.chunk.js:72807)
  415. (anonymous function) (0.chunk.js:72771:202)
  416. (anonymous function) (0.chunk.js:21377)
  417. (anonymous function) (0.chunk.js:10305:97)
  418. (anonymous function) (0.chunk.js:10320:188)
  419. (anonymous function) (0.chunk.js:10404)
  420. (anonymous function) (main.chunk.js:18744)
  421. (anonymous function) (0.chunk.js:7800)
  422. (anonymous function) (0.chunk.js:7805:147)
  423. (anonymous function)
  424. [Error] BJS - [14:21:37]: Unable to compile effect:
  425. (anonymous function) (0.chunk.js:6645)
  426. (anonymous function) (0.chunk.js:5008)
  427. (anonymous function) (0.chunk.js:4985)
  428. (anonymous function) (0.chunk.js:4853)
  429. (anonymous function) (0.chunk.js:4833)
  430. (anonymous function) (0.chunk.js:71926)
  431. (anonymous function) (0.chunk.js:72083)
  432. (anonymous function) (0.chunk.js:71923)
  433. (anonymous function) (0.chunk.js:4832)
  434. (anonymous function) (0.chunk.js:71926)
  435. (anonymous function) (0.chunk.js:72083)
  436. (anonymous function) (0.chunk.js:71923)
  437. (anonymous function) (0.chunk.js:4831)
  438. (anonymous function) (0.chunk.js:4918:186)
  439. (anonymous function) (0.chunk.js:4830)
  440. (anonymous function) (0.chunk.js:4918:108)
  441. e (0.chunk.js:4829)
  442. (anonymous function) (0.chunk.js:12082)
  443. (anonymous function) (0.chunk.js:13763)
  444. (anonymous function) (0.chunk.js:5857)
  445. (anonymous function) (0.chunk.js:18302)
  446. (anonymous function) (0.chunk.js:72807)
  447. (anonymous function) (0.chunk.js:72771:202)
  448. (anonymous function) (0.chunk.js:21377)
  449. (anonymous function) (0.chunk.js:10305:97)
  450. (anonymous function) (0.chunk.js:10320:188)
  451. (anonymous function) (0.chunk.js:10404)
  452. (anonymous function) (main.chunk.js:18744)
  453. (anonymous function) (0.chunk.js:7800)
  454. (anonymous function) (0.chunk.js:7805:147)
  455. (anonymous function)
  456. [Error] BJS - [14:21:37]: Uniforms: world, view, viewProjection, vEyePosition, vLightsType, vAmbientColor, vDiffuseColor, vSpecularColor, vEmissiveColor, visibility, vFogInfos, vFogColor, pointSize, vDiffuseInfos, vAmbientInfos, vOpacityInfos, vReflectionInfos, vEmissiveInfos, vSpecularInfos, vBumpInfos, vLightmapInfos, vRefractionInfos, mBones, vClipPlane, vClipPlane2, vClipPlane3, vClipPlane4, vClipPlane5, vClipPlane6, diffuseMatrix, ambientMatrix, opacityMatrix, reflectionMatrix, emissiveMatrix, specularMatrix, bumpMatrix, normalMatrix, lightmapMatrix, refractionMatrix, diffuseLeftColor, diffuseRightColor, opacityParts, reflectionLeftColor, reflectionRightColor, emissiveLeftColor, emissiveRightColor, refractionLeftColor, refractionRightColor, vReflectionPosition, vReflectionSize, logarithmicDepthConstant, vTangentSpaceParams, alphaCutOff, boneTextureWidth, vDetailInfos, previousWorld, previousViewProjection, diffuseSampler, ambientSampler, opacitySampler, reflectionCubeSampler, reflection2DSampler, emissiveSampler, specularSampler, bumpSampler, lightmapSampler, refractionCubeSampler, refraction2DSampler, boneSampler, detailSampler
  457. (anonymous function) (0.chunk.js:6645)
  458. (anonymous function) (0.chunk.js:5008)
  459. (anonymous function) (0.chunk.js:4985)
  460. (anonymous function) (0.chunk.js:4853)
  461. (anonymous function) (0.chunk.js:4833)
  462. (anonymous function) (0.chunk.js:71926)
  463. (anonymous function) (0.chunk.js:72083)
  464. (anonymous function) (0.chunk.js:71923)
  465. (anonymous function) (0.chunk.js:4832)
  466. (anonymous function) (0.chunk.js:71926)
  467. (anonymous function) (0.chunk.js:72083)
  468. (anonymous function) (0.chunk.js:71923)
  469. (anonymous function) (0.chunk.js:4831)
  470. (anonymous function) (0.chunk.js:4918:186)
  471. (anonymous function) (0.chunk.js:4830)
  472. (anonymous function) (0.chunk.js:4918:108)
  473. e (0.chunk.js:4829)
  474. (anonymous function) (0.chunk.js:12082)
  475. (anonymous function) (0.chunk.js:13763)
  476. (anonymous function) (0.chunk.js:5857)
  477. (anonymous function) (0.chunk.js:18302)
  478. (anonymous function) (0.chunk.js:72807)
  479. (anonymous function) (0.chunk.js:72771:202)
  480. (anonymous function) (0.chunk.js:21377)
  481. (anonymous function) (0.chunk.js:10305:97)
  482. (anonymous function) (0.chunk.js:10320:188)
  483. (anonymous function) (0.chunk.js:10404)
  484. (anonymous function) (main.chunk.js:18744)
  485. (anonymous function) (0.chunk.js:7800)
  486. (anonymous function) (0.chunk.js:7805:147)
  487. (anonymous function)
  488. [Error] BJS - [14:21:37]: Attributes: position, uv, color
  489. (anonymous function) (0.chunk.js:6645)
  490. (anonymous function) (0.chunk.js:5010)
  491. (anonymous function) (0.chunk.js:4985)
  492. (anonymous function) (0.chunk.js:4853)
  493. (anonymous function) (0.chunk.js:4833)
  494. (anonymous function) (0.chunk.js:71926)
  495. (anonymous function) (0.chunk.js:72083)
  496. (anonymous function) (0.chunk.js:71923)
  497. (anonymous function) (0.chunk.js:4832)
  498. (anonymous function) (0.chunk.js:71926)
  499. (anonymous function) (0.chunk.js:72083)
  500. (anonymous function) (0.chunk.js:71923)
  501. (anonymous function) (0.chunk.js:4831)
  502. (anonymous function) (0.chunk.js:4918:186)
  503. (anonymous function) (0.chunk.js:4830)
  504. (anonymous function) (0.chunk.js:4918:108)
  505. e (0.chunk.js:4829)
  506. (anonymous function) (0.chunk.js:12082)
  507. (anonymous function) (0.chunk.js:13763)
  508. (anonymous function) (0.chunk.js:5857)
  509. (anonymous function) (0.chunk.js:18302)
  510. (anonymous function) (0.chunk.js:72807)
  511. (anonymous function) (0.chunk.js:72771:202)
  512. (anonymous function) (0.chunk.js:21377)
  513. (anonymous function) (0.chunk.js:10305:97)
  514. (anonymous function) (0.chunk.js:10320:188)
  515. (anonymous function) (0.chunk.js:10404)
  516. (anonymous function) (main.chunk.js:18744)
  517. (anonymous function) (0.chunk.js:7800)
  518. (anonymous function) (0.chunk.js:7805:147)
  519. (anonymous function)
  520. [Error] BJS - [14:21:37]: Defines:
  521. #define MAINUV1
  522. #define DIFFUSE
  523. #define DIFFUSEDIRECTUV 1
  524. #define DETAIL
  525. #define DETAILDIRECTUV 0
  526. #define DETAIL_NORMALBLENDMETHOD 0
  527. #define AMBIENTDIRECTUV 0
  528. #define OPACITYDIRECTUV 0
  529. #define EMISSIVEDIRECTUV 0
  530. #define SPECULARDIRECTUV 0
  531. #define BUMPDIRECTUV 0
  532. #define UV1
  533. #define VERTEXCOLOR
  534. #define NUM_BONE_INFLUENCERS 0
  535. #define BonesPerMesh 0
  536. #define LIGHTMAPDIRECTUV 0
  537. #define NUM_MORPH_INFLUENCERS 0
  538. #define ALPHABLEND
  539. #define PREPASS_IRRADIANCE_INDEX -1
  540. #define PREPASS_ALBEDO_INDEX -1
  541. #define PREPASS_DEPTHNORMAL_INDEX -1
  542. #define PREPASS_POSITION_INDEX -1
  543. #define PREPASS_VELOCITY_INDEX -1
  544. #define PREPASS_REFLECTIVITY_INDEX -1
  545. #define SCENE_MRT_COUNT 0
  546. #define VIGNETTEBLENDMODEMULTIPLY
  547. #define SAMPLER3DGREENDEPTH
  548. #define SAMPLER3DBGRMAP
  549.  
  550. (anonymous function) (0.chunk.js:6645)
  551. (anonymous function) (0.chunk.js:5012)
  552. (anonymous function) (0.chunk.js:4985)
  553. (anonymous function) (0.chunk.js:4853)
  554. (anonymous function) (0.chunk.js:4833)
  555. (anonymous function) (0.chunk.js:71926)
  556. (anonymous function) (0.chunk.js:72083)
  557. (anonymous function) (0.chunk.js:71923)
  558. (anonymous function) (0.chunk.js:4832)
  559. (anonymous function) (0.chunk.js:71926)
  560. (anonymous function) (0.chunk.js:72083)
  561. (anonymous function) (0.chunk.js:71923)
  562. (anonymous function) (0.chunk.js:4831)
  563. (anonymous function) (0.chunk.js:4918:186)
  564. (anonymous function) (0.chunk.js:4830)
  565. (anonymous function) (0.chunk.js:4918:108)
  566. e (0.chunk.js:4829)
  567. (anonymous function) (0.chunk.js:12082)
  568. (anonymous function) (0.chunk.js:13763)
  569. (anonymous function) (0.chunk.js:5857)
  570. (anonymous function) (0.chunk.js:18302)
  571. (anonymous function) (0.chunk.js:72807)
  572. (anonymous function) (0.chunk.js:72771:202)
  573. (anonymous function) (0.chunk.js:21377)
  574. (anonymous function) (0.chunk.js:10305:97)
  575. (anonymous function) (0.chunk.js:10320:188)
  576. (anonymous function) (0.chunk.js:10404)
  577. (anonymous function) (main.chunk.js:18744)
  578. (anonymous function) (0.chunk.js:7800)
  579. (anonymous function) (0.chunk.js:7805:147)
  580. (anonymous function)
  581. [Error] BJS - [14:21:37]: Vertex code:
  582. (anonymous function) (0.chunk.js:6645)
  583. (anonymous function) (0.chunk.js:5016:252)
  584. (anonymous function) (0.chunk.js:4985)
  585. (anonymous function) (0.chunk.js:4853)
  586. (anonymous function) (0.chunk.js:4833)
  587. (anonymous function) (0.chunk.js:71926)
  588. (anonymous function) (0.chunk.js:72083)
  589. (anonymous function) (0.chunk.js:71923)
  590. (anonymous function) (0.chunk.js:4832)
  591. (anonymous function) (0.chunk.js:71926)
  592. (anonymous function) (0.chunk.js:72083)
  593. (anonymous function) (0.chunk.js:71923)
  594. (anonymous function) (0.chunk.js:4831)
  595. (anonymous function) (0.chunk.js:4918:186)
  596. (anonymous function) (0.chunk.js:4830)
  597. (anonymous function) (0.chunk.js:4918:108)
  598. e (0.chunk.js:4829)
  599. (anonymous function) (0.chunk.js:12082)
  600. (anonymous function) (0.chunk.js:13763)
  601. (anonymous function) (0.chunk.js:5857)
  602. (anonymous function) (0.chunk.js:18302)
  603. (anonymous function) (0.chunk.js:72807)
  604. (anonymous function) (0.chunk.js:72771:202)
  605. (anonymous function) (0.chunk.js:21377)
  606. (anonymous function) (0.chunk.js:10305:97)
  607. (anonymous function) (0.chunk.js:10320:188)
  608. (anonymous function) (0.chunk.js:10404)
  609. (anonymous function) (main.chunk.js:18744)
  610. (anonymous function) (0.chunk.js:7800)
  611. (anonymous function) (0.chunk.js:7805:147)
  612. (anonymous function)
  613. [Error] BJS - [14:21:37]: #define MAINUV1
  614. #define DIFFUSE
  615. #define DIFFUSEDIRECTUV 1
  616. #define DETAIL
  617. #define DETAILDIRECTUV 0
  618. #define DETAIL_NORMALBLENDMETHOD 0
  619. #define AMBIENTDIRECTUV 0
  620. #define OPACITYDIRECTUV 0
  621. #define EMISSIVEDIRECTUV 0
  622. #define SPECULARDIRECTUV 0
  623. #define BUMPDIRECTUV 0
  624. #define UV1
  625. #define VERTEXCOLOR
  626. #define NUM_BONE_INFLUENCERS 0
  627. #define BonesPerMesh 0
  628. #define LIGHTMAPDIRECTUV 0
  629. #define NUM_MORPH_INFLUENCERS 0
  630. #define ALPHABLEND
  631. #define PREPASS_IRRADIANCE_INDEX -1
  632. #define PREPASS_ALBEDO_INDEX -1
  633. #define PREPASS_DEPTHNORMAL_INDEX -1
  634. #define PREPASS_POSITION_INDEX -1
  635. #define PREPASS_VELOCITY_INDEX -1
  636. #define PREPASS_REFLECTIVITY_INDEX -1
  637. #define SCENE_MRT_COUNT 0
  638. #define VIGNETTEBLENDMODEMULTIPLY
  639. #define SAMPLER3DGREENDEPTH
  640. #define SAMPLER3DBGRMAP
  641.  
  642. #define SHADER_NAME vertex:default
  643. precision highp float;
  644. uniform mat4 viewProjection;
  645. uniform mat4 view;
  646. uniform mat4 diffuseMatrix;
  647. uniform vec2 vDiffuseInfos;
  648. #define CUSTOM_VERTEX_BEGIN
  649. attribute vec3 position;
  650. attribute vec2 uv;
  651. attribute vec4 color;
  652. const float PI=3.1415926535897932384626433832795;
  653. const float HALF_MIN=5.96046448e-08;
  654. const float LinearEncodePowerApprox=2.2;
  655. const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;
  656. const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);
  657. const float Epsilon=0.0000001;
  658. #define saturate(x) clamp(x,0.0,1.0)
  659. #define absEps(x) abs(x)+Epsilon
  660. #define maxEps(x) max(x,Epsilon)
  661. #define saturateEps(x) clamp(x,Epsilon,1.0)
  662. mat3 transposeMat3(mat3 inMatrix) {
  663. vec3 i0=inMatrix[0];
  664. vec3 i1=inMatrix[1];
  665. vec3 i2=inMatrix[2];
  666. mat3 outMatrix=mat3(
  667. vec3(i0.x,i1.x,i2.x),
  668. vec3(i0.y,i1.y,i2.y),
  669. vec3(i0.z,i1.z,i2.z)
  670. );
  671. return outMatrix;
  672. }
  673. mat3 inverseMat3(mat3 inMatrix) {
  674. float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];
  675. float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];
  676. float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];
  677. float b01=a22*a11-a12*a21;
  678. float b11=-a22*a10+a12*a20;
  679. float b21=a21*a10-a11*a20;
  680. float det=a00*b01+a01*b11+a02*b21;
  681. return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
  682. b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
  683. b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;
  684. }
  685. float toLinearSpace(float color)
  686. {
  687. return pow(color,LinearEncodePowerApprox);
  688. }
  689. vec3 toLinearSpace(vec3 color)
  690. {
  691. return pow(color,vec3(LinearEncodePowerApprox));
  692. }
  693. vec4 toLinearSpace(vec4 color)
  694. {
  695. return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
  696. }
  697. vec3 toGammaSpace(vec3 color)
  698. {
  699. return pow(color,vec3(GammaEncodePowerApprox));
  700. }
  701. vec4 toGammaSpace(vec4 color)
  702. {
  703. return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
  704. }
  705. float toGammaSpace(float color)
  706. {
  707. return pow(color,GammaEncodePowerApprox);
  708. }
  709. float square(float value)
  710. {
  711. return value*value;
  712. }
  713. float pow5(float value) {
  714. float sq=value*value;
  715. return sq*sq*value;
  716. }
  717. float getLuminance(vec3 color)
  718. {
  719. return clamp(dot(color,LuminanceEncodeApprox),0.,1.);
  720. }
  721. float getRand(vec2 seed) {
  722. return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);
  723. }
  724. float dither(vec2 seed,float varianceAmount) {
  725. float rand=getRand(seed);
  726. float dither=mix(-varianceAmount/255.0,varianceAmount/255.0,rand);
  727. return dither;
  728. }
  729. const float rgbdMaxRange=255.0;
  730. vec4 toRGBD(vec3 color) {
  731. float maxRGB=maxEps(max(color.r,max(color.g,color.b)));
  732. float D=max(rgbdMaxRange/maxRGB,1.);
  733. D=clamp(floor(D)/255.0,0.,1.);
  734. vec3 rgb=color.rgb*D;
  735. rgb=toGammaSpace(rgb);
  736. return vec4(rgb,D);
  737. }
  738. vec3 fromRGBD(vec4 rgbd) {
  739. rgbd.rgb=toLinearSpace(rgbd.rgb);
  740. return rgbd.rgb/rgbd.a;
  741. }
  742. uniform mat4 world;
  743. varying vec2 vMainUV1;
  744. varying vec2 vDetailUV;
  745. varying vec3 vPositionW;
  746. varying vec4 vColor;
  747. #define CUSTOM_VERTEX_DEFINITIONS
  748. void main(void) {
  749. #define CUSTOM_VERTEX_MAIN_BEGIN
  750. vec3 positionUpdated=position;
  751. vec2 uvUpdated=uv;
  752. #define CUSTOM_VERTEX_UPDATE_POSITION
  753. #define CUSTOM_VERTEX_UPDATE_NORMAL
  754. mat4 finalWorld=world;
  755. vec4 worldPos=finalWorld*vec4(positionUpdated,1.0);
  756. #define CUSTOM_VERTEX_UPDATE_WORLDPOS
  757. gl_Position=viewProjection*worldPos;
  758. vPositionW=vec3(worldPos);
  759. vec2 uv2=vec2(0.,0.);
  760. vMainUV1=uvUpdated;
  761. if (vDetailInfos.x == 0.)
  762. {
  763. vDetailUV=vec2(detailMatrix*vec4(uvUpdated,1.0,0.0));
  764. }
  765. else
  766. {
  767. vDetailUV=vec2(detailMatrix*vec4(uv2,1.0,0.0));
  768. }
  769. vColor=color;
  770. #define CUSTOM_VERTEX_MAIN_END
  771. }
  772.  
  773. (anonymous function) (0.chunk.js:6645)
  774. (anonymous function) (0.chunk.js:5016:279)
  775. (anonymous function) (0.chunk.js:4985)
  776. (anonymous function) (0.chunk.js:4853)
  777. (anonymous function) (0.chunk.js:4833)
  778. (anonymous function) (0.chunk.js:71926)
  779. (anonymous function) (0.chunk.js:72083)
  780. (anonymous function) (0.chunk.js:71923)
  781. (anonymous function) (0.chunk.js:4832)
  782. (anonymous function) (0.chunk.js:71926)
  783. (anonymous function) (0.chunk.js:72083)
  784. (anonymous function) (0.chunk.js:71923)
  785. (anonymous function) (0.chunk.js:4831)
  786. (anonymous function) (0.chunk.js:4918:186)
  787. (anonymous function) (0.chunk.js:4830)
  788. (anonymous function) (0.chunk.js:4918:108)
  789. e (0.chunk.js:4829)
  790. (anonymous function) (0.chunk.js:12082)
  791. (anonymous function) (0.chunk.js:13763)
  792. (anonymous function) (0.chunk.js:5857)
  793. (anonymous function) (0.chunk.js:18302)
  794. (anonymous function) (0.chunk.js:72807)
  795. (anonymous function) (0.chunk.js:72771:202)
  796. (anonymous function) (0.chunk.js:21377)
  797. (anonymous function) (0.chunk.js:10305:97)
  798. (anonymous function) (0.chunk.js:10320:188)
  799. (anonymous function) (0.chunk.js:10404)
  800. (anonymous function) (main.chunk.js:18744)
  801. (anonymous function) (0.chunk.js:7800)
  802. (anonymous function) (0.chunk.js:7805:147)
  803. (anonymous function)
  804. [Error] BJS - [14:21:37]: Fragment code:
  805. (anonymous function) (0.chunk.js:6645)
  806. (anonymous function) (0.chunk.js:5016:574)
  807. (anonymous function) (0.chunk.js:4985)
  808. (anonymous function) (0.chunk.js:4853)
  809. (anonymous function) (0.chunk.js:4833)
  810. (anonymous function) (0.chunk.js:71926)
  811. (anonymous function) (0.chunk.js:72083)
  812. (anonymous function) (0.chunk.js:71923)
  813. (anonymous function) (0.chunk.js:4832)
  814. (anonymous function) (0.chunk.js:71926)
  815. (anonymous function) (0.chunk.js:72083)
  816. (anonymous function) (0.chunk.js:71923)
  817. (anonymous function) (0.chunk.js:4831)
  818. (anonymous function) (0.chunk.js:4918:186)
  819. (anonymous function) (0.chunk.js:4830)
  820. (anonymous function) (0.chunk.js:4918:108)
  821. e (0.chunk.js:4829)
  822. (anonymous function) (0.chunk.js:12082)
  823. (anonymous function) (0.chunk.js:13763)
  824. (anonymous function) (0.chunk.js:5857)
  825. (anonymous function) (0.chunk.js:18302)
  826. (anonymous function) (0.chunk.js:72807)
  827. (anonymous function) (0.chunk.js:72771:202)
  828. (anonymous function) (0.chunk.js:21377)
  829. (anonymous function) (0.chunk.js:10305:97)
  830. (anonymous function) (0.chunk.js:10320:188)
  831. (anonymous function) (0.chunk.js:10404)
  832. (anonymous function) (main.chunk.js:18744)
  833. (anonymous function) (0.chunk.js:7800)
  834. (anonymous function) (0.chunk.js:7805:147)
  835. (anonymous function)
  836. [Error] BJS - [14:21:37]: #define MAINUV1
  837. #define DIFFUSE
  838. #define DIFFUSEDIRECTUV 1
  839. #define DETAIL
  840. #define DETAILDIRECTUV 0
  841. #define DETAIL_NORMALBLENDMETHOD 0
  842. #define AMBIENTDIRECTUV 0
  843. #define OPACITYDIRECTUV 0
  844. #define EMISSIVEDIRECTUV 0
  845. #define SPECULARDIRECTUV 0
  846. #define BUMPDIRECTUV 0
  847. #define UV1
  848. #define VERTEXCOLOR
  849. #define NUM_BONE_INFLUENCERS 0
  850. #define BonesPerMesh 0
  851. #define LIGHTMAPDIRECTUV 0
  852. #define NUM_MORPH_INFLUENCERS 0
  853. #define ALPHABLEND
  854. #define PREPASS_IRRADIANCE_INDEX -1
  855. #define PREPASS_ALBEDO_INDEX -1
  856. #define PREPASS_DEPTHNORMAL_INDEX -1
  857. #define PREPASS_POSITION_INDEX -1
  858. #define PREPASS_VELOCITY_INDEX -1
  859. #define PREPASS_REFLECTIVITY_INDEX -1
  860. #define SCENE_MRT_COUNT 0
  861. #define VIGNETTEBLENDMODEMULTIPLY
  862. #define SAMPLER3DGREENDEPTH
  863. #define SAMPLER3DBGRMAP
  864.  
  865. #define SHADER_NAME fragment:default
  866. precision highp float;
  867. uniform vec4 vDiffuseColor;
  868. uniform vec3 vEmissiveColor;
  869. uniform float visibility;
  870. uniform vec2 vDiffuseInfos;
  871. #extension GL_OES_standard_derivatives : enable
  872. #define CUSTOM_FRAGMENT_BEGIN
  873. #define RECIPROCAL_PI2 0.15915494
  874. uniform vec3 vEyePosition;
  875. uniform vec3 vAmbientColor;
  876. varying vec3 vPositionW;
  877. varying vec4 vColor;
  878. varying vec2 vMainUV1;
  879. const float PI=3.1415926535897932384626433832795;
  880. const float HALF_MIN=5.96046448e-08;
  881. const float LinearEncodePowerApprox=2.2;
  882. const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;
  883. const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);
  884. const float Epsilon=0.0000001;
  885. #define saturate(x) clamp(x,0.0,1.0)
  886. #define absEps(x) abs(x)+Epsilon
  887. #define maxEps(x) max(x,Epsilon)
  888. #define saturateEps(x) clamp(x,Epsilon,1.0)
  889. mat3 transposeMat3(mat3 inMatrix) {
  890. vec3 i0=inMatrix[0];
  891. vec3 i1=inMatrix[1];
  892. vec3 i2=inMatrix[2];
  893. mat3 outMatrix=mat3(
  894. vec3(i0.x,i1.x,i2.x),
  895. vec3(i0.y,i1.y,i2.y),
  896. vec3(i0.z,i1.z,i2.z)
  897. );
  898. return outMatrix;
  899. }
  900. mat3 inverseMat3(mat3 inMatrix) {
  901. float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];
  902. float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];
  903. float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];
  904. float b01=a22*a11-a12*a21;
  905. float b11=-a22*a10+a12*a20;
  906. float b21=a21*a10-a11*a20;
  907. float det=a00*b01+a01*b11+a02*b21;
  908. return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
  909. b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
  910. b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;
  911. }
  912. float toLinearSpace(float color)
  913. {
  914. return pow(color,LinearEncodePowerApprox);
  915. }
  916. vec3 toLinearSpace(vec3 color)
  917. {
  918. return pow(color,vec3(LinearEncodePowerApprox));
  919. }
  920. vec4 toLinearSpace(vec4 color)
  921. {
  922. return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
  923. }
  924. vec3 toGammaSpace(vec3 color)
  925. {
  926. return pow(color,vec3(GammaEncodePowerApprox));
  927. }
  928. vec4 toGammaSpace(vec4 color)
  929. {
  930. return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
  931. }
  932. float toGammaSpace(float color)
  933. {
  934. return pow(color,GammaEncodePowerApprox);
  935. }
  936. float square(float value)
  937. {
  938. return value*value;
  939. }
  940. float pow5(float value) {
  941. float sq=value*value;
  942. return sq*sq*value;
  943. }
  944. float getLuminance(vec3 color)
  945. {
  946. return clamp(dot(color,LuminanceEncodeApprox),0.,1.);
  947. }
  948. float getRand(vec2 seed) {
  949. return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);
  950. }
  951. float dither(vec2 seed,float varianceAmount) {
  952. float rand=getRand(seed);
  953. float dither=mix(-varianceAmount/255.0,varianceAmount/255.0,rand);
  954. return dither;
  955. }
  956. const float rgbdMaxRange=255.0;
  957. vec4 toRGBD(vec3 color) {
  958. float maxRGB=maxEps(max(color.r,max(color.g,color.b)));
  959. float D=max(rgbdMaxRange/maxRGB,1.);
  960. D=clamp(floor(D)/255.0,0.,1.);
  961. vec3 rgb=color.rgb*D;
  962. rgb=toGammaSpace(rgb);
  963. return vec4(rgb,D);
  964. }
  965. vec3 fromRGBD(vec4 rgbd) {
  966. rgbd.rgb=toLinearSpace(rgbd.rgb);
  967. return rgbd.rgb/rgbd.a;
  968. }
  969. struct lightingInfo
  970. {
  971. vec3 diffuse;
  972. };
  973. lightingInfo computeLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec3 diffuseColor,vec3 specularColor,float range,float glossiness) {
  974. lightingInfo result;
  975. vec3 lightVectorW;
  976. float attenuation=1.0;
  977. if (lightData.w == 0.)
  978. {
  979. vec3 direction=lightData.xyz-vPositionW;
  980. attenuation=max(0.,1.0-length(direction)/range);
  981. lightVectorW=normalize(direction);
  982. }
  983. else
  984. {
  985. lightVectorW=normalize(-lightData.xyz);
  986. }
  987. float ndl=max(0.,dot(vNormal,lightVectorW));
  988. result.diffuse=ndl*diffuseColor*attenuation;
  989. return result;
  990. }
  991. lightingInfo computeSpotLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec4 lightDirection,vec3 diffuseColor,vec3 specularColor,float range,float glossiness) {
  992. lightingInfo result;
  993. vec3 direction=lightData.xyz-vPositionW;
  994. vec3 lightVectorW=normalize(direction);
  995. float attenuation=max(0.,1.0-length(direction)/range);
  996. float cosAngle=max(0.,dot(lightDirection.xyz,-lightVectorW));
  997. if (cosAngle>=lightDirection.w)
  998. {
  999. cosAngle=max(0.,pow(cosAngle,lightData.w));
  1000. attenuation*=cosAngle;
  1001. float ndl=max(0.,dot(vNormal,lightVectorW));
  1002. result.diffuse=ndl*diffuseColor*attenuation;
  1003. return result;
  1004. }
  1005. result.diffuse=vec3(0.);
  1006. return result;
  1007. }
  1008. lightingInfo computeHemisphericLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec3 diffuseColor,vec3 specularColor,vec3 groundColor,float glossiness) {
  1009. lightingInfo result;
  1010. float ndl=dot(vNormal,lightData.xyz)*0.5+0.5;
  1011. result.diffuse=mix(groundColor,diffuseColor,ndl);
  1012. return result;
  1013. }
  1014. #define inline
  1015. vec3 computeProjectionTextureDiffuseLighting(sampler2D projectionLightSampler,mat4 textureProjectionMatrix){
  1016. vec4 strq=textureProjectionMatrix*vec4(vPositionW,1.0);
  1017. strq/=strq.w;
  1018. vec3 textureColor=texture2D(projectionLightSampler,strq.xy).rgb;
  1019. return textureColor;
  1020. }
  1021. #define vDiffuseUV vMainUV1
  1022. uniform sampler2D diffuseSampler;
  1023. vec4 applyImageProcessing(vec4 result) {
  1024. result.rgb=toGammaSpace(result.rgb);
  1025. result.rgb=saturate(result.rgb);
  1026. return result;
  1027. }
  1028. vec3 perturbNormalBase(mat3 cotangentFrame,vec3 normal,float scale)
  1029. {
  1030. return normalize(cotangentFrame*normal);
  1031. }
  1032. vec3 perturbNormal(mat3 cotangentFrame,vec3 textureSample,float scale)
  1033. {
  1034. return perturbNormalBase(cotangentFrame,textureSample*2.0-1.0,scale);
  1035. }
  1036. mat3 cotangent_frame(vec3 normal,vec3 p,vec2 uv,vec2 tangentSpaceParams)
  1037. {
  1038. uv=gl_FrontFacing ? uv : -uv;
  1039. vec3 dp1=dFdx(p);
  1040. vec3 dp2=dFdy(p);
  1041. vec2 duv1=dFdx(uv);
  1042. vec2 duv2=dFdy(uv);
  1043. vec3 dp2perp=cross(dp2,normal);
  1044. vec3 dp1perp=cross(normal,dp1);
  1045. vec3 tangent=dp2perp*duv1.x+dp1perp*duv2.x;
  1046. vec3 bitangent=dp2perp*duv1.y+dp1perp*duv2.y;
  1047. tangent*=tangentSpaceParams.x;
  1048. bitangent*=tangentSpaceParams.y;
  1049. float invmax=inversesqrt(max(dot(tangent,tangent),dot(bitangent,bitangent)));
  1050. return mat3(tangent*invmax,bitangent*invmax,normal);
  1051. }
  1052. varying vec2 vDetailUV;
  1053. uniform sampler2D detailSampler;
  1054. #define CUSTOM_FRAGMENT_DEFINITIONS
  1055. void main(void) {
  1056. #define CUSTOM_FRAGMENT_MAIN_BEGIN
  1057. vec3 viewDirectionW=normalize(vEyePosition-vPositionW);
  1058. vec4 baseColor=vec4(1.,1.,1.,1.);
  1059. vec3 diffuseColor=vDiffuseColor.rgb;
  1060. float alpha=vDiffuseColor.a;
  1061. vec3 normalW=normalize(-cross(dFdx(vPositionW),dFdy(vPositionW)));
  1062. vec2 uvOffset=vec2(0.0,0.0);
  1063. float normalScale=1.0;
  1064. mat3 TBN=cotangent_frame(normalW*normalScale,vPositionW,vDetailUV,vec2(1.,1.));
  1065. vec4 detailColor=texture2D(detailSampler,vDetailUV+uvOffset);
  1066. vec2 detailNormalRG=detailColor.wy*2.0-1.0;
  1067. float detailNormalB=sqrt(1.-saturate(dot(detailNormalRG,detailNormalRG)));
  1068. vec3 detailNormal=vec3(detailNormalRG,detailNormalB);
  1069. detailNormal.xy*=vDetailInfos.z;
  1070. normalW=perturbNormalBase(TBN,detailNormal,vDetailInfos.z);
  1071. baseColor=texture2D(diffuseSampler,vDiffuseUV+uvOffset);
  1072. #define CUSTOM_FRAGMENT_UPDATE_ALPHA
  1073. baseColor.rgb*=vDiffuseInfos.y;
  1074. baseColor.rgb*=vColor.rgb;
  1075. baseColor.rgb=baseColor.rgb*2.0*mix(0.5,detailColor.r,vDetailInfos.y);
  1076. #define CUSTOM_FRAGMENT_UPDATE_DIFFUSE
  1077. vec3 baseAmbientColor=vec3(1.,1.,1.);
  1078. #define CUSTOM_FRAGMENT_BEFORE_LIGHTS
  1079. float glossiness=0.;
  1080. vec3 diffuseBase=vec3(0.,0.,0.);
  1081. lightingInfo info;
  1082. float shadow=1.;
  1083. vec4 refractionColor=vec4(0.,0.,0.,1.);
  1084. vec4 reflectionColor=vec4(0.,0.,0.,1.);
  1085. vec3 emissiveColor=vEmissiveColor;
  1086. vec3 finalDiffuse=clamp(diffuseBase*diffuseColor+emissiveColor+vAmbientColor,0.0,1.0)*baseColor.rgb;
  1087. vec3 finalSpecular=vec3(0.0);
  1088. vec4 color=vec4(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);
  1089. #define CUSTOM_FRAGMENT_BEFORE_FOG
  1090. color.rgb=max(color.rgb,0.);
  1091. color.a*=visibility;
  1092. #define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR
  1093. gl_FragColor=color;
  1094. }
  1095.  
  1096. (anonymous function) (0.chunk.js:6645)
  1097. (anonymous function) (0.chunk.js:5016:603)
  1098. (anonymous function) (0.chunk.js:4985)
  1099. (anonymous function) (0.chunk.js:4853)
  1100. (anonymous function) (0.chunk.js:4833)
  1101. (anonymous function) (0.chunk.js:71926)
  1102. (anonymous function) (0.chunk.js:72083)
  1103. (anonymous function) (0.chunk.js:71923)
  1104. (anonymous function) (0.chunk.js:4832)
  1105. (anonymous function) (0.chunk.js:71926)
  1106. (anonymous function) (0.chunk.js:72083)
  1107. (anonymous function) (0.chunk.js:71923)
  1108. (anonymous function) (0.chunk.js:4831)
  1109. (anonymous function) (0.chunk.js:4918:186)
  1110. (anonymous function) (0.chunk.js:4830)
  1111. (anonymous function) (0.chunk.js:4918:108)
  1112. e (0.chunk.js:4829)
  1113. (anonymous function) (0.chunk.js:12082)
  1114. (anonymous function) (0.chunk.js:13763)
  1115. (anonymous function) (0.chunk.js:5857)
  1116. (anonymous function) (0.chunk.js:18302)
  1117. (anonymous function) (0.chunk.js:72807)
  1118. (anonymous function) (0.chunk.js:72771:202)
  1119. (anonymous function) (0.chunk.js:21377)
  1120. (anonymous function) (0.chunk.js:10305:97)
  1121. (anonymous function) (0.chunk.js:10320:188)
  1122. (anonymous function) (0.chunk.js:10404)
  1123. (anonymous function) (main.chunk.js:18744)
  1124. (anonymous function) (0.chunk.js:7800)
  1125. (anonymous function) (0.chunk.js:7805:147)
  1126. (anonymous function)
  1127. [Error] BJS - [14:21:37]: Offending line [149] in vertex code: if (vDetailInfos.x == 0.)
  1128. (anonymous function) (0.chunk.js:6645)
  1129. (anonymous function) (0.chunk.js:5016:624)
  1130. (anonymous function) (0.chunk.js:4985)
  1131. (anonymous function) (0.chunk.js:4853)
  1132. (anonymous function) (0.chunk.js:4833)
  1133. (anonymous function) (0.chunk.js:71926)
  1134. (anonymous function) (0.chunk.js:72083)
  1135. (anonymous function) (0.chunk.js:71923)
  1136. (anonymous function) (0.chunk.js:4832)
  1137. (anonymous function) (0.chunk.js:71926)
  1138. (anonymous function) (0.chunk.js:72083)
  1139. (anonymous function) (0.chunk.js:71923)
  1140. (anonymous function) (0.chunk.js:4831)
  1141. (anonymous function) (0.chunk.js:4918:186)
  1142. (anonymous function) (0.chunk.js:4830)
  1143. (anonymous function) (0.chunk.js:4918:108)
  1144. e (0.chunk.js:4829)
  1145. (anonymous function) (0.chunk.js:12082)
  1146. (anonymous function) (0.chunk.js:13763)
  1147. (anonymous function) (0.chunk.js:5857)
  1148. (anonymous function) (0.chunk.js:18302)
  1149. (anonymous function) (0.chunk.js:72807)
  1150. (anonymous function) (0.chunk.js:72771:202)
  1151. (anonymous function) (0.chunk.js:21377)
  1152. (anonymous function) (0.chunk.js:10305:97)
  1153. (anonymous function) (0.chunk.js:10320:188)
  1154. (anonymous function) (0.chunk.js:10404)
  1155. (anonymous function) (main.chunk.js:18744)
  1156. (anonymous function) (0.chunk.js:7800)
  1157. (anonymous function) (0.chunk.js:7805:147)
  1158. (anonymous function)
  1159. [Error] BJS - [14:21:37]: Error: VERTEX SHADER ERROR: 0:149: 'vDetailInfos' : undeclared identifier
  1160. ERROR: 0:149: 'x' : field selection requires structure or vector on left hand side
  1161. ERROR: 0:151: 'detailMatrix' : undeclared identifier
  1162. ERROR: 0:155: 'detailMatrix' : undeclared identifier
  1163.  
  1164. (anonymous function) (0.chunk.js:6645)
  1165. (anonymous function) (0.chunk.js:5019)
  1166. (anonymous function) (0.chunk.js:4985)
  1167. (anonymous function) (0.chunk.js:4853)
  1168. (anonymous function) (0.chunk.js:4833)
  1169. (anonymous function) (0.chunk.js:71926)
  1170. (anonymous function) (0.chunk.js:72083)
  1171. (anonymous function) (0.chunk.js:71923)
  1172. (anonymous function) (0.chunk.js:4832)
  1173. (anonymous function) (0.chunk.js:71926)
  1174. (anonymous function) (0.chunk.js:72083)
  1175. (anonymous function) (0.chunk.js:71923)
  1176. (anonymous function) (0.chunk.js:4831)
  1177. (anonymous function) (0.chunk.js:4918:186)
  1178. (anonymous function) (0.chunk.js:4830)
  1179. (anonymous function) (0.chunk.js:4918:108)
  1180. e (0.chunk.js:4829)
  1181. (anonymous function) (0.chunk.js:12082)
  1182. (anonymous function) (0.chunk.js:13763)
  1183. (anonymous function) (0.chunk.js:5857)
  1184. (anonymous function) (0.chunk.js:18302)
  1185. (anonymous function) (0.chunk.js:72807)
  1186. (anonymous function) (0.chunk.js:72771:202)
  1187. (anonymous function) (0.chunk.js:21377)
  1188. (anonymous function) (0.chunk.js:10305:97)
  1189. (anonymous function) (0.chunk.js:10320:188)
  1190. (anonymous function) (0.chunk.js:10404)
  1191. (anonymous function) (main.chunk.js:18744)
  1192. (anonymous function) (0.chunk.js:7800)
  1193. (anonymous function) (0.chunk.js:7805:147)
  1194. (anonymous function)
  1195. [Error] WebGL: ERROR: 0:149: 'vDetailInfos' : undeclared identifier
  1196. compileShader
  1197. (anonymous function) (0.chunk.js:12092)
  1198. (anonymous function) (0.chunk.js:12106)
  1199. (anonymous function) (0.chunk.js:7845)
  1200. (anonymous function) (0.chunk.js:12135:100)
  1201. (anonymous function) (0.chunk.js:4966:269)
  1202. (anonymous function) (0.chunk.js:4853)
  1203. (anonymous function) (0.chunk.js:4833)
  1204. (anonymous function) (0.chunk.js:71926)
  1205. (anonymous function) (0.chunk.js:72083)
  1206. (anonymous function) (0.chunk.js:71923)
  1207. (anonymous function) (0.chunk.js:4832)
  1208. (anonymous function) (0.chunk.js:71926)
  1209. (anonymous function) (0.chunk.js:72083)
  1210. (anonymous function) (0.chunk.js:71923)
  1211. (anonymous function) (0.chunk.js:4831)
  1212. (anonymous function) (0.chunk.js:4918:186)
  1213. (anonymous function) (0.chunk.js:4830)
  1214. (anonymous function) (0.chunk.js:4918:108)
  1215. e (0.chunk.js:4829)
  1216. (anonymous function) (0.chunk.js:12082)
  1217. (anonymous function) (0.chunk.js:13763)
  1218. (anonymous function) (0.chunk.js:5857)
  1219. (anonymous function) (0.chunk.js:18302)
  1220. (anonymous function) (0.chunk.js:72807)
  1221. (anonymous function) (0.chunk.js:72771:202)
  1222. (anonymous function) (0.chunk.js:21377)
  1223. (anonymous function) (0.chunk.js:10305:97)
  1224. (anonymous function) (0.chunk.js:10320:188)
  1225. (anonymous function) (0.chunk.js:10404)
  1226. (anonymous function) (main.chunk.js:18744)
  1227. (anonymous function) (0.chunk.js:7800)
  1228. (anonymous function) (0.chunk.js:7805:147)
  1229. (anonymous function)
  1230. [Error] WebGL: ERROR: 0:149: 'x' : field selection requires structure or vector on left hand side
  1231. compileShader
  1232. (anonymous function) (0.chunk.js:12092)
  1233. (anonymous function) (0.chunk.js:12106)
  1234. (anonymous function) (0.chunk.js:7845)
  1235. (anonymous function) (0.chunk.js:12135:100)
  1236. (anonymous function) (0.chunk.js:4966:269)
  1237. (anonymous function) (0.chunk.js:4853)
  1238. (anonymous function) (0.chunk.js:4833)
  1239. (anonymous function) (0.chunk.js:71926)
  1240. (anonymous function) (0.chunk.js:72083)
  1241. (anonymous function) (0.chunk.js:71923)
  1242. (anonymous function) (0.chunk.js:4832)
  1243. (anonymous function) (0.chunk.js:71926)
  1244. (anonymous function) (0.chunk.js:72083)
  1245. (anonymous function) (0.chunk.js:71923)
  1246. (anonymous function) (0.chunk.js:4831)
  1247. (anonymous function) (0.chunk.js:4918:186)
  1248. (anonymous function) (0.chunk.js:4830)
  1249. (anonymous function) (0.chunk.js:4918:108)
  1250. e (0.chunk.js:4829)
  1251. (anonymous function) (0.chunk.js:12082)
  1252. (anonymous function) (0.chunk.js:13763)
  1253. (anonymous function) (0.chunk.js:5857)
  1254. (anonymous function) (0.chunk.js:18302)
  1255. (anonymous function) (0.chunk.js:72807)
  1256. (anonymous function) (0.chunk.js:72771:202)
  1257. (anonymous function) (0.chunk.js:21377)
  1258. (anonymous function) (0.chunk.js:10305:97)
  1259. (anonymous function) (0.chunk.js:10320:188)
  1260. (anonymous function) (0.chunk.js:10404)
  1261. (anonymous function) (main.chunk.js:18744)
  1262. (anonymous function) (0.chunk.js:7800)
  1263. (anonymous function) (0.chunk.js:7805:147)
  1264. (anonymous function)
  1265. [Error] WebGL: ERROR: 0:151: 'detailMatrix' : undeclared identifier
  1266. compileShader
  1267. (anonymous function) (0.chunk.js:12092)
  1268. (anonymous function) (0.chunk.js:12106)
  1269. (anonymous function) (0.chunk.js:7845)
  1270. (anonymous function) (0.chunk.js:12135:100)
  1271. (anonymous function) (0.chunk.js:4966:269)
  1272. (anonymous function) (0.chunk.js:4853)
  1273. (anonymous function) (0.chunk.js:4833)
  1274. (anonymous function) (0.chunk.js:71926)
  1275. (anonymous function) (0.chunk.js:72083)
  1276. (anonymous function) (0.chunk.js:71923)
  1277. (anonymous function) (0.chunk.js:4832)
  1278. (anonymous function) (0.chunk.js:71926)
  1279. (anonymous function) (0.chunk.js:72083)
  1280. (anonymous function) (0.chunk.js:71923)
  1281. (anonymous function) (0.chunk.js:4831)
  1282. (anonymous function) (0.chunk.js:4918:186)
  1283. (anonymous function) (0.chunk.js:4830)
  1284. (anonymous function) (0.chunk.js:4918:108)
  1285. e (0.chunk.js:4829)
  1286. (anonymous function) (0.chunk.js:12082)
  1287. (anonymous function) (0.chunk.js:13763)
  1288. (anonymous function) (0.chunk.js:5857)
  1289. (anonymous function) (0.chunk.js:18302)
  1290. (anonymous function) (0.chunk.js:72807)
  1291. (anonymous function) (0.chunk.js:72771:202)
  1292. (anonymous function) (0.chunk.js:21377)
  1293. (anonymous function) (0.chunk.js:10305:97)
  1294. (anonymous function) (0.chunk.js:10320:188)
  1295. (anonymous function) (0.chunk.js:10404)
  1296. (anonymous function) (main.chunk.js:18744)
  1297. (anonymous function) (0.chunk.js:7800)
  1298. (anonymous function) (0.chunk.js:7805:147)
  1299. (anonymous function)
  1300. [Error] WebGL: ERROR: 0:155: 'detailMatrix' : undeclared identifier
  1301. compileShader
  1302. (anonymous function) (0.chunk.js:12092)
  1303. (anonymous function) (0.chunk.js:12106)
  1304. (anonymous function) (0.chunk.js:7845)
  1305. (anonymous function) (0.chunk.js:12135:100)
  1306. (anonymous function) (0.chunk.js:4966:269)
  1307. (anonymous function) (0.chunk.js:4853)
  1308. (anonymous function) (0.chunk.js:4833)
  1309. (anonymous function) (0.chunk.js:71926)
  1310. (anonymous function) (0.chunk.js:72083)
  1311. (anonymous function) (0.chunk.js:71923)
  1312. (anonymous function) (0.chunk.js:4832)
  1313. (anonymous function) (0.chunk.js:71926)
  1314. (anonymous function) (0.chunk.js:72083)
  1315. (anonymous function) (0.chunk.js:71923)
  1316. (anonymous function) (0.chunk.js:4831)
  1317. (anonymous function) (0.chunk.js:4918:186)
  1318. (anonymous function) (0.chunk.js:4830)
  1319. (anonymous function) (0.chunk.js:4918:108)
  1320. e (0.chunk.js:4829)
  1321. (anonymous function) (0.chunk.js:12082)
  1322. (anonymous function) (0.chunk.js:13763)
  1323. (anonymous function) (0.chunk.js:5857)
  1324. (anonymous function) (0.chunk.js:18302)
  1325. (anonymous function) (0.chunk.js:72807)
  1326. (anonymous function) (0.chunk.js:72771:202)
  1327. (anonymous function) (0.chunk.js:21377)
  1328. (anonymous function) (0.chunk.js:10305:97)
  1329. (anonymous function) (0.chunk.js:10320:188)
  1330. (anonymous function) (0.chunk.js:10404)
  1331. (anonymous function) (main.chunk.js:18744)
  1332. (anonymous function) (0.chunk.js:7800)
  1333. (anonymous function) (0.chunk.js:7805:147)
  1334. (anonymous function)
  1335. [Error] WebGL: WARNING: 0:36: '
  1336. compileShader
  1337. (anonymous function) (0.chunk.js:12092)
  1338. (anonymous function) (0.chunk.js:12107)
  1339. (anonymous function) (0.chunk.js:7845)
  1340. (anonymous function) (0.chunk.js:12135:100)
  1341. (anonymous function) (0.chunk.js:4966:269)
  1342. (anonymous function) (0.chunk.js:4853)
  1343. (anonymous function) (0.chunk.js:4833)
  1344. (anonymous function) (0.chunk.js:71926)
  1345. (anonymous function) (0.chunk.js:72083)
  1346. (anonymous function) (0.chunk.js:71923)
  1347. (anonymous function) (0.chunk.js:4832)
  1348. (anonymous function) (0.chunk.js:71926)
  1349. (anonymous function) (0.chunk.js:72083)
  1350. (anonymous function) (0.chunk.js:71923)
  1351. (anonymous function) (0.chunk.js:4831)
  1352. (anonymous function) (0.chunk.js:4918:186)
  1353. (anonymous function) (0.chunk.js:4830)
  1354. (anonymous function) (0.chunk.js:4918:108)
  1355. e (0.chunk.js:4829)
  1356. (anonymous function) (0.chunk.js:12082)
  1357. (anonymous function) (0.chunk.js:13763)
  1358. (anonymous function) (0.chunk.js:5857)
  1359. (anonymous function) (0.chunk.js:18302)
  1360. (anonymous function) (0.chunk.js:72807)
  1361. (anonymous function) (0.chunk.js:72771:202)
  1362. (anonymous function) (0.chunk.js:21377)
  1363. (anonymous function) (0.chunk.js:10305:97)
  1364. (anonymous function) (0.chunk.js:10320:188)
  1365. (anonymous function) (0.chunk.js:10404)
  1366. (anonymous function) (main.chunk.js:18744)
  1367. (anonymous function) (0.chunk.js:7800)
  1368. (anonymous function) (0.chunk.js:7805:147)
  1369. (anonymous function)
  1370. [Error] WebGL: ' : extension directive should occur before any non-preprocessor tokens
  1371. compileShader
  1372. (anonymous function) (0.chunk.js:12092)
  1373. (anonymous function) (0.chunk.js:12107)
  1374. (anonymous function) (0.chunk.js:7845)
  1375. (anonymous function) (0.chunk.js:12135:100)
  1376. (anonymous function) (0.chunk.js:4966:269)
  1377. (anonymous function) (0.chunk.js:4853)
  1378. (anonymous function) (0.chunk.js:4833)
  1379. (anonymous function) (0.chunk.js:71926)
  1380. (anonymous function) (0.chunk.js:72083)
  1381. (anonymous function) (0.chunk.js:71923)
  1382. (anonymous function) (0.chunk.js:4832)
  1383. (anonymous function) (0.chunk.js:71926)
  1384. (anonymous function) (0.chunk.js:72083)
  1385. (anonymous function) (0.chunk.js:71923)
  1386. (anonymous function) (0.chunk.js:4831)
  1387. (anonymous function) (0.chunk.js:4918:186)
  1388. (anonymous function) (0.chunk.js:4830)
  1389. (anonymous function) (0.chunk.js:4918:108)
  1390. e (0.chunk.js:4829)
  1391. (anonymous function) (0.chunk.js:12082)
  1392. (anonymous function) (0.chunk.js:13763)
  1393. (anonymous function) (0.chunk.js:5857)
  1394. (anonymous function) (0.chunk.js:18302)
  1395. (anonymous function) (0.chunk.js:72807)
  1396. (anonymous function) (0.chunk.js:72771:202)
  1397. (anonymous function) (0.chunk.js:21377)
  1398. (anonymous function) (0.chunk.js:10305:97)
  1399. (anonymous function) (0.chunk.js:10320:188)
  1400. (anonymous function) (0.chunk.js:10404)
  1401. (anonymous function) (main.chunk.js:18744)
  1402. (anonymous function) (0.chunk.js:7800)
  1403. (anonymous function) (0.chunk.js:7805:147)
  1404. (anonymous function)
  1405. [Error] WebGL: ERROR: 0:234: 'vDetailInfos' : undeclared identifier
  1406. compileShader
  1407. (anonymous function) (0.chunk.js:12092)
  1408. (anonymous function) (0.chunk.js:12107)
  1409. (anonymous function) (0.chunk.js:7845)
  1410. (anonymous function) (0.chunk.js:12135:100)
  1411. (anonymous function) (0.chunk.js:4966:269)
  1412. (anonymous function) (0.chunk.js:4853)
  1413. (anonymous function) (0.chunk.js:4833)
  1414. (anonymous function) (0.chunk.js:71926)
  1415. (anonymous function) (0.chunk.js:72083)
  1416. (anonymous function) (0.chunk.js:71923)
  1417. (anonymous function) (0.chunk.js:4832)
  1418. (anonymous function) (0.chunk.js:71926)
  1419. (anonymous function) (0.chunk.js:72083)
  1420. (anonymous function) (0.chunk.js:71923)
  1421. (anonymous function) (0.chunk.js:4831)
  1422. (anonymous function) (0.chunk.js:4918:186)
  1423. (anonymous function) (0.chunk.js:4830)
  1424. (anonymous function) (0.chunk.js:4918:108)
  1425. e (0.chunk.js:4829)
  1426. (anonymous function) (0.chunk.js:12082)
  1427. (anonymous function) (0.chunk.js:13763)
  1428. (anonymous function) (0.chunk.js:5857)
  1429. (anonymous function) (0.chunk.js:18302)
  1430. (anonymous function) (0.chunk.js:72807)
  1431. (anonymous function) (0.chunk.js:72771:202)
  1432. (anonymous function) (0.chunk.js:21377)
  1433. (anonymous function) (0.chunk.js:10305:97)
  1434. (anonymous function) (0.chunk.js:10320:188)
  1435. (anonymous function) (0.chunk.js:10404)
  1436. (anonymous function) (main.chunk.js:18744)
  1437. (anonymous function) (0.chunk.js:7800)
  1438. (anonymous function) (0.chunk.js:7805:147)
  1439. (anonymous function)
  1440. [Error] WebGL: ERROR: 0:234: 'z' : field selection requires structure or vector on left hand side
  1441. compileShader
  1442. (anonymous function) (0.chunk.js:12092)
  1443. (anonymous function) (0.chunk.js:12107)
  1444. (anonymous function) (0.chunk.js:7845)
  1445. (anonymous function) (0.chunk.js:12135:100)
  1446. (anonymous function) (0.chunk.js:4966:269)
  1447. (anonymous function) (0.chunk.js:4853)
  1448. (anonymous function) (0.chunk.js:4833)
  1449. (anonymous function) (0.chunk.js:71926)
  1450. (anonymous function) (0.chunk.js:72083)
  1451. (anonymous function) (0.chunk.js:71923)
  1452. (anonymous function) (0.chunk.js:4832)
  1453. (anonymous function) (0.chunk.js:71926)
  1454. (anonymous function) (0.chunk.js:72083)
  1455. (anonymous function) (0.chunk.js:71923)
  1456. (anonymous function) (0.chunk.js:4831)
  1457. (anonymous function) (0.chunk.js:4918:186)
  1458. (anonymous function) (0.chunk.js:4830)
  1459. (anonymous function) (0.chunk.js:4918:108)
  1460. e (0.chunk.js:4829)
  1461. (anonymous function) (0.chunk.js:12082)
  1462. (anonymous function) (0.chunk.js:13763)
  1463. (anonymous function) (0.chunk.js:5857)
  1464. (anonymous function) (0.chunk.js:18302)
  1465. (anonymous function) (0.chunk.js:72807)
  1466. (anonymous function) (0.chunk.js:72771:202)
  1467. (anonymous function) (0.chunk.js:21377)
  1468. (anonymous function) (0.chunk.js:10305:97)
  1469. (anonymous function) (0.chunk.js:10320:188)
  1470. (anonymous function) (0.chunk.js:10404)
  1471. (anonymous function) (main.chunk.js:18744)
  1472. (anonymous function) (0.chunk.js:7800)
  1473. (anonymous function) (0.chunk.js:7805:147)
  1474. (anonymous function)
  1475. [Error] WebGL: ERROR: 0:235: 'vDetailInfos' : undeclared identifier
  1476. compileShader
  1477. (anonymous function) (0.chunk.js:12092)
  1478. (anonymous function) (0.chunk.js:12107)
  1479. (anonymous function) (0.chunk.js:7845)
  1480. (anonymous function) (0.chunk.js:12135:100)
  1481. (anonymous function) (0.chunk.js:4966:269)
  1482. (anonymous function) (0.chunk.js:4853)
  1483. (anonymous function) (0.chunk.js:4833)
  1484. (anonymous function) (0.chunk.js:71926)
  1485. (anonymous function) (0.chunk.js:72083)
  1486. (anonymous function) (0.chunk.js:71923)
  1487. (anonymous function) (0.chunk.js:4832)
  1488. (anonymous function) (0.chunk.js:71926)
  1489. (anonymous function) (0.chunk.js:72083)
  1490. (anonymous function) (0.chunk.js:71923)
  1491. (anonymous function) (0.chunk.js:4831)
  1492. (anonymous function) (0.chunk.js:4918:186)
  1493. (anonymous function) (0.chunk.js:4830)
  1494. (anonymous function) (0.chunk.js:4918:108)
  1495. e (0.chunk.js:4829)
  1496. (anonymous function) (0.chunk.js:12082)
  1497. (anonymous function) (0.chunk.js:13763)
  1498. (anonymous function) (0.chunk.js:5857)
  1499. (anonymous function) (0.chunk.js:18302)
  1500. (anonymous function) (0.chunk.js:72807)
  1501. (anonymous function) (0.chunk.js:72771:202)
  1502. (anonymous function) (0.chunk.js:21377)
  1503. (anonymous function) (0.chunk.js:10305:97)
  1504. (anonymous function) (0.chunk.js:10320:188)
  1505. (anonymous function) (0.chunk.js:10404)
  1506. (anonymous function) (main.chunk.js:18744)
  1507. (anonymous function) (0.chunk.js:7800)
  1508. (anonymous function) (0.chunk.js:7805:147)
  1509. (anonymous function)
  1510. [Error] WebGL: ERROR: 0:235: 'z' : field selection requires structure or vector on left hand side
  1511. compileShader
  1512. (anonymous function) (0.chunk.js:12092)
  1513. (anonymous function) (0.chunk.js:12107)
  1514. (anonymous function) (0.chunk.js:7845)
  1515. (anonymous function) (0.chunk.js:12135:100)
  1516. (anonymous function) (0.chunk.js:4966:269)
  1517. (anonymous function) (0.chunk.js:4853)
  1518. (anonymous function) (0.chunk.js:4833)
  1519. (anonymous function) (0.chunk.js:71926)
  1520. (anonymous function) (0.chunk.js:72083)
  1521. (anonymous function) (0.chunk.js:71923)
  1522. (anonymous function) (0.chunk.js:4832)
  1523. (anonymous function) (0.chunk.js:71926)
  1524. (anonymous function) (0.chunk.js:72083)
  1525. (anonymous function) (0.chunk.js:71923)
  1526. (anonymous function) (0.chunk.js:4831)
  1527. (anonymous function) (0.chunk.js:4918:186)
  1528. (anonymous function) (0.chunk.js:4830)
  1529. (anonymous function) (0.chunk.js:4918:108)
  1530. e (0.chunk.js:4829)
  1531. (anonymous function) (0.chunk.js:12082)
  1532. (anonymous function) (0.chunk.js:13763)
  1533. (anonymous function) (0.chunk.js:5857)
  1534. (anonymous function) (0.chunk.js:18302)
  1535. (anonymous function) (0.chunk.js:72807)
  1536. (anonymous function) (0.chunk.js:72771:202)
  1537. (anonymous function) (0.chunk.js:21377)
  1538. (anonymous function) (0.chunk.js:10305:97)
  1539. (anonymous function) (0.chunk.js:10320:188)
  1540. (anonymous function) (0.chunk.js:10404)
  1541. (anonymous function) (main.chunk.js:18744)
  1542. (anonymous function) (0.chunk.js:7800)
  1543. (anonymous function) (0.chunk.js:7805:147)
  1544. (anonymous function)
  1545. [Error] WebGL: ERROR: 0:240: 'vDetailInfos' : undeclared identifier
  1546. compileShader
  1547. (anonymous function) (0.chunk.js:12092)
  1548. (anonymous function) (0.chunk.js:12107)
  1549. (anonymous function) (0.chunk.js:7845)
  1550. (anonymous function) (0.chunk.js:12135:100)
  1551. (anonymous function) (0.chunk.js:4966:269)
  1552. (anonymous function) (0.chunk.js:4853)
  1553. (anonymous function) (0.chunk.js:4833)
  1554. (anonymous function) (0.chunk.js:71926)
  1555. (anonymous function) (0.chunk.js:72083)
  1556. (anonymous function) (0.chunk.js:71923)
  1557. (anonymous function) (0.chunk.js:4832)
  1558. (anonymous function) (0.chunk.js:71926)
  1559. (anonymous function) (0.chunk.js:72083)
  1560. (anonymous function) (0.chunk.js:71923)
  1561. (anonymous function) (0.chunk.js:4831)
  1562. (anonymous function) (0.chunk.js:4918:186)
  1563. (anonymous function) (0.chunk.js:4830)
  1564. (anonymous function) (0.chunk.js:4918:108)
  1565. e (0.chunk.js:4829)
  1566. (anonymous function) (0.chunk.js:12082)
  1567. (anonymous function) (0.chunk.js:13763)
  1568. (anonymous function) (0.chunk.js:5857)
  1569. (anonymous function) (0.chunk.js:18302)
  1570. (anonymous function) (0.chunk.js:72807)
  1571. (anonymous function) (0.chunk.js:72771:202)
  1572. (anonymous function) (0.chunk.js:21377)
  1573. (anonymous function) (0.chunk.js:10305:97)
  1574. (anonymous function) (0.chunk.js:10320:188)
  1575. (anonymous function) (0.chunk.js:10404)
  1576. (anonymous function) (main.chunk.js:18744)
  1577. (anonymous function) (0.chunk.js:7800)
  1578. (anonymous function) (0.chunk.js:7805:147)
  1579. (anonymous function)
  1580. [Error] WebGL: ERROR: 0:240: 'y' : field selection requires structure or vector on left hand side
  1581. compileShader
  1582. (anonymous function) (0.chunk.js:12092)
  1583. (anonymous function) (0.chunk.js:12107)
  1584. (anonymous function) (0.chunk.js:7845)
  1585. (anonymous function) (0.chunk.js:12135:100)
  1586. (anonymous function) (0.chunk.js:4966:269)
  1587. (anonymous function) (0.chunk.js:4853)
  1588. (anonymous function) (0.chunk.js:4833)
  1589. (anonymous function) (0.chunk.js:71926)
  1590. (anonymous function) (0.chunk.js:72083)
  1591. (anonymous function) (0.chunk.js:71923)
  1592. (anonymous function) (0.chunk.js:4832)
  1593. (anonymous function) (0.chunk.js:71926)
  1594. (anonymous function) (0.chunk.js:72083)
  1595. (anonymous function) (0.chunk.js:71923)
  1596. (anonymous function) (0.chunk.js:4831)
  1597. (anonymous function) (0.chunk.js:4918:186)
  1598. (anonymous function) (0.chunk.js:4830)
  1599. (anonymous function) (0.chunk.js:4918:108)
  1600. e (0.chunk.js:4829)
  1601. (anonymous function) (0.chunk.js:12082)
  1602. (anonymous function) (0.chunk.js:13763)
  1603. (anonymous function) (0.chunk.js:5857)
  1604. (anonymous function) (0.chunk.js:18302)
  1605. (anonymous function) (0.chunk.js:72807)
  1606. (anonymous function) (0.chunk.js:72771:202)
  1607. (anonymous function) (0.chunk.js:21377)
  1608. (anonymous function) (0.chunk.js:10305:97)
  1609. (anonymous function) (0.chunk.js:10320:188)
  1610. (anonymous function) (0.chunk.js:10404)
  1611. (anonymous function) (main.chunk.js:18744)
  1612. (anonymous function) (0.chunk.js:7800)
  1613. (anonymous function) (0.chunk.js:7805:147)
  1614. (anonymous function)
  1615. [Error] BJS - [14:21:37]: Unable to compile effect:
  1616. (anonymous function) (0.chunk.js:6645)
  1617. (anonymous function) (0.chunk.js:5008)
  1618. (anonymous function) (0.chunk.js:4985)
  1619. (anonymous function) (0.chunk.js:4853)
  1620. (anonymous function) (0.chunk.js:4833)
  1621. (anonymous function) (0.chunk.js:71926)
  1622. (anonymous function) (0.chunk.js:72083)
  1623. (anonymous function) (0.chunk.js:71923)
  1624. (anonymous function) (0.chunk.js:4832)
  1625. (anonymous function) (0.chunk.js:71926)
  1626. (anonymous function) (0.chunk.js:72083)
  1627. (anonymous function) (0.chunk.js:71923)
  1628. (anonymous function) (0.chunk.js:4831)
  1629. (anonymous function) (0.chunk.js:4918:186)
  1630. (anonymous function) (0.chunk.js:4830)
  1631. (anonymous function) (0.chunk.js:4918:108)
  1632. e (0.chunk.js:4829)
  1633. (anonymous function) (0.chunk.js:12082)
  1634. (anonymous function) (0.chunk.js:13763)
  1635. (anonymous function) (0.chunk.js:5857)
  1636. (anonymous function) (0.chunk.js:18302)
  1637. (anonymous function) (0.chunk.js:72807)
  1638. (anonymous function) (0.chunk.js:72771:202)
  1639. (anonymous function) (0.chunk.js:21377)
  1640. (anonymous function) (0.chunk.js:10305:97)
  1641. (anonymous function) (0.chunk.js:10320:188)
  1642. (anonymous function) (0.chunk.js:10404)
  1643. (anonymous function) (main.chunk.js:18744)
  1644. (anonymous function) (0.chunk.js:7800)
  1645. (anonymous function) (0.chunk.js:7805:147)
  1646. (anonymous function)
  1647. [Error] BJS - [14:21:37]: Uniforms: world, view, viewProjection, vEyePosition, vLightsType, vAmbientColor, vDiffuseColor, vSpecularColor, vEmissiveColor, visibility, vFogInfos, vFogColor, pointSize, vDiffuseInfos, vAmbientInfos, vOpacityInfos, vReflectionInfos, vEmissiveInfos, vSpecularInfos, vBumpInfos, vLightmapInfos, vRefractionInfos, mBones, vClipPlane, vClipPlane2, vClipPlane3, vClipPlane4, vClipPlane5, vClipPlane6, diffuseMatrix, ambientMatrix, opacityMatrix, reflectionMatrix, emissiveMatrix, specularMatrix, bumpMatrix, normalMatrix, lightmapMatrix, refractionMatrix, diffuseLeftColor, diffuseRightColor, opacityParts, reflectionLeftColor, reflectionRightColor, emissiveLeftColor, emissiveRightColor, refractionLeftColor, refractionRightColor, vReflectionPosition, vReflectionSize, logarithmicDepthConstant, vTangentSpaceParams, alphaCutOff, boneTextureWidth, vDetailInfos, previousWorld, previousViewProjection, diffuseSampler, ambientSampler, opacitySampler, reflectionCubeSampler, reflection2DSampler, emissiveSampler, specularSampler, bumpSampler, lightmapSampler, refractionCubeSampler, refraction2DSampler, boneSampler, detailSampler
  1648. (anonymous function) (0.chunk.js:6645)
  1649. (anonymous function) (0.chunk.js:5008)
  1650. (anonymous function) (0.chunk.js:4985)
  1651. (anonymous function) (0.chunk.js:4853)
  1652. (anonymous function) (0.chunk.js:4833)
  1653. (anonymous function) (0.chunk.js:71926)
  1654. (anonymous function) (0.chunk.js:72083)
  1655. (anonymous function) (0.chunk.js:71923)
  1656. (anonymous function) (0.chunk.js:4832)
  1657. (anonymous function) (0.chunk.js:71926)
  1658. (anonymous function) (0.chunk.js:72083)
  1659. (anonymous function) (0.chunk.js:71923)
  1660. (anonymous function) (0.chunk.js:4831)
  1661. (anonymous function) (0.chunk.js:4918:186)
  1662. (anonymous function) (0.chunk.js:4830)
  1663. (anonymous function) (0.chunk.js:4918:108)
  1664. e (0.chunk.js:4829)
  1665. (anonymous function) (0.chunk.js:12082)
  1666. (anonymous function) (0.chunk.js:13763)
  1667. (anonymous function) (0.chunk.js:5857)
  1668. (anonymous function) (0.chunk.js:18302)
  1669. (anonymous function) (0.chunk.js:72807)
  1670. (anonymous function) (0.chunk.js:72771:202)
  1671. (anonymous function) (0.chunk.js:21377)
  1672. (anonymous function) (0.chunk.js:10305:97)
  1673. (anonymous function) (0.chunk.js:10320:188)
  1674. (anonymous function) (0.chunk.js:10404)
  1675. (anonymous function) (main.chunk.js:18744)
  1676. (anonymous function) (0.chunk.js:7800)
  1677. (anonymous function) (0.chunk.js:7805:147)
  1678. (anonymous function)
  1679. [Error] BJS - [14:21:37]: Attributes: position, uv, color
  1680. (anonymous function) (0.chunk.js:6645)
  1681. (anonymous function) (0.chunk.js:5010)
  1682. (anonymous function) (0.chunk.js:4985)
  1683. (anonymous function) (0.chunk.js:4853)
  1684. (anonymous function) (0.chunk.js:4833)
  1685. (anonymous function) (0.chunk.js:71926)
  1686. (anonymous function) (0.chunk.js:72083)
  1687. (anonymous function) (0.chunk.js:71923)
  1688. (anonymous function) (0.chunk.js:4832)
  1689. (anonymous function) (0.chunk.js:71926)
  1690. (anonymous function) (0.chunk.js:72083)
  1691. (anonymous function) (0.chunk.js:71923)
  1692. (anonymous function) (0.chunk.js:4831)
  1693. (anonymous function) (0.chunk.js:4918:186)
  1694. (anonymous function) (0.chunk.js:4830)
  1695. (anonymous function) (0.chunk.js:4918:108)
  1696. e (0.chunk.js:4829)
  1697. (anonymous function) (0.chunk.js:12082)
  1698. (anonymous function) (0.chunk.js:13763)
  1699. (anonymous function) (0.chunk.js:5857)
  1700. (anonymous function) (0.chunk.js:18302)
  1701. (anonymous function) (0.chunk.js:72807)
  1702. (anonymous function) (0.chunk.js:72771:202)
  1703. (anonymous function) (0.chunk.js:21377)
  1704. (anonymous function) (0.chunk.js:10305:97)
  1705. (anonymous function) (0.chunk.js:10320:188)
  1706. (anonymous function) (0.chunk.js:10404)
  1707. (anonymous function) (main.chunk.js:18744)
  1708. (anonymous function) (0.chunk.js:7800)
  1709. (anonymous function) (0.chunk.js:7805:147)
  1710. (anonymous function)
  1711. [Error] BJS - [14:21:37]: Defines:
  1712. #define MAINUV1
  1713. #define DIFFUSE
  1714. #define DIFFUSEDIRECTUV 1
  1715. #define DETAIL
  1716. #define DETAILDIRECTUV 0
  1717. #define DETAIL_NORMALBLENDMETHOD 0
  1718. #define AMBIENTDIRECTUV 0
  1719. #define OPACITYDIRECTUV 0
  1720. #define EMISSIVEDIRECTUV 0
  1721. #define SPECULARDIRECTUV 0
  1722. #define BUMPDIRECTUV 0
  1723. #define UV1
  1724. #define VERTEXCOLOR
  1725. #define NUM_BONE_INFLUENCERS 0
  1726. #define BonesPerMesh 0
  1727. #define LIGHTMAPDIRECTUV 0
  1728. #define NUM_MORPH_INFLUENCERS 0
  1729. #define ALPHABLEND
  1730. #define PREPASS_IRRADIANCE_INDEX -1
  1731. #define PREPASS_ALBEDO_INDEX -1
  1732. #define PREPASS_DEPTHNORMAL_INDEX -1
  1733. #define PREPASS_POSITION_INDEX -1
  1734. #define PREPASS_VELOCITY_INDEX -1
  1735. #define PREPASS_REFLECTIVITY_INDEX -1
  1736. #define SCENE_MRT_COUNT 0
  1737. #define VIGNETTEBLENDMODEMULTIPLY
  1738. #define SAMPLER3DGREENDEPTH
  1739. #define SAMPLER3DBGRMAP
  1740.  
  1741. (anonymous function) (0.chunk.js:6645)
  1742. (anonymous function) (0.chunk.js:5012)
  1743. (anonymous function) (0.chunk.js:4985)
  1744. (anonymous function) (0.chunk.js:4853)
  1745. (anonymous function) (0.chunk.js:4833)
  1746. (anonymous function) (0.chunk.js:71926)
  1747. (anonymous function) (0.chunk.js:72083)
  1748. (anonymous function) (0.chunk.js:71923)
  1749. (anonymous function) (0.chunk.js:4832)
  1750. (anonymous function) (0.chunk.js:71926)
  1751. (anonymous function) (0.chunk.js:72083)
  1752. (anonymous function) (0.chunk.js:71923)
  1753. (anonymous function) (0.chunk.js:4831)
  1754. (anonymous function) (0.chunk.js:4918:186)
  1755. (anonymous function) (0.chunk.js:4830)
  1756. (anonymous function) (0.chunk.js:4918:108)
  1757. e (0.chunk.js:4829)
  1758. (anonymous function) (0.chunk.js:12082)
  1759. (anonymous function) (0.chunk.js:13763)
  1760. (anonymous function) (0.chunk.js:5857)
  1761. (anonymous function) (0.chunk.js:18302)
  1762. (anonymous function) (0.chunk.js:72807)
  1763. (anonymous function) (0.chunk.js:72771:202)
  1764. (anonymous function) (0.chunk.js:21377)
  1765. (anonymous function) (0.chunk.js:10305:97)
  1766. (anonymous function) (0.chunk.js:10320:188)
  1767. (anonymous function) (0.chunk.js:10404)
  1768. (anonymous function) (main.chunk.js:18744)
  1769. (anonymous function) (0.chunk.js:7800)
  1770. (anonymous function) (0.chunk.js:7805:147)
  1771. (anonymous function)
  1772. [Error] BJS - [14:21:37]: Vertex code:
  1773. (anonymous function) (0.chunk.js:6645)
  1774. (anonymous function) (0.chunk.js:5016:252)
  1775. (anonymous function) (0.chunk.js:4985)
  1776. (anonymous function) (0.chunk.js:4853)
  1777. (anonymous function) (0.chunk.js:4833)
  1778. (anonymous function) (0.chunk.js:71926)
  1779. (anonymous function) (0.chunk.js:72083)
  1780. (anonymous function) (0.chunk.js:71923)
  1781. (anonymous function) (0.chunk.js:4832)
  1782. (anonymous function) (0.chunk.js:71926)
  1783. (anonymous function) (0.chunk.js:72083)
  1784. (anonymous function) (0.chunk.js:71923)
  1785. (anonymous function) (0.chunk.js:4831)
  1786. (anonymous function) (0.chunk.js:4918:186)
  1787. (anonymous function) (0.chunk.js:4830)
  1788. (anonymous function) (0.chunk.js:4918:108)
  1789. e (0.chunk.js:4829)
  1790. (anonymous function) (0.chunk.js:12082)
  1791. (anonymous function) (0.chunk.js:13763)
  1792. (anonymous function) (0.chunk.js:5857)
  1793. (anonymous function) (0.chunk.js:18302)
  1794. (anonymous function) (0.chunk.js:72807)
  1795. (anonymous function) (0.chunk.js:72771:202)
  1796. (anonymous function) (0.chunk.js:21377)
  1797. (anonymous function) (0.chunk.js:10305:97)
  1798. (anonymous function) (0.chunk.js:10320:188)
  1799. (anonymous function) (0.chunk.js:10404)
  1800. (anonymous function) (main.chunk.js:18744)
  1801. (anonymous function) (0.chunk.js:7800)
  1802. (anonymous function) (0.chunk.js:7805:147)
  1803. (anonymous function)
  1804. [Error] BJS - [14:21:37]: #define MAINUV1
  1805. #define DIFFUSE
  1806. #define DIFFUSEDIRECTUV 1
  1807. #define DETAIL
  1808. #define DETAILDIRECTUV 0
  1809. #define DETAIL_NORMALBLENDMETHOD 0
  1810. #define AMBIENTDIRECTUV 0
  1811. #define OPACITYDIRECTUV 0
  1812. #define EMISSIVEDIRECTUV 0
  1813. #define SPECULARDIRECTUV 0
  1814. #define BUMPDIRECTUV 0
  1815. #define UV1
  1816. #define VERTEXCOLOR
  1817. #define NUM_BONE_INFLUENCERS 0
  1818. #define BonesPerMesh 0
  1819. #define LIGHTMAPDIRECTUV 0
  1820. #define NUM_MORPH_INFLUENCERS 0
  1821. #define ALPHABLEND
  1822. #define PREPASS_IRRADIANCE_INDEX -1
  1823. #define PREPASS_ALBEDO_INDEX -1
  1824. #define PREPASS_DEPTHNORMAL_INDEX -1
  1825. #define PREPASS_POSITION_INDEX -1
  1826. #define PREPASS_VELOCITY_INDEX -1
  1827. #define PREPASS_REFLECTIVITY_INDEX -1
  1828. #define SCENE_MRT_COUNT 0
  1829. #define VIGNETTEBLENDMODEMULTIPLY
  1830. #define SAMPLER3DGREENDEPTH
  1831. #define SAMPLER3DBGRMAP
  1832.  
  1833. #define SHADER_NAME vertex:default
  1834. precision highp float;
  1835. uniform mat4 viewProjection;
  1836. uniform mat4 view;
  1837. uniform mat4 diffuseMatrix;
  1838. uniform vec2 vDiffuseInfos;
  1839. #define CUSTOM_VERTEX_BEGIN
  1840. attribute vec3 position;
  1841. attribute vec2 uv;
  1842. attribute vec4 color;
  1843. const float PI=3.1415926535897932384626433832795;
  1844. const float HALF_MIN=5.96046448e-08;
  1845. const float LinearEncodePowerApprox=2.2;
  1846. const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;
  1847. const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);
  1848. const float Epsilon=0.0000001;
  1849. #define saturate(x) clamp(x,0.0,1.0)
  1850. #define absEps(x) abs(x)+Epsilon
  1851. #define maxEps(x) max(x,Epsilon)
  1852. #define saturateEps(x) clamp(x,Epsilon,1.0)
  1853. mat3 transposeMat3(mat3 inMatrix) {
  1854. vec3 i0=inMatrix[0];
  1855. vec3 i1=inMatrix[1];
  1856. vec3 i2=inMatrix[2];
  1857. mat3 outMatrix=mat3(
  1858. vec3(i0.x,i1.x,i2.x),
  1859. vec3(i0.y,i1.y,i2.y),
  1860. vec3(i0.z,i1.z,i2.z)
  1861. );
  1862. return outMatrix;
  1863. }
  1864. mat3 inverseMat3(mat3 inMatrix) {
  1865. float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];
  1866. float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];
  1867. float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];
  1868. float b01=a22*a11-a12*a21;
  1869. float b11=-a22*a10+a12*a20;
  1870. float b21=a21*a10-a11*a20;
  1871. float det=a00*b01+a01*b11+a02*b21;
  1872. return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
  1873. b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
  1874. b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;
  1875. }
  1876. float toLinearSpace(float color)
  1877. {
  1878. return pow(color,LinearEncodePowerApprox);
  1879. }
  1880. vec3 toLinearSpace(vec3 color)
  1881. {
  1882. return pow(color,vec3(LinearEncodePowerApprox));
  1883. }
  1884. vec4 toLinearSpace(vec4 color)
  1885. {
  1886. return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
  1887. }
  1888. vec3 toGammaSpace(vec3 color)
  1889. {
  1890. return pow(color,vec3(GammaEncodePowerApprox));
  1891. }
  1892. vec4 toGammaSpace(vec4 color)
  1893. {
  1894. return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
  1895. }
  1896. float toGammaSpace(float color)
  1897. {
  1898. return pow(color,GammaEncodePowerApprox);
  1899. }
  1900. float square(float value)
  1901. {
  1902. return value*value;
  1903. }
  1904. float pow5(float value) {
  1905. float sq=value*value;
  1906. return sq*sq*value;
  1907. }
  1908. float getLuminance(vec3 color)
  1909. {
  1910. return clamp(dot(color,LuminanceEncodeApprox),0.,1.);
  1911. }
  1912. float getRand(vec2 seed) {
  1913. return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);
  1914. }
  1915. float dither(vec2 seed,float varianceAmount) {
  1916. float rand=getRand(seed);
  1917. float dither=mix(-varianceAmount/255.0,varianceAmount/255.0,rand);
  1918. return dither;
  1919. }
  1920. const float rgbdMaxRange=255.0;
  1921. vec4 toRGBD(vec3 color) {
  1922. float maxRGB=maxEps(max(color.r,max(color.g,color.b)));
  1923. float D=max(rgbdMaxRange/maxRGB,1.);
  1924. D=clamp(floor(D)/255.0,0.,1.);
  1925. vec3 rgb=color.rgb*D;
  1926. rgb=toGammaSpace(rgb);
  1927. return vec4(rgb,D);
  1928. }
  1929. vec3 fromRGBD(vec4 rgbd) {
  1930. rgbd.rgb=toLinearSpace(rgbd.rgb);
  1931. return rgbd.rgb/rgbd.a;
  1932. }
  1933. uniform mat4 world;
  1934. varying vec2 vMainUV1;
  1935. varying vec2 vDetailUV;
  1936. varying vec3 vPositionW;
  1937. varying vec4 vColor;
  1938. #define CUSTOM_VERTEX_DEFINITIONS
  1939. void main(void) {
  1940. #define CUSTOM_VERTEX_MAIN_BEGIN
  1941. vec3 positionUpdated=position;
  1942. vec2 uvUpdated=uv;
  1943. #define CUSTOM_VERTEX_UPDATE_POSITION
  1944. #define CUSTOM_VERTEX_UPDATE_NORMAL
  1945. mat4 finalWorld=world;
  1946. vec4 worldPos=finalWorld*vec4(positionUpdated,1.0);
  1947. #define CUSTOM_VERTEX_UPDATE_WORLDPOS
  1948. gl_Position=viewProjection*worldPos;
  1949. vPositionW=vec3(worldPos);
  1950. vec2 uv2=vec2(0.,0.);
  1951. vMainUV1=uvUpdated;
  1952. if (vDetailInfos.x == 0.)
  1953. {
  1954. vDetailUV=vec2(detailMatrix*vec4(uvUpdated,1.0,0.0));
  1955. }
  1956. else
  1957. {
  1958. vDetailUV=vec2(detailMatrix*vec4(uv2,1.0,0.0));
  1959. }
  1960. vColor=color;
  1961. #define CUSTOM_VERTEX_MAIN_END
  1962. }
  1963.  
  1964. (anonymous function) (0.chunk.js:6645)
  1965. (anonymous function) (0.chunk.js:5016:279)
  1966. (anonymous function) (0.chunk.js:4985)
  1967. (anonymous function) (0.chunk.js:4853)
  1968. (anonymous function) (0.chunk.js:4833)
  1969. (anonymous function) (0.chunk.js:71926)
  1970. (anonymous function) (0.chunk.js:72083)
  1971. (anonymous function) (0.chunk.js:71923)
  1972. (anonymous function) (0.chunk.js:4832)
  1973. (anonymous function) (0.chunk.js:71926)
  1974. (anonymous function) (0.chunk.js:72083)
  1975. (anonymous function) (0.chunk.js:71923)
  1976. (anonymous function) (0.chunk.js:4831)
  1977. (anonymous function) (0.chunk.js:4918:186)
  1978. (anonymous function) (0.chunk.js:4830)
  1979. (anonymous function) (0.chunk.js:4918:108)
  1980. e (0.chunk.js:4829)
  1981. (anonymous function) (0.chunk.js:12082)
  1982. (anonymous function) (0.chunk.js:13763)
  1983. (anonymous function) (0.chunk.js:5857)
  1984. (anonymous function) (0.chunk.js:18302)
  1985. (anonymous function) (0.chunk.js:72807)
  1986. (anonymous function) (0.chunk.js:72771:202)
  1987. (anonymous function) (0.chunk.js:21377)
  1988. (anonymous function) (0.chunk.js:10305:97)
  1989. (anonymous function) (0.chunk.js:10320:188)
  1990. (anonymous function) (0.chunk.js:10404)
  1991. (anonymous function) (main.chunk.js:18744)
  1992. (anonymous function) (0.chunk.js:7800)
  1993. (anonymous function) (0.chunk.js:7805:147)
  1994. (anonymous function)
  1995. [Error] BJS - [14:21:37]: Fragment code:
  1996. (anonymous function) (0.chunk.js:6645)
  1997. (anonymous function) (0.chunk.js:5016:574)
  1998. (anonymous function) (0.chunk.js:4985)
  1999. (anonymous function) (0.chunk.js:4853)
  2000. (anonymous function) (0.chunk.js:4833)
  2001. (anonymous function) (0.chunk.js:71926)
  2002. (anonymous function) (0.chunk.js:72083)
  2003. (anonymous function) (0.chunk.js:71923)
  2004. (anonymous function) (0.chunk.js:4832)
  2005. (anonymous function) (0.chunk.js:71926)
  2006. (anonymous function) (0.chunk.js:72083)
  2007. (anonymous function) (0.chunk.js:71923)
  2008. (anonymous function) (0.chunk.js:4831)
  2009. (anonymous function) (0.chunk.js:4918:186)
  2010. (anonymous function) (0.chunk.js:4830)
  2011. (anonymous function) (0.chunk.js:4918:108)
  2012. e (0.chunk.js:4829)
  2013. (anonymous function) (0.chunk.js:12082)
  2014. (anonymous function) (0.chunk.js:13763)
  2015. (anonymous function) (0.chunk.js:5857)
  2016. (anonymous function) (0.chunk.js:18302)
  2017. (anonymous function) (0.chunk.js:72807)
  2018. (anonymous function) (0.chunk.js:72771:202)
  2019. (anonymous function) (0.chunk.js:21377)
  2020. (anonymous function) (0.chunk.js:10305:97)
  2021. (anonymous function) (0.chunk.js:10320:188)
  2022. (anonymous function) (0.chunk.js:10404)
  2023. (anonymous function) (main.chunk.js:18744)
  2024. (anonymous function) (0.chunk.js:7800)
  2025. (anonymous function) (0.chunk.js:7805:147)
  2026. (anonymous function)
  2027. [Error] BJS - [14:21:37]: #define MAINUV1
  2028. #define DIFFUSE
  2029. #define DIFFUSEDIRECTUV 1
  2030. #define DETAIL
  2031. #define DETAILDIRECTUV 0
  2032. #define DETAIL_NORMALBLENDMETHOD 0
  2033. #define AMBIENTDIRECTUV 0
  2034. #define OPACITYDIRECTUV 0
  2035. #define EMISSIVEDIRECTUV 0
  2036. #define SPECULARDIRECTUV 0
  2037. #define BUMPDIRECTUV 0
  2038. #define UV1
  2039. #define VERTEXCOLOR
  2040. #define NUM_BONE_INFLUENCERS 0
  2041. #define BonesPerMesh 0
  2042. #define LIGHTMAPDIRECTUV 0
  2043. #define NUM_MORPH_INFLUENCERS 0
  2044. #define ALPHABLEND
  2045. #define PREPASS_IRRADIANCE_INDEX -1
  2046. #define PREPASS_ALBEDO_INDEX -1
  2047. #define PREPASS_DEPTHNORMAL_INDEX -1
  2048. #define PREPASS_POSITION_INDEX -1
  2049. #define PREPASS_VELOCITY_INDEX -1
  2050. #define PREPASS_REFLECTIVITY_INDEX -1
  2051. #define SCENE_MRT_COUNT 0
  2052. #define VIGNETTEBLENDMODEMULTIPLY
  2053. #define SAMPLER3DGREENDEPTH
  2054. #define SAMPLER3DBGRMAP
  2055.  
  2056. #define SHADER_NAME fragment:default
  2057. precision highp float;
  2058. uniform vec4 vDiffuseColor;
  2059. uniform vec3 vEmissiveColor;
  2060. uniform float visibility;
  2061. uniform vec2 vDiffuseInfos;
  2062. #extension GL_OES_standard_derivatives : enable
  2063. #define CUSTOM_FRAGMENT_BEGIN
  2064. #define RECIPROCAL_PI2 0.15915494
  2065. uniform vec3 vEyePosition;
  2066. uniform vec3 vAmbientColor;
  2067. varying vec3 vPositionW;
  2068. varying vec4 vColor;
  2069. varying vec2 vMainUV1;
  2070. const float PI=3.1415926535897932384626433832795;
  2071. const float HALF_MIN=5.96046448e-08;
  2072. const float LinearEncodePowerApprox=2.2;
  2073. const float GammaEncodePowerApprox=1.0/LinearEncodePowerApprox;
  2074. const vec3 LuminanceEncodeApprox=vec3(0.2126,0.7152,0.0722);
  2075. const float Epsilon=0.0000001;
  2076. #define saturate(x) clamp(x,0.0,1.0)
  2077. #define absEps(x) abs(x)+Epsilon
  2078. #define maxEps(x) max(x,Epsilon)
  2079. #define saturateEps(x) clamp(x,Epsilon,1.0)
  2080. mat3 transposeMat3(mat3 inMatrix) {
  2081. vec3 i0=inMatrix[0];
  2082. vec3 i1=inMatrix[1];
  2083. vec3 i2=inMatrix[2];
  2084. mat3 outMatrix=mat3(
  2085. vec3(i0.x,i1.x,i2.x),
  2086. vec3(i0.y,i1.y,i2.y),
  2087. vec3(i0.z,i1.z,i2.z)
  2088. );
  2089. return outMatrix;
  2090. }
  2091. mat3 inverseMat3(mat3 inMatrix) {
  2092. float a00=inMatrix[0][0],a01=inMatrix[0][1],a02=inMatrix[0][2];
  2093. float a10=inMatrix[1][0],a11=inMatrix[1][1],a12=inMatrix[1][2];
  2094. float a20=inMatrix[2][0],a21=inMatrix[2][1],a22=inMatrix[2][2];
  2095. float b01=a22*a11-a12*a21;
  2096. float b11=-a22*a10+a12*a20;
  2097. float b21=a21*a10-a11*a20;
  2098. float det=a00*b01+a01*b11+a02*b21;
  2099. return mat3(b01,(-a22*a01+a02*a21),(a12*a01-a02*a11),
  2100. b11,(a22*a00-a02*a20),(-a12*a00+a02*a10),
  2101. b21,(-a21*a00+a01*a20),(a11*a00-a01*a10))/det;
  2102. }
  2103. float toLinearSpace(float color)
  2104. {
  2105. return pow(color,LinearEncodePowerApprox);
  2106. }
  2107. vec3 toLinearSpace(vec3 color)
  2108. {
  2109. return pow(color,vec3(LinearEncodePowerApprox));
  2110. }
  2111. vec4 toLinearSpace(vec4 color)
  2112. {
  2113. return vec4(pow(color.rgb,vec3(LinearEncodePowerApprox)),color.a);
  2114. }
  2115. vec3 toGammaSpace(vec3 color)
  2116. {
  2117. return pow(color,vec3(GammaEncodePowerApprox));
  2118. }
  2119. vec4 toGammaSpace(vec4 color)
  2120. {
  2121. return vec4(pow(color.rgb,vec3(GammaEncodePowerApprox)),color.a);
  2122. }
  2123. float toGammaSpace(float color)
  2124. {
  2125. return pow(color,GammaEncodePowerApprox);
  2126. }
  2127. float square(float value)
  2128. {
  2129. return value*value;
  2130. }
  2131. float pow5(float value) {
  2132. float sq=value*value;
  2133. return sq*sq*value;
  2134. }
  2135. float getLuminance(vec3 color)
  2136. {
  2137. return clamp(dot(color,LuminanceEncodeApprox),0.,1.);
  2138. }
  2139. float getRand(vec2 seed) {
  2140. return fract(sin(dot(seed.xy ,vec2(12.9898,78.233)))*43758.5453);
  2141. }
  2142. float dither(vec2 seed,float varianceAmount) {
  2143. float rand=getRand(seed);
  2144. float dither=mix(-varianceAmount/255.0,varianceAmount/255.0,rand);
  2145. return dither;
  2146. }
  2147. const float rgbdMaxRange=255.0;
  2148. vec4 toRGBD(vec3 color) {
  2149. float maxRGB=maxEps(max(color.r,max(color.g,color.b)));
  2150. float D=max(rgbdMaxRange/maxRGB,1.);
  2151. D=clamp(floor(D)/255.0,0.,1.);
  2152. vec3 rgb=color.rgb*D;
  2153. rgb=toGammaSpace(rgb);
  2154. return vec4(rgb,D);
  2155. }
  2156. vec3 fromRGBD(vec4 rgbd) {
  2157. rgbd.rgb=toLinearSpace(rgbd.rgb);
  2158. return rgbd.rgb/rgbd.a;
  2159. }
  2160. struct lightingInfo
  2161. {
  2162. vec3 diffuse;
  2163. };
  2164. lightingInfo computeLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec3 diffuseColor,vec3 specularColor,float range,float glossiness) {
  2165. lightingInfo result;
  2166. vec3 lightVectorW;
  2167. float attenuation=1.0;
  2168. if (lightData.w == 0.)
  2169. {
  2170. vec3 direction=lightData.xyz-vPositionW;
  2171. attenuation=max(0.,1.0-length(direction)/range);
  2172. lightVectorW=normalize(direction);
  2173. }
  2174. else
  2175. {
  2176. lightVectorW=normalize(-lightData.xyz);
  2177. }
  2178. float ndl=max(0.,dot(vNormal,lightVectorW));
  2179. result.diffuse=ndl*diffuseColor*attenuation;
  2180. return result;
  2181. }
  2182. lightingInfo computeSpotLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec4 lightDirection,vec3 diffuseColor,vec3 specularColor,float range,float glossiness) {
  2183. lightingInfo result;
  2184. vec3 direction=lightData.xyz-vPositionW;
  2185. vec3 lightVectorW=normalize(direction);
  2186. float attenuation=max(0.,1.0-length(direction)/range);
  2187. float cosAngle=max(0.,dot(lightDirection.xyz,-lightVectorW));
  2188. if (cosAngle>=lightDirection.w)
  2189. {
  2190. cosAngle=max(0.,pow(cosAngle,lightData.w));
  2191. attenuation*=cosAngle;
  2192. float ndl=max(0.,dot(vNormal,lightVectorW));
  2193. result.diffuse=ndl*diffuseColor*attenuation;
  2194. return result;
  2195. }
  2196. result.diffuse=vec3(0.);
  2197. return result;
  2198. }
  2199. lightingInfo computeHemisphericLighting(vec3 viewDirectionW,vec3 vNormal,vec4 lightData,vec3 diffuseColor,vec3 specularColor,vec3 groundColor,float glossiness) {
  2200. lightingInfo result;
  2201. float ndl=dot(vNormal,lightData.xyz)*0.5+0.5;
  2202. result.diffuse=mix(groundColor,diffuseColor,ndl);
  2203. return result;
  2204. }
  2205. #define inline
  2206. vec3 computeProjectionTextureDiffuseLighting(sampler2D projectionLightSampler,mat4 textureProjectionMatrix){
  2207. vec4 strq=textureProjectionMatrix*vec4(vPositionW,1.0);
  2208. strq/=strq.w;
  2209. vec3 textureColor=texture2D(projectionLightSampler,strq.xy).rgb;
  2210. return textureColor;
  2211. }
  2212. #define vDiffuseUV vMainUV1
  2213. uniform sampler2D diffuseSampler;
  2214. vec4 applyImageProcessing(vec4 result) {
  2215. result.rgb=toGammaSpace(result.rgb);
  2216. result.rgb=saturate(result.rgb);
  2217. return result;
  2218. }
  2219. vec3 perturbNormalBase(mat3 cotangentFrame,vec3 normal,float scale)
  2220. {
  2221. return normalize(cotangentFrame*normal);
  2222. }
  2223. vec3 perturbNormal(mat3 cotangentFrame,vec3 textureSample,float scale)
  2224. {
  2225. return perturbNormalBase(cotangentFrame,textureSample*2.0-1.0,scale);
  2226. }
  2227. mat3 cotangent_frame(vec3 normal,vec3 p,vec2 uv,vec2 tangentSpaceParams)
  2228. {
  2229. uv=gl_FrontFacing ? uv : -uv;
  2230. vec3 dp1=dFdx(p);
  2231. vec3 dp2=dFdy(p);
  2232. vec2 duv1=dFdx(uv);
  2233. vec2 duv2=dFdy(uv);
  2234. vec3 dp2perp=cross(dp2,normal);
  2235. vec3 dp1perp=cross(normal,dp1);
  2236. vec3 tangent=dp2perp*duv1.x+dp1perp*duv2.x;
  2237. vec3 bitangent=dp2perp*duv1.y+dp1perp*duv2.y;
  2238. tangent*=tangentSpaceParams.x;
  2239. bitangent*=tangentSpaceParams.y;
  2240. float invmax=inversesqrt(max(dot(tangent,tangent),dot(bitangent,bitangent)));
  2241. return mat3(tangent*invmax,bitangent*invmax,normal);
  2242. }
  2243. varying vec2 vDetailUV;
  2244. uniform sampler2D detailSampler;
  2245. #define CUSTOM_FRAGMENT_DEFINITIONS
  2246. void main(void) {
  2247. #define CUSTOM_FRAGMENT_MAIN_BEGIN
  2248. vec3 viewDirectionW=normalize(vEyePosition-vPositionW);
  2249. vec4 baseColor=vec4(1.,1.,1.,1.);
  2250. vec3 diffuseColor=vDiffuseColor.rgb;
  2251. float alpha=vDiffuseColor.a;
  2252. vec3 normalW=normalize(-cross(dFdx(vPositionW),dFdy(vPositionW)));
  2253. vec2 uvOffset=vec2(0.0,0.0);
  2254. float normalScale=1.0;
  2255. mat3 TBN=cotangent_frame(normalW*normalScale,vPositionW,vDetailUV,vec2(1.,1.));
  2256. vec4 detailColor=texture2D(detailSampler,vDetailUV+uvOffset);
  2257. vec2 detailNormalRG=detailColor.wy*2.0-1.0;
  2258. float detailNormalB=sqrt(1.-saturate(dot(detailNormalRG,detailNormalRG)));
  2259. vec3 detailNormal=vec3(detailNormalRG,detailNormalB);
  2260. detailNormal.xy*=vDetailInfos.z;
  2261. normalW=perturbNormalBase(TBN,detailNormal,vDetailInfos.z);
  2262. baseColor=texture2D(diffuseSampler,vDiffuseUV+uvOffset);
  2263. #define CUSTOM_FRAGMENT_UPDATE_ALPHA
  2264. baseColor.rgb*=vDiffuseInfos.y;
  2265. baseColor.rgb*=vColor.rgb;
  2266. baseColor.rgb=baseColor.rgb*2.0*mix(0.5,detailColor.r,vDetailInfos.y);
  2267. #define CUSTOM_FRAGMENT_UPDATE_DIFFUSE
  2268. vec3 baseAmbientColor=vec3(1.,1.,1.);
  2269. #define CUSTOM_FRAGMENT_BEFORE_LIGHTS
  2270. float glossiness=0.;
  2271. vec3 diffuseBase=vec3(0.,0.,0.);
  2272. lightingInfo info;
  2273. float shadow=1.;
  2274. vec4 refractionColor=vec4(0.,0.,0.,1.);
  2275. vec4 reflectionColor=vec4(0.,0.,0.,1.);
  2276. vec3 emissiveColor=vEmissiveColor;
  2277. vec3 finalDiffuse=clamp(diffuseBase*diffuseColor+emissiveColor+vAmbientColor,0.0,1.0)*baseColor.rgb;
  2278. vec3 finalSpecular=vec3(0.0);
  2279. vec4 color=vec4(finalDiffuse*baseAmbientColor+finalSpecular+reflectionColor.rgb+refractionColor.rgb,alpha);
  2280. #define CUSTOM_FRAGMENT_BEFORE_FOG
  2281. color.rgb=max(color.rgb,0.);
  2282. color.a*=visibility;
  2283. #define CUSTOM_FRAGMENT_BEFORE_FRAGCOLOR
  2284. gl_FragColor=color;
  2285. }
  2286.  
  2287. (anonymous function) (0.chunk.js:6645)
  2288. (anonymous function) (0.chunk.js:5016:603)
  2289. (anonymous function) (0.chunk.js:4985)
  2290. (anonymous function) (0.chunk.js:4853)
  2291. (anonymous function) (0.chunk.js:4833)
  2292. (anonymous function) (0.chunk.js:71926)
  2293. (anonymous function) (0.chunk.js:72083)
  2294. (anonymous function) (0.chunk.js:71923)
  2295. (anonymous function) (0.chunk.js:4832)
  2296. (anonymous function) (0.chunk.js:71926)
  2297. (anonymous function) (0.chunk.js:72083)
  2298. (anonymous function) (0.chunk.js:71923)
  2299. (anonymous function) (0.chunk.js:4831)
  2300. (anonymous function) (0.chunk.js:4918:186)
  2301. (anonymous function) (0.chunk.js:4830)
  2302. (anonymous function) (0.chunk.js:4918:108)
  2303. e (0.chunk.js:4829)
  2304. (anonymous function) (0.chunk.js:12082)
  2305. (anonymous function) (0.chunk.js:13763)
  2306. (anonymous function) (0.chunk.js:5857)
  2307. (anonymous function) (0.chunk.js:18302)
  2308. (anonymous function) (0.chunk.js:72807)
  2309. (anonymous function) (0.chunk.js:72771:202)
  2310. (anonymous function) (0.chunk.js:21377)
  2311. (anonymous function) (0.chunk.js:10305:97)
  2312. (anonymous function) (0.chunk.js:10320:188)
  2313. (anonymous function) (0.chunk.js:10404)
  2314. (anonymous function) (main.chunk.js:18744)
  2315. (anonymous function) (0.chunk.js:7800)
  2316. (anonymous function) (0.chunk.js:7805:147)
  2317. (anonymous function)
  2318. [Error] BJS - [14:21:37]: Offending line [149] in vertex code: if (vDetailInfos.x == 0.)
  2319. (anonymous function) (0.chunk.js:6645)
  2320. (anonymous function) (0.chunk.js:5016:624)
  2321. (anonymous function) (0.chunk.js:4985)
  2322. (anonymous function) (0.chunk.js:4853)
  2323. (anonymous function) (0.chunk.js:4833)
  2324. (anonymous function) (0.chunk.js:71926)
  2325. (anonymous function) (0.chunk.js:72083)
  2326. (anonymous function) (0.chunk.js:71923)
  2327. (anonymous function) (0.chunk.js:4832)
  2328. (anonymous function) (0.chunk.js:71926)
  2329. (anonymous function) (0.chunk.js:72083)
  2330. (anonymous function) (0.chunk.js:71923)
  2331. (anonymous function) (0.chunk.js:4831)
  2332. (anonymous function) (0.chunk.js:4918:186)
  2333. (anonymous function) (0.chunk.js:4830)
  2334. (anonymous function) (0.chunk.js:4918:108)
  2335. e (0.chunk.js:4829)
  2336. (anonymous function) (0.chunk.js:12082)
  2337. (anonymous function) (0.chunk.js:13763)
  2338. (anonymous function) (0.chunk.js:5857)
  2339. (anonymous function) (0.chunk.js:18302)
  2340. (anonymous function) (0.chunk.js:72807)
  2341. (anonymous function) (0.chunk.js:72771:202)
  2342. (anonymous function) (0.chunk.js:21377)
  2343. (anonymous function) (0.chunk.js:10305:97)
  2344. (anonymous function) (0.chunk.js:10320:188)
  2345. (anonymous function) (0.chunk.js:10404)
  2346. (anonymous function) (main.chunk.js:18744)
  2347. (anonymous function) (0.chunk.js:7800)
  2348. (anonymous function) (0.chunk.js:7805:147)
  2349. (anonymous function)
  2350. [Error] BJS - [14:21:37]: Error: VERTEX SHADER ERROR: 0:149: 'vDetailInfos' : undeclared identifier
  2351. ERROR: 0:149: 'x' : field selection requires structure or vector on left hand side
  2352. ERROR: 0:151: 'detailMatrix' : undeclared identifier
  2353. ERROR: 0:155: 'detailMatrix' : undeclared identifier
  2354.  
  2355. (anonymous function) (0.chunk.js:6645)
  2356. (anonymous function) (0.chunk.js:5019)
  2357. (anonymous function) (0.chunk.js:4985)
  2358. (anonymous function) (0.chunk.js:4853)
  2359. (anonymous function) (0.chunk.js:4833)
  2360. (anonymous function) (0.chunk.js:71926)
  2361. (anonymous function) (0.chunk.js:72083)
  2362. (anonymous function) (0.chunk.js:71923)
  2363. (anonymous function) (0.chunk.js:4832)
  2364. (anonymous function) (0.chunk.js:71926)
  2365. (anonymous function) (0.chunk.js:72083)
  2366. (anonymous function) (0.chunk.js:71923)
  2367. (anonymous function) (0.chunk.js:4831)
  2368. (anonymous function) (0.chunk.js:4918:186)
  2369. (anonymous function) (0.chunk.js:4830)
  2370. (anonymous function) (0.chunk.js:4918:108)
  2371. e (0.chunk.js:4829)
  2372. (anonymous function) (0.chunk.js:12082)
  2373. (anonymous function) (0.chunk.js:13763)
  2374. (anonymous function) (0.chunk.js:5857)
  2375. (anonymous function) (0.chunk.js:18302)
  2376. (anonymous function) (0.chunk.js:72807)
  2377. (anonymous function) (0.chunk.js:72771:202)
  2378. (anonymous function) (0.chunk.js:21377)
  2379. (anonymous function) (0.chunk.js:10305:97)
  2380. (anonymous function) (0.chunk.js:10320:188)
  2381. (anonymous function) (0.chunk.js:10404)
  2382. (anonymous function) (main.chunk.js:18744)
  2383. (anonymous function) (0.chunk.js:7800)
  2384. (anonymous function) (0.chunk.js:7805:147)
  2385. (anonymous function)
Advertisement
RAW Paste Data Copied
Advertisement