release.json 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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-debug-renderer",
  29. [
  30. {
  31. "hash": 2724889405,
  32. "name": "internal/builtin-debug-renderer|debug-renderer-vs:vert|debug-renderer-fs:frag",
  33. "blocks": [],
  34. "samplerTextures": [
  35. {
  36. "name": "mainTexture",
  37. "type": 28,
  38. "count": 1,
  39. "stageFlags": 16,
  40. "binding": 0,
  41. "defines": []
  42. }
  43. ],
  44. "samplers": [],
  45. "textures": [],
  46. "buffers": [],
  47. "images": [],
  48. "subpassInputs": [],
  49. "attributes": [
  50. {
  51. "name": "a_position",
  52. "format": 21,
  53. "location": 0,
  54. "defines": []
  55. },
  56. {
  57. "name": "a_texCoord",
  58. "format": 21,
  59. "location": 1,
  60. "defines": []
  61. },
  62. {
  63. "name": "a_color",
  64. "format": 44,
  65. "location": 2,
  66. "defines": []
  67. }
  68. ],
  69. "fragColors": [
  70. {
  71. "name": "cc_FragColor",
  72. "typename": "vec4",
  73. "type": 16,
  74. "count": 1,
  75. "stageFlags": 16,
  76. "location": 0,
  77. "defines": []
  78. }
  79. ],
  80. "descriptors": [
  81. {
  82. "rate": 0,
  83. "blocks": [],
  84. "samplerTextures": [],
  85. "samplers": [],
  86. "textures": [],
  87. "buffers": [],
  88. "images": [],
  89. "subpassInputs": []
  90. },
  91. {
  92. "rate": 1,
  93. "blocks": [],
  94. "samplerTextures": [
  95. {
  96. "name": "mainTexture",
  97. "type": 28,
  98. "count": 1,
  99. "stageFlags": 16,
  100. "binding": 0,
  101. "defines": []
  102. }
  103. ],
  104. "samplers": [],
  105. "textures": [],
  106. "buffers": [],
  107. "images": [],
  108. "subpassInputs": []
  109. },
  110. {
  111. "rate": 2,
  112. "blocks": [],
  113. "samplerTextures": [],
  114. "samplers": [],
  115. "textures": [],
  116. "buffers": [],
  117. "images": [],
  118. "subpassInputs": []
  119. },
  120. {
  121. "rate": 3,
  122. "blocks": [
  123. {
  124. "name": "CCGlobal",
  125. "stageFlags": 17,
  126. "tags": {
  127. "builtin": "global"
  128. },
  129. "members": [
  130. {
  131. "name": "cc_time",
  132. "typename": "vec4",
  133. "type": 16,
  134. "count": 1,
  135. "precision": "highp "
  136. },
  137. {
  138. "name": "cc_screenSize",
  139. "typename": "vec4",
  140. "type": 16,
  141. "count": 1,
  142. "precision": "mediump "
  143. },
  144. {
  145. "name": "cc_nativeSize",
  146. "typename": "vec4",
  147. "type": 16,
  148. "count": 1,
  149. "precision": "mediump "
  150. },
  151. {
  152. "name": "cc_probeInfo",
  153. "typename": "vec4",
  154. "type": 16,
  155. "count": 1,
  156. "precision": "mediump "
  157. },
  158. {
  159. "name": "cc_debug_view_mode",
  160. "typename": "vec4",
  161. "type": 16,
  162. "count": 1,
  163. "precision": "mediump "
  164. }
  165. ],
  166. "defines": []
  167. },
  168. {
  169. "name": "CCCamera",
  170. "stageFlags": 17,
  171. "tags": {
  172. "builtin": "global"
  173. },
  174. "members": [
  175. {
  176. "name": "cc_matView",
  177. "typename": "mat4",
  178. "type": 25,
  179. "count": 1,
  180. "precision": "highp "
  181. },
  182. {
  183. "name": "cc_matViewInv",
  184. "typename": "mat4",
  185. "type": 25,
  186. "count": 1,
  187. "precision": "highp "
  188. },
  189. {
  190. "name": "cc_matProj",
  191. "typename": "mat4",
  192. "type": 25,
  193. "count": 1,
  194. "precision": "highp "
  195. },
  196. {
  197. "name": "cc_matProjInv",
  198. "typename": "mat4",
  199. "type": 25,
  200. "count": 1,
  201. "precision": "highp "
  202. },
  203. {
  204. "name": "cc_matViewProj",
  205. "typename": "mat4",
  206. "type": 25,
  207. "count": 1,
  208. "precision": "highp "
  209. },
  210. {
  211. "name": "cc_matViewProjInv",
  212. "typename": "mat4",
  213. "type": 25,
  214. "count": 1,
  215. "precision": "highp "
  216. },
  217. {
  218. "name": "cc_cameraPos",
  219. "typename": "vec4",
  220. "type": 16,
  221. "count": 1,
  222. "precision": "highp "
  223. },
  224. {
  225. "name": "cc_surfaceTransform",
  226. "typename": "vec4",
  227. "type": 16,
  228. "count": 1,
  229. "precision": "mediump "
  230. },
  231. {
  232. "name": "cc_screenScale",
  233. "typename": "vec4",
  234. "type": 16,
  235. "count": 1,
  236. "precision": "mediump "
  237. },
  238. {
  239. "name": "cc_exposure",
  240. "typename": "vec4",
  241. "type": 16,
  242. "count": 1,
  243. "precision": "mediump "
  244. },
  245. {
  246. "name": "cc_mainLitDir",
  247. "typename": "vec4",
  248. "type": 16,
  249. "count": 1,
  250. "precision": "mediump "
  251. },
  252. {
  253. "name": "cc_mainLitColor",
  254. "typename": "vec4",
  255. "type": 16,
  256. "count": 1,
  257. "precision": "mediump "
  258. },
  259. {
  260. "name": "cc_ambientSky",
  261. "typename": "vec4",
  262. "type": 16,
  263. "count": 1,
  264. "precision": "mediump "
  265. },
  266. {
  267. "name": "cc_ambientGround",
  268. "typename": "vec4",
  269. "type": 16,
  270. "count": 1,
  271. "precision": "mediump "
  272. },
  273. {
  274. "name": "cc_fogColor",
  275. "typename": "vec4",
  276. "type": 16,
  277. "count": 1,
  278. "precision": "mediump "
  279. },
  280. {
  281. "name": "cc_fogBase",
  282. "typename": "vec4",
  283. "type": 16,
  284. "count": 1,
  285. "precision": "mediump "
  286. },
  287. {
  288. "name": "cc_fogAdd",
  289. "typename": "vec4",
  290. "type": 16,
  291. "count": 1,
  292. "precision": "mediump "
  293. },
  294. {
  295. "name": "cc_nearFar",
  296. "typename": "vec4",
  297. "type": 16,
  298. "count": 1,
  299. "precision": "mediump "
  300. },
  301. {
  302. "name": "cc_viewPort",
  303. "typename": "vec4",
  304. "type": 16,
  305. "count": 1,
  306. "precision": "mediump "
  307. }
  308. ],
  309. "defines": []
  310. }
  311. ],
  312. "samplerTextures": [],
  313. "samplers": [],
  314. "textures": [],
  315. "buffers": [],
  316. "images": [],
  317. "subpassInputs": []
  318. }
  319. ],
  320. "glsl1": {
  321. "vert": "\nprecision mediump float;\nuniform mediump vec4 cc_screenSize;\nuniform highp vec4 cc_cameraPos;\n uniform mediump vec4 cc_surfaceTransform;\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nattribute vec4 a_color;\nvarying vec2 v_texCoord;\nvarying vec4 v_color;\nvec4 vert () {\n int orientation = int(cc_surfaceTransform.x);\n vec4 transform = vec4(1.0, 0.0, 0.0, 1.0);\n if (orientation == 0) {\n transform = vec4(1.0, 0.0, 0.0, 1.0);\n } else if (orientation == 1) {\n transform = vec4(0.0, 1.0, -1.0, 0.0);\n } else if (orientation == 2) {\n transform = vec4(-1.0, 0.0, 0.0, -1.0);\n } else if (orientation == 3) {\n transform = vec4(0.0, -1.0, 1.0, 0.0);\n }\n vec2 invScreenSize = (orientation == 1 || orientation == 3) ? cc_screenSize.wz : cc_screenSize.zw;\n vec2 position = a_position * invScreenSize;\n position = position * vec2(2.0, -2.0) + vec2(-1.0, 1.0);\n vec2 clipPos = vec2(dot(transform.xy, position), dot(transform.zw, position));\n clipPos = cc_cameraPos.w == 0.0 ? vec2(clipPos.x, -clipPos.y) : clipPos;\n v_texCoord = a_texCoord;\n v_color = a_color;\n return vec4(clipPos, 0.0, 1.0);\n}\nvoid main() { gl_Position = vert(); }",
  322. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec2 v_texCoord;\nvarying vec4 v_color;\nuniform sampler2D mainTexture;\nvec4 frag () {\n vec4 color = vec4(v_color.rgb, v_color.a * texture2D(mainTexture, v_texCoord).r);\n return CCFragOutput(color);\n}\nvoid main() { gl_FragColor = frag(); }"
  323. },
  324. "builtins": {
  325. "globals": {
  326. "blocks": [
  327. {
  328. "name": "CCGlobal",
  329. "defines": []
  330. },
  331. {
  332. "name": "CCCamera",
  333. "defines": []
  334. }
  335. ],
  336. "samplerTextures": [],
  337. "buffers": [],
  338. "images": []
  339. },
  340. "locals": {
  341. "blocks": [],
  342. "samplerTextures": [],
  343. "buffers": [],
  344. "images": []
  345. },
  346. "statistics": {
  347. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  348. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  349. }
  350. },
  351. "defines": []
  352. }
  353. ],
  354. [
  355. {
  356. "passes": [
  357. {
  358. "program": "internal/builtin-debug-renderer|debug-renderer-vs:vert|debug-renderer-fs:frag",
  359. "priority": 255,
  360. "blendState": {
  361. "targets": [
  362. {
  363. "blend": true,
  364. "blendSrc": 2,
  365. "blendDst": 4,
  366. "blendDstAlpha": 4
  367. }
  368. ]
  369. },
  370. "rasterizerState": {
  371. "cullMode": 0
  372. },
  373. "depthStencilState": {
  374. "depthTest": false,
  375. "depthWrite": false
  376. }
  377. }
  378. ]
  379. }
  380. ]
  381. ]
  382. ],
  383. 0,
  384. 0,
  385. [],
  386. [],
  387. []
  388. ]