release.json 23 KB

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