debug.json 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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. "internal/builtin-graphics",
  29. [
  30. {
  31. "hash": 586721616,
  32. "name": "internal/builtin-graphics|vs:vert|fs:frag",
  33. "blocks": [],
  34. "samplerTextures": [],
  35. "samplers": [],
  36. "textures": [],
  37. "buffers": [],
  38. "images": [],
  39. "subpassInputs": [],
  40. "attributes": [
  41. {
  42. "name": "a_position",
  43. "format": 32,
  44. "location": 0,
  45. "defines": []
  46. },
  47. {
  48. "name": "a_color",
  49. "format": 44,
  50. "location": 1,
  51. "defines": []
  52. },
  53. {
  54. "name": "a_dist",
  55. "format": 11,
  56. "location": 2,
  57. "defines": []
  58. }
  59. ],
  60. "fragColors": [
  61. {
  62. "name": "cc_FragColor",
  63. "typename": "vec4",
  64. "type": 16,
  65. "count": 1,
  66. "stageFlags": 16,
  67. "location": 0,
  68. "defines": []
  69. }
  70. ],
  71. "descriptors": [
  72. {
  73. "rate": 0,
  74. "blocks": [
  75. {
  76. "name": "CCLocal",
  77. "stageFlags": 1,
  78. "tags": {
  79. "builtin": "local"
  80. },
  81. "members": [
  82. {
  83. "name": "cc_matWorld",
  84. "typename": "mat4",
  85. "type": 25,
  86. "count": 1,
  87. "precision": "highp "
  88. },
  89. {
  90. "name": "cc_matWorldIT",
  91. "typename": "mat4",
  92. "type": 25,
  93. "count": 1,
  94. "precision": "highp "
  95. },
  96. {
  97. "name": "cc_lightingMapUVParam",
  98. "typename": "vec4",
  99. "type": 16,
  100. "count": 1,
  101. "precision": "highp "
  102. },
  103. {
  104. "name": "cc_localShadowBias",
  105. "typename": "vec4",
  106. "type": 16,
  107. "count": 1,
  108. "precision": "highp "
  109. },
  110. {
  111. "name": "cc_reflectionProbeData1",
  112. "typename": "vec4",
  113. "type": 16,
  114. "count": 1,
  115. "precision": "highp "
  116. },
  117. {
  118. "name": "cc_reflectionProbeData2",
  119. "typename": "vec4",
  120. "type": 16,
  121. "count": 1,
  122. "precision": "highp "
  123. },
  124. {
  125. "name": "cc_reflectionProbeBlendData1",
  126. "typename": "vec4",
  127. "type": 16,
  128. "count": 1,
  129. "precision": "highp "
  130. },
  131. {
  132. "name": "cc_reflectionProbeBlendData2",
  133. "typename": "vec4",
  134. "type": 16,
  135. "count": 1,
  136. "precision": "highp "
  137. }
  138. ],
  139. "defines": []
  140. }
  141. ],
  142. "samplerTextures": [],
  143. "samplers": [],
  144. "textures": [],
  145. "buffers": [],
  146. "images": [],
  147. "subpassInputs": []
  148. },
  149. {
  150. "rate": 1,
  151. "blocks": [],
  152. "samplerTextures": [],
  153. "samplers": [],
  154. "textures": [],
  155. "buffers": [],
  156. "images": [],
  157. "subpassInputs": []
  158. },
  159. {
  160. "rate": 2,
  161. "blocks": [],
  162. "samplerTextures": [],
  163. "samplers": [],
  164. "textures": [],
  165. "buffers": [],
  166. "images": [],
  167. "subpassInputs": []
  168. },
  169. {
  170. "rate": 3,
  171. "blocks": [
  172. {
  173. "name": "CCGlobal",
  174. "stageFlags": 1,
  175. "tags": {
  176. "builtin": "global"
  177. },
  178. "members": [
  179. {
  180. "name": "cc_time",
  181. "typename": "vec4",
  182. "type": 16,
  183. "count": 1,
  184. "precision": "highp "
  185. },
  186. {
  187. "name": "cc_screenSize",
  188. "typename": "vec4",
  189. "type": 16,
  190. "count": 1,
  191. "precision": "mediump "
  192. },
  193. {
  194. "name": "cc_nativeSize",
  195. "typename": "vec4",
  196. "type": 16,
  197. "count": 1,
  198. "precision": "mediump "
  199. },
  200. {
  201. "name": "cc_probeInfo",
  202. "typename": "vec4",
  203. "type": 16,
  204. "count": 1,
  205. "precision": "mediump "
  206. },
  207. {
  208. "name": "cc_debug_view_mode",
  209. "typename": "vec4",
  210. "type": 16,
  211. "count": 1,
  212. "precision": "mediump "
  213. }
  214. ],
  215. "defines": []
  216. },
  217. {
  218. "name": "CCCamera",
  219. "stageFlags": 1,
  220. "tags": {
  221. "builtin": "global"
  222. },
  223. "members": [
  224. {
  225. "name": "cc_matView",
  226. "typename": "mat4",
  227. "type": 25,
  228. "count": 1,
  229. "precision": "highp "
  230. },
  231. {
  232. "name": "cc_matViewInv",
  233. "typename": "mat4",
  234. "type": 25,
  235. "count": 1,
  236. "precision": "highp "
  237. },
  238. {
  239. "name": "cc_matProj",
  240. "typename": "mat4",
  241. "type": 25,
  242. "count": 1,
  243. "precision": "highp "
  244. },
  245. {
  246. "name": "cc_matProjInv",
  247. "typename": "mat4",
  248. "type": 25,
  249. "count": 1,
  250. "precision": "highp "
  251. },
  252. {
  253. "name": "cc_matViewProj",
  254. "typename": "mat4",
  255. "type": 25,
  256. "count": 1,
  257. "precision": "highp "
  258. },
  259. {
  260. "name": "cc_matViewProjInv",
  261. "typename": "mat4",
  262. "type": 25,
  263. "count": 1,
  264. "precision": "highp "
  265. },
  266. {
  267. "name": "cc_cameraPos",
  268. "typename": "vec4",
  269. "type": 16,
  270. "count": 1,
  271. "precision": "highp "
  272. },
  273. {
  274. "name": "cc_surfaceTransform",
  275. "typename": "vec4",
  276. "type": 16,
  277. "count": 1,
  278. "precision": "mediump "
  279. },
  280. {
  281. "name": "cc_screenScale",
  282. "typename": "vec4",
  283. "type": 16,
  284. "count": 1,
  285. "precision": "mediump "
  286. },
  287. {
  288. "name": "cc_exposure",
  289. "typename": "vec4",
  290. "type": 16,
  291. "count": 1,
  292. "precision": "mediump "
  293. },
  294. {
  295. "name": "cc_mainLitDir",
  296. "typename": "vec4",
  297. "type": 16,
  298. "count": 1,
  299. "precision": "mediump "
  300. },
  301. {
  302. "name": "cc_mainLitColor",
  303. "typename": "vec4",
  304. "type": 16,
  305. "count": 1,
  306. "precision": "mediump "
  307. },
  308. {
  309. "name": "cc_ambientSky",
  310. "typename": "vec4",
  311. "type": 16,
  312. "count": 1,
  313. "precision": "mediump "
  314. },
  315. {
  316. "name": "cc_ambientGround",
  317. "typename": "vec4",
  318. "type": 16,
  319. "count": 1,
  320. "precision": "mediump "
  321. },
  322. {
  323. "name": "cc_fogColor",
  324. "typename": "vec4",
  325. "type": 16,
  326. "count": 1,
  327. "precision": "mediump "
  328. },
  329. {
  330. "name": "cc_fogBase",
  331. "typename": "vec4",
  332. "type": 16,
  333. "count": 1,
  334. "precision": "mediump "
  335. },
  336. {
  337. "name": "cc_fogAdd",
  338. "typename": "vec4",
  339. "type": 16,
  340. "count": 1,
  341. "precision": "mediump "
  342. },
  343. {
  344. "name": "cc_nearFar",
  345. "typename": "vec4",
  346. "type": 16,
  347. "count": 1,
  348. "precision": "mediump "
  349. },
  350. {
  351. "name": "cc_viewPort",
  352. "typename": "vec4",
  353. "type": 16,
  354. "count": 1,
  355. "precision": "mediump "
  356. }
  357. ],
  358. "defines": []
  359. }
  360. ],
  361. "samplerTextures": [],
  362. "samplers": [],
  363. "textures": [],
  364. "buffers": [],
  365. "images": [],
  366. "subpassInputs": []
  367. }
  368. ],
  369. "glsl1": {
  370. "vert": "\nprecision highp float;\nuniform highp mat4 cc_matViewProj;\nuniform highp mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nattribute float a_dist;\nvarying float v_dist;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  371. "frag": "\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives: enable\n#endif\nprecision highp float;\nvarying vec4 v_color;\nvarying float v_dist;\nvec4 frag () {\n vec4 o = v_color;\n #ifdef GL_OES_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n return o;\n}\nvoid main() { gl_FragColor = frag(); }"
  372. },
  373. "builtins": {
  374. "globals": {
  375. "blocks": [
  376. {
  377. "name": "CCGlobal",
  378. "defines": []
  379. },
  380. {
  381. "name": "CCCamera",
  382. "defines": []
  383. }
  384. ],
  385. "samplerTextures": [],
  386. "buffers": [],
  387. "images": []
  388. },
  389. "locals": {
  390. "blocks": [
  391. {
  392. "name": "CCLocal",
  393. "defines": []
  394. }
  395. ],
  396. "samplerTextures": [],
  397. "buffers": [],
  398. "images": []
  399. },
  400. "statistics": {
  401. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 56,
  402. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
  403. }
  404. },
  405. "defines": []
  406. }
  407. ],
  408. [
  409. {
  410. "passes": [
  411. {
  412. "program": "internal/builtin-graphics|vs:vert|fs:frag",
  413. "blendState": {
  414. "targets": [
  415. {
  416. "blend": true,
  417. "blendSrc": 1,
  418. "blendDst": 4,
  419. "blendSrcAlpha": 1,
  420. "blendDstAlpha": 4
  421. }
  422. ]
  423. },
  424. "rasterizerState": {
  425. "cullMode": 0
  426. },
  427. "depthStencilState": {
  428. "depthTest": false,
  429. "depthWrite": false
  430. }
  431. }
  432. ]
  433. }
  434. ]
  435. ]
  436. ],
  437. 0,
  438. 0,
  439. [],
  440. [],
  441. []
  442. ]