debug.json 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. [
  2. 1,
  3. 0,
  4. 0,
  5. [
  6. [
  7. "cc.EffectAsset",
  8. [
  9. "_name",
  10. "shaders",
  11. "techniques"
  12. ],
  13. 0
  14. ]
  15. ],
  16. [
  17. [
  18. 0,
  19. 0,
  20. 1,
  21. 2,
  22. 4
  23. ]
  24. ],
  25. [
  26. [
  27. 0,
  28. "for2d/builtin-spine",
  29. [
  30. {
  31. "hash": 3152403458,
  32. "name": "for2d/builtin-spine|sprite-vs:vert|sprite-fs:frag",
  33. "blocks": [
  34. {
  35. "name": "ALPHA_TEST_DATA",
  36. "stageFlags": 16,
  37. "binding": 0,
  38. "members": [
  39. {
  40. "name": "alphaThreshold",
  41. "type": 13,
  42. "count": 1
  43. }
  44. ],
  45. "defines": [
  46. "USE_ALPHA_TEST"
  47. ]
  48. }
  49. ],
  50. "samplerTextures": [],
  51. "samplers": [],
  52. "textures": [],
  53. "buffers": [],
  54. "images": [],
  55. "subpassInputs": [],
  56. "attributes": [
  57. {
  58. "name": "a_position",
  59. "format": 32,
  60. "location": 0,
  61. "defines": []
  62. },
  63. {
  64. "name": "a_texCoord",
  65. "format": 21,
  66. "location": 1,
  67. "defines": []
  68. },
  69. {
  70. "name": "a_color",
  71. "format": 44,
  72. "location": 2,
  73. "defines": []
  74. },
  75. {
  76. "name": "a_color2",
  77. "format": 44,
  78. "location": 3,
  79. "defines": [
  80. "TWO_COLORED"
  81. ]
  82. }
  83. ],
  84. "fragColors": [
  85. {
  86. "name": "cc_FragColor",
  87. "typename": "vec4",
  88. "type": 16,
  89. "count": 1,
  90. "stageFlags": 16,
  91. "location": 0,
  92. "defines": []
  93. }
  94. ],
  95. "descriptors": [
  96. {
  97. "rate": 0,
  98. "blocks": [
  99. {
  100. "name": "CCLocal",
  101. "stageFlags": 1,
  102. "tags": {
  103. "builtin": "local"
  104. },
  105. "members": [
  106. {
  107. "name": "cc_matWorld",
  108. "typename": "mat4",
  109. "type": 25,
  110. "count": 1,
  111. "precision": "highp "
  112. },
  113. {
  114. "name": "cc_matWorldIT",
  115. "typename": "mat4",
  116. "type": 25,
  117. "count": 1,
  118. "precision": "highp "
  119. },
  120. {
  121. "name": "cc_lightingMapUVParam",
  122. "typename": "vec4",
  123. "type": 16,
  124. "count": 1,
  125. "precision": "highp "
  126. },
  127. {
  128. "name": "cc_localShadowBias",
  129. "typename": "vec4",
  130. "type": 16,
  131. "count": 1,
  132. "precision": "highp "
  133. },
  134. {
  135. "name": "cc_reflectionProbeData1",
  136. "typename": "vec4",
  137. "type": 16,
  138. "count": 1,
  139. "precision": "highp "
  140. },
  141. {
  142. "name": "cc_reflectionProbeData2",
  143. "typename": "vec4",
  144. "type": 16,
  145. "count": 1,
  146. "precision": "highp "
  147. },
  148. {
  149. "name": "cc_reflectionProbeBlendData1",
  150. "typename": "vec4",
  151. "type": 16,
  152. "count": 1,
  153. "precision": "highp "
  154. },
  155. {
  156. "name": "cc_reflectionProbeBlendData2",
  157. "typename": "vec4",
  158. "type": 16,
  159. "count": 1,
  160. "precision": "highp "
  161. }
  162. ],
  163. "defines": [
  164. "USE_LOCAL"
  165. ]
  166. }
  167. ],
  168. "samplerTextures": [
  169. {
  170. "name": "cc_spriteTexture",
  171. "typename": "sampler2D",
  172. "type": 28,
  173. "count": 1,
  174. "stageFlags": 16,
  175. "tags": {
  176. "builtin": "local"
  177. },
  178. "defines": []
  179. }
  180. ],
  181. "samplers": [],
  182. "textures": [],
  183. "buffers": [],
  184. "images": [],
  185. "subpassInputs": []
  186. },
  187. {
  188. "rate": 1,
  189. "blocks": [
  190. {
  191. "name": "ALPHA_TEST_DATA",
  192. "stageFlags": 16,
  193. "binding": 0,
  194. "members": [
  195. {
  196. "name": "alphaThreshold",
  197. "type": 13,
  198. "count": 1
  199. }
  200. ],
  201. "defines": [
  202. "USE_ALPHA_TEST"
  203. ]
  204. }
  205. ],
  206. "samplerTextures": [],
  207. "samplers": [],
  208. "textures": [],
  209. "buffers": [],
  210. "images": [],
  211. "subpassInputs": []
  212. },
  213. {
  214. "rate": 2,
  215. "blocks": [],
  216. "samplerTextures": [],
  217. "samplers": [],
  218. "textures": [],
  219. "buffers": [],
  220. "images": [],
  221. "subpassInputs": []
  222. },
  223. {
  224. "rate": 3,
  225. "blocks": [
  226. {
  227. "name": "CCGlobal",
  228. "stageFlags": 1,
  229. "tags": {
  230. "builtin": "global"
  231. },
  232. "members": [
  233. {
  234. "name": "cc_time",
  235. "typename": "vec4",
  236. "type": 16,
  237. "count": 1,
  238. "precision": "highp "
  239. },
  240. {
  241. "name": "cc_screenSize",
  242. "typename": "vec4",
  243. "type": 16,
  244. "count": 1,
  245. "precision": "mediump "
  246. },
  247. {
  248. "name": "cc_nativeSize",
  249. "typename": "vec4",
  250. "type": 16,
  251. "count": 1,
  252. "precision": "mediump "
  253. },
  254. {
  255. "name": "cc_probeInfo",
  256. "typename": "vec4",
  257. "type": 16,
  258. "count": 1,
  259. "precision": "mediump "
  260. },
  261. {
  262. "name": "cc_debug_view_mode",
  263. "typename": "vec4",
  264. "type": 16,
  265. "count": 1,
  266. "precision": "mediump "
  267. }
  268. ],
  269. "defines": []
  270. },
  271. {
  272. "name": "CCCamera",
  273. "stageFlags": 1,
  274. "tags": {
  275. "builtin": "global"
  276. },
  277. "members": [
  278. {
  279. "name": "cc_matView",
  280. "typename": "mat4",
  281. "type": 25,
  282. "count": 1,
  283. "precision": "highp "
  284. },
  285. {
  286. "name": "cc_matViewInv",
  287. "typename": "mat4",
  288. "type": 25,
  289. "count": 1,
  290. "precision": "highp "
  291. },
  292. {
  293. "name": "cc_matProj",
  294. "typename": "mat4",
  295. "type": 25,
  296. "count": 1,
  297. "precision": "highp "
  298. },
  299. {
  300. "name": "cc_matProjInv",
  301. "typename": "mat4",
  302. "type": 25,
  303. "count": 1,
  304. "precision": "highp "
  305. },
  306. {
  307. "name": "cc_matViewProj",
  308. "typename": "mat4",
  309. "type": 25,
  310. "count": 1,
  311. "precision": "highp "
  312. },
  313. {
  314. "name": "cc_matViewProjInv",
  315. "typename": "mat4",
  316. "type": 25,
  317. "count": 1,
  318. "precision": "highp "
  319. },
  320. {
  321. "name": "cc_cameraPos",
  322. "typename": "vec4",
  323. "type": 16,
  324. "count": 1,
  325. "precision": "highp "
  326. },
  327. {
  328. "name": "cc_surfaceTransform",
  329. "typename": "vec4",
  330. "type": 16,
  331. "count": 1,
  332. "precision": "mediump "
  333. },
  334. {
  335. "name": "cc_screenScale",
  336. "typename": "vec4",
  337. "type": 16,
  338. "count": 1,
  339. "precision": "mediump "
  340. },
  341. {
  342. "name": "cc_exposure",
  343. "typename": "vec4",
  344. "type": 16,
  345. "count": 1,
  346. "precision": "mediump "
  347. },
  348. {
  349. "name": "cc_mainLitDir",
  350. "typename": "vec4",
  351. "type": 16,
  352. "count": 1,
  353. "precision": "mediump "
  354. },
  355. {
  356. "name": "cc_mainLitColor",
  357. "typename": "vec4",
  358. "type": 16,
  359. "count": 1,
  360. "precision": "mediump "
  361. },
  362. {
  363. "name": "cc_ambientSky",
  364. "typename": "vec4",
  365. "type": 16,
  366. "count": 1,
  367. "precision": "mediump "
  368. },
  369. {
  370. "name": "cc_ambientGround",
  371. "typename": "vec4",
  372. "type": 16,
  373. "count": 1,
  374. "precision": "mediump "
  375. },
  376. {
  377. "name": "cc_fogColor",
  378. "typename": "vec4",
  379. "type": 16,
  380. "count": 1,
  381. "precision": "mediump "
  382. },
  383. {
  384. "name": "cc_fogBase",
  385. "typename": "vec4",
  386. "type": 16,
  387. "count": 1,
  388. "precision": "mediump "
  389. },
  390. {
  391. "name": "cc_fogAdd",
  392. "typename": "vec4",
  393. "type": 16,
  394. "count": 1,
  395. "precision": "mediump "
  396. },
  397. {
  398. "name": "cc_nearFar",
  399. "typename": "vec4",
  400. "type": 16,
  401. "count": 1,
  402. "precision": "mediump "
  403. },
  404. {
  405. "name": "cc_viewPort",
  406. "typename": "vec4",
  407. "type": 16,
  408. "count": 1,
  409. "precision": "mediump "
  410. }
  411. ],
  412. "defines": []
  413. }
  414. ],
  415. "samplerTextures": [],
  416. "samplers": [],
  417. "textures": [],
  418. "buffers": [],
  419. "images": [],
  420. "subpassInputs": []
  421. }
  422. ],
  423. "glsl1": {
  424. "vert": "\nprecision highp float;\nuniform highp mat4 cc_matViewProj;\n#if USE_LOCAL\n uniform highp mat4 cc_matWorld;\n#endif\nattribute vec3 a_position;\nattribute vec2 a_texCoord;\nattribute vec4 a_color;\nvarying vec4 v_light;\nvarying vec2 uv0;\n#if TWO_COLORED\n attribute vec4 a_color2;\n varying vec4 v_dark;\n#endif\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n #if USE_LOCAL\n pos = cc_matWorld * pos;\n #endif\n pos = cc_matViewProj * pos;\n uv0 = a_texCoord;\n v_light = a_color;\n #if TWO_COLORED\n v_dark = a_color2;\n #endif\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  425. "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_light;\n#if TWO_COLORED\n varying vec4 v_dark;\n#endif\nvarying vec2 uv0;\nuniform sampler2D cc_spriteTexture;\nvec4 frag () {\n vec4 o = vec4(1, 1, 1, 1);\n #if TWO_COLORED\n vec4 texColor = vec4(1, 1, 1, 1);\n texColor *= texture2D(cc_spriteTexture, uv0);\n o.a = texColor.a * v_light.a;\n o.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n o *= texture2D(cc_spriteTexture, uv0);\n o *= v_light;\n #endif\n ALPHA_TEST(o);\n return o;\n}\nvoid main() { gl_FragColor = frag(); }"
  426. },
  427. "builtins": {
  428. "globals": {
  429. "blocks": [
  430. {
  431. "name": "CCGlobal",
  432. "defines": []
  433. },
  434. {
  435. "name": "CCCamera",
  436. "defines": []
  437. }
  438. ],
  439. "samplerTextures": [],
  440. "buffers": [],
  441. "images": []
  442. },
  443. "locals": {
  444. "blocks": [
  445. {
  446. "name": "CCLocal",
  447. "defines": [
  448. "USE_LOCAL"
  449. ]
  450. }
  451. ],
  452. "samplerTextures": [
  453. {
  454. "name": "cc_spriteTexture",
  455. "defines": []
  456. }
  457. ],
  458. "buffers": [],
  459. "images": []
  460. },
  461. "statistics": {
  462. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 56,
  463. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 1
  464. }
  465. },
  466. "defines": [
  467. {
  468. "name": "USE_LOCAL",
  469. "type": "boolean"
  470. },
  471. {
  472. "name": "TWO_COLORED",
  473. "type": "boolean"
  474. },
  475. {
  476. "name": "USE_ALPHA_TEST",
  477. "type": "boolean"
  478. }
  479. ]
  480. }
  481. ],
  482. [
  483. {
  484. "passes": [
  485. {
  486. "program": "for2d/builtin-spine|sprite-vs:vert|sprite-fs:frag",
  487. "blendState": {
  488. "targets": [
  489. {
  490. "blend": true,
  491. "blendSrc": 2,
  492. "blendDst": 4,
  493. "blendDstAlpha": 4
  494. }
  495. ]
  496. },
  497. "rasterizerState": {
  498. "cullMode": 0
  499. },
  500. "depthStencilState": {
  501. "depthTest": false,
  502. "depthWrite": false
  503. },
  504. "properties": {
  505. "alphaThreshold": {
  506. "type": 13,
  507. "value": [
  508. 0.5
  509. ]
  510. }
  511. }
  512. }
  513. ]
  514. }
  515. ]
  516. ]
  517. ],
  518. 0,
  519. 0,
  520. [],
  521. [],
  522. []
  523. ]