debug.json 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  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. "pipeline/post-process/tone-mapping",
  29. [
  30. {
  31. "hash": 879047950,
  32. "name": "pipeline/post-process/tone-mapping|vs|fs-tonemap",
  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_normal",
  49. "format": 32,
  50. "location": 1,
  51. "defines": []
  52. },
  53. {
  54. "name": "a_texCoord",
  55. "format": 21,
  56. "location": 2,
  57. "defines": []
  58. },
  59. {
  60. "name": "a_tangent",
  61. "format": 44,
  62. "location": 3,
  63. "defines": []
  64. },
  65. {
  66. "name": "a_joints",
  67. "location": 4,
  68. "defines": [
  69. "CC_USE_SKINNING"
  70. ]
  71. },
  72. {
  73. "name": "a_weights",
  74. "format": 44,
  75. "location": 5,
  76. "defines": [
  77. "CC_USE_SKINNING"
  78. ]
  79. },
  80. {
  81. "name": "a_jointAnimInfo",
  82. "format": 44,
  83. "isInstanced": true,
  84. "location": 6,
  85. "defines": [
  86. "USE_INSTANCING",
  87. "CC_USE_BAKED_ANIMATION"
  88. ]
  89. },
  90. {
  91. "name": "a_matWorld0",
  92. "format": 44,
  93. "isInstanced": true,
  94. "location": 7,
  95. "defines": [
  96. "USE_INSTANCING"
  97. ]
  98. },
  99. {
  100. "name": "a_matWorld1",
  101. "format": 44,
  102. "isInstanced": true,
  103. "location": 8,
  104. "defines": [
  105. "USE_INSTANCING"
  106. ]
  107. },
  108. {
  109. "name": "a_matWorld2",
  110. "format": 44,
  111. "isInstanced": true,
  112. "location": 9,
  113. "defines": [
  114. "USE_INSTANCING"
  115. ]
  116. },
  117. {
  118. "name": "a_lightingMapUVParam",
  119. "format": 44,
  120. "isInstanced": true,
  121. "location": 10,
  122. "defines": [
  123. "USE_INSTANCING",
  124. "CC_USE_LIGHTMAP"
  125. ]
  126. },
  127. {
  128. "name": "a_localShadowBiasAndProbeId",
  129. "format": 44,
  130. "isInstanced": true,
  131. "location": 11,
  132. "defines": [
  133. "USE_INSTANCING"
  134. ]
  135. },
  136. {
  137. "name": "a_reflectionProbeData",
  138. "format": 44,
  139. "isInstanced": true,
  140. "location": 12,
  141. "defines": [
  142. "USE_INSTANCING",
  143. "CC_USE_REFLECTION_PROBE"
  144. ]
  145. },
  146. {
  147. "name": "a_sh_linear_const_r",
  148. "format": 44,
  149. "isInstanced": true,
  150. "location": 13,
  151. "defines": [
  152. "USE_INSTANCING",
  153. "CC_USE_LIGHT_PROBE"
  154. ]
  155. },
  156. {
  157. "name": "a_sh_linear_const_g",
  158. "format": 44,
  159. "isInstanced": true,
  160. "location": 14,
  161. "defines": [
  162. "USE_INSTANCING",
  163. "CC_USE_LIGHT_PROBE"
  164. ]
  165. },
  166. {
  167. "name": "a_sh_linear_const_b",
  168. "format": 44,
  169. "isInstanced": true,
  170. "location": 15,
  171. "defines": [
  172. "USE_INSTANCING",
  173. "CC_USE_LIGHT_PROBE"
  174. ]
  175. },
  176. {
  177. "name": "a_vertexId",
  178. "format": 11,
  179. "location": 16,
  180. "defines": [
  181. "CC_USE_MORPH"
  182. ]
  183. }
  184. ],
  185. "fragColors": [
  186. {
  187. "name": "fragColor",
  188. "typename": "vec4",
  189. "type": 16,
  190. "count": 1,
  191. "stageFlags": 16,
  192. "location": 0,
  193. "defines": []
  194. }
  195. ],
  196. "descriptors": [
  197. {
  198. "rate": 0,
  199. "blocks": [],
  200. "samplerTextures": [],
  201. "samplers": [],
  202. "textures": [],
  203. "buffers": [],
  204. "images": [],
  205. "subpassInputs": []
  206. },
  207. {
  208. "rate": 1,
  209. "blocks": [],
  210. "samplerTextures": [],
  211. "samplers": [],
  212. "textures": [],
  213. "buffers": [],
  214. "images": [],
  215. "subpassInputs": []
  216. },
  217. {
  218. "rate": 2,
  219. "blocks": [],
  220. "samplerTextures": [],
  221. "samplers": [],
  222. "textures": [],
  223. "buffers": [],
  224. "images": [],
  225. "subpassInputs": []
  226. },
  227. {
  228. "rate": 3,
  229. "blocks": [
  230. {
  231. "name": "Pipeline",
  232. "stageFlags": 1,
  233. "binding": 0,
  234. "members": [
  235. {
  236. "name": "g_platform",
  237. "type": 16,
  238. "count": 1
  239. }
  240. ],
  241. "defines": []
  242. }
  243. ],
  244. "samplerTextures": [
  245. {
  246. "name": "inputTexture",
  247. "type": 28,
  248. "count": 1,
  249. "stageFlags": 16,
  250. "binding": 1,
  251. "defines": []
  252. }
  253. ],
  254. "samplers": [],
  255. "textures": [],
  256. "buffers": [],
  257. "images": [],
  258. "subpassInputs": []
  259. }
  260. ],
  261. "glsl1": {
  262. "vert": "\nprecision highp float;\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\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nattribute vec3 a_position;\nattribute vec3 a_normal;\nattribute vec2 a_texCoord;\nattribute vec4 a_tangent;\n#if CC_USE_SKINNING\n attribute vec4 a_joints;\n attribute vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n attribute highp vec4 a_jointAnimInfo;\n #endif\n attribute vec4 a_matWorld0;\n attribute vec4 a_matWorld1;\n attribute vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n attribute vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n attribute vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n attribute vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n attribute vec4 a_sh_linear_const_r;\n attribute vec4 a_sh_linear_const_g;\n attribute vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n attribute float a_vertexId;\n#endif\n uniform vec4 g_platform;\nvarying vec2 v_uv;\nvoid main () {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n (In.position).y = g_platform.w == 0.0 ? -(In.position).y : (In.position).y;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
  263. "frag": "\nprecision highp float;\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 HDRToLDR(vec3 color)\n{\n #if CC_USE_HDR\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (IS_DEBUG_VIEW_COMPOSITE_ENABLE_TONE_MAPPING)\n #endif\n {\n #if CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n }\n #endif\n return color;\n}\nvarying vec2 v_uv;\nuniform sampler2D inputTexture;\nvoid main () {\n gl_FragColor = texture2D(inputTexture, v_uv);\n #if CC_USE_FLOAT_OUTPUT\n gl_FragColor.rgb = HDRToLDR(gl_FragColor.rgb);\n gl_FragColor.rgb = LinearToSRGB(gl_FragColor.rgb);\n #endif\n}"
  264. },
  265. "builtins": {
  266. "globals": {
  267. "blocks": [],
  268. "samplerTextures": [],
  269. "buffers": [],
  270. "images": []
  271. },
  272. "locals": {
  273. "blocks": [],
  274. "samplerTextures": [],
  275. "buffers": [],
  276. "images": []
  277. },
  278. "statistics": {
  279. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 1,
  280. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
  281. }
  282. },
  283. "defines": [
  284. {
  285. "name": "USE_INSTANCING",
  286. "type": "boolean"
  287. },
  288. {
  289. "name": "CC_USE_SKINNING",
  290. "type": "boolean"
  291. },
  292. {
  293. "name": "CC_USE_BAKED_ANIMATION",
  294. "type": "boolean"
  295. },
  296. {
  297. "name": "CC_USE_LIGHTMAP",
  298. "type": "boolean"
  299. },
  300. {
  301. "name": "CC_USE_REFLECTION_PROBE",
  302. "type": "boolean"
  303. },
  304. {
  305. "name": "CC_RECEIVE_SHADOW",
  306. "type": "boolean"
  307. },
  308. {
  309. "name": "CC_USE_LIGHT_PROBE",
  310. "type": "boolean"
  311. },
  312. {
  313. "name": "CC_USE_MORPH",
  314. "type": "boolean"
  315. },
  316. {
  317. "name": "CC_USE_DEBUG_VIEW",
  318. "type": "number",
  319. "range": [
  320. 0,
  321. 3
  322. ]
  323. },
  324. {
  325. "name": "CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC",
  326. "type": "boolean"
  327. },
  328. {
  329. "name": "CC_SURFACES_ENABLE_DEBUG_VIEW",
  330. "type": "boolean"
  331. },
  332. {
  333. "name": "CC_USE_HDR",
  334. "type": "boolean"
  335. },
  336. {
  337. "name": "CC_TONE_MAPPING_TYPE",
  338. "type": "number",
  339. "range": [
  340. 0,
  341. 3
  342. ]
  343. },
  344. {
  345. "name": "HDR_TONE_MAPPING_ACES",
  346. "type": "boolean"
  347. },
  348. {
  349. "name": "CC_USE_FLOAT_OUTPUT",
  350. "type": "boolean"
  351. }
  352. ]
  353. },
  354. {
  355. "hash": 4126709291,
  356. "name": "pipeline/post-process/tone-mapping|vs|fs-copy",
  357. "blocks": [],
  358. "samplerTextures": [],
  359. "samplers": [],
  360. "textures": [],
  361. "buffers": [],
  362. "images": [],
  363. "subpassInputs": [],
  364. "attributes": [
  365. {
  366. "name": "a_position",
  367. "format": 32,
  368. "location": 0,
  369. "defines": []
  370. },
  371. {
  372. "name": "a_normal",
  373. "format": 32,
  374. "location": 1,
  375. "defines": []
  376. },
  377. {
  378. "name": "a_texCoord",
  379. "format": 21,
  380. "location": 2,
  381. "defines": []
  382. },
  383. {
  384. "name": "a_tangent",
  385. "format": 44,
  386. "location": 3,
  387. "defines": []
  388. },
  389. {
  390. "name": "a_joints",
  391. "location": 4,
  392. "defines": [
  393. "CC_USE_SKINNING"
  394. ]
  395. },
  396. {
  397. "name": "a_weights",
  398. "format": 44,
  399. "location": 5,
  400. "defines": [
  401. "CC_USE_SKINNING"
  402. ]
  403. },
  404. {
  405. "name": "a_jointAnimInfo",
  406. "format": 44,
  407. "isInstanced": true,
  408. "location": 6,
  409. "defines": [
  410. "USE_INSTANCING",
  411. "CC_USE_BAKED_ANIMATION"
  412. ]
  413. },
  414. {
  415. "name": "a_matWorld0",
  416. "format": 44,
  417. "isInstanced": true,
  418. "location": 7,
  419. "defines": [
  420. "USE_INSTANCING"
  421. ]
  422. },
  423. {
  424. "name": "a_matWorld1",
  425. "format": 44,
  426. "isInstanced": true,
  427. "location": 8,
  428. "defines": [
  429. "USE_INSTANCING"
  430. ]
  431. },
  432. {
  433. "name": "a_matWorld2",
  434. "format": 44,
  435. "isInstanced": true,
  436. "location": 9,
  437. "defines": [
  438. "USE_INSTANCING"
  439. ]
  440. },
  441. {
  442. "name": "a_lightingMapUVParam",
  443. "format": 44,
  444. "isInstanced": true,
  445. "location": 10,
  446. "defines": [
  447. "USE_INSTANCING",
  448. "CC_USE_LIGHTMAP"
  449. ]
  450. },
  451. {
  452. "name": "a_localShadowBiasAndProbeId",
  453. "format": 44,
  454. "isInstanced": true,
  455. "location": 11,
  456. "defines": [
  457. "USE_INSTANCING"
  458. ]
  459. },
  460. {
  461. "name": "a_reflectionProbeData",
  462. "format": 44,
  463. "isInstanced": true,
  464. "location": 12,
  465. "defines": [
  466. "USE_INSTANCING",
  467. "CC_USE_REFLECTION_PROBE"
  468. ]
  469. },
  470. {
  471. "name": "a_sh_linear_const_r",
  472. "format": 44,
  473. "isInstanced": true,
  474. "location": 13,
  475. "defines": [
  476. "USE_INSTANCING",
  477. "CC_USE_LIGHT_PROBE"
  478. ]
  479. },
  480. {
  481. "name": "a_sh_linear_const_g",
  482. "format": 44,
  483. "isInstanced": true,
  484. "location": 14,
  485. "defines": [
  486. "USE_INSTANCING",
  487. "CC_USE_LIGHT_PROBE"
  488. ]
  489. },
  490. {
  491. "name": "a_sh_linear_const_b",
  492. "format": 44,
  493. "isInstanced": true,
  494. "location": 15,
  495. "defines": [
  496. "USE_INSTANCING",
  497. "CC_USE_LIGHT_PROBE"
  498. ]
  499. },
  500. {
  501. "name": "a_vertexId",
  502. "format": 11,
  503. "location": 16,
  504. "defines": [
  505. "CC_USE_MORPH"
  506. ]
  507. }
  508. ],
  509. "fragColors": [
  510. {
  511. "name": "fragColor",
  512. "typename": "vec4",
  513. "type": 16,
  514. "count": 1,
  515. "stageFlags": 16,
  516. "location": 0,
  517. "defines": []
  518. }
  519. ],
  520. "descriptors": [
  521. {
  522. "rate": 0,
  523. "blocks": [],
  524. "samplerTextures": [],
  525. "samplers": [],
  526. "textures": [],
  527. "buffers": [],
  528. "images": [],
  529. "subpassInputs": []
  530. },
  531. {
  532. "rate": 1,
  533. "blocks": [],
  534. "samplerTextures": [],
  535. "samplers": [],
  536. "textures": [],
  537. "buffers": [],
  538. "images": [],
  539. "subpassInputs": []
  540. },
  541. {
  542. "rate": 2,
  543. "blocks": [],
  544. "samplerTextures": [],
  545. "samplers": [],
  546. "textures": [],
  547. "buffers": [],
  548. "images": [],
  549. "subpassInputs": []
  550. },
  551. {
  552. "rate": 3,
  553. "blocks": [
  554. {
  555. "name": "Pipeline",
  556. "stageFlags": 1,
  557. "binding": 0,
  558. "members": [
  559. {
  560. "name": "g_platform",
  561. "type": 16,
  562. "count": 1
  563. }
  564. ],
  565. "defines": []
  566. }
  567. ],
  568. "samplerTextures": [
  569. {
  570. "name": "inputTexture",
  571. "type": 28,
  572. "count": 1,
  573. "stageFlags": 16,
  574. "binding": 1,
  575. "defines": []
  576. }
  577. ],
  578. "samplers": [],
  579. "textures": [],
  580. "buffers": [],
  581. "images": [],
  582. "subpassInputs": []
  583. }
  584. ],
  585. "glsl1": {
  586. "vert": "\nprecision highp float;\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\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nattribute vec3 a_position;\nattribute vec3 a_normal;\nattribute vec2 a_texCoord;\nattribute vec4 a_tangent;\n#if CC_USE_SKINNING\n attribute vec4 a_joints;\n attribute vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n attribute highp vec4 a_jointAnimInfo;\n #endif\n attribute vec4 a_matWorld0;\n attribute vec4 a_matWorld1;\n attribute vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n attribute vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n attribute vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n attribute vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n attribute vec4 a_sh_linear_const_r;\n attribute vec4 a_sh_linear_const_g;\n attribute vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n attribute float a_vertexId;\n#endif\n uniform vec4 g_platform;\nvarying vec2 v_uv;\nvoid main () {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n (In.position).y = g_platform.w == 0.0 ? -(In.position).y : (In.position).y;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
  587. "frag": "\nprecision highp float;\nvarying vec2 v_uv;\nuniform sampler2D inputTexture;\nvoid main () {\n gl_FragColor = texture2D(inputTexture, v_uv);\n}"
  588. },
  589. "builtins": {
  590. "globals": {
  591. "blocks": [],
  592. "samplerTextures": [],
  593. "buffers": [],
  594. "images": []
  595. },
  596. "locals": {
  597. "blocks": [],
  598. "samplerTextures": [],
  599. "buffers": [],
  600. "images": []
  601. },
  602. "statistics": {
  603. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 1,
  604. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
  605. }
  606. },
  607. "defines": [
  608. {
  609. "name": "USE_INSTANCING",
  610. "type": "boolean"
  611. },
  612. {
  613. "name": "CC_USE_SKINNING",
  614. "type": "boolean"
  615. },
  616. {
  617. "name": "CC_USE_BAKED_ANIMATION",
  618. "type": "boolean"
  619. },
  620. {
  621. "name": "CC_USE_LIGHTMAP",
  622. "type": "boolean"
  623. },
  624. {
  625. "name": "CC_USE_REFLECTION_PROBE",
  626. "type": "boolean"
  627. },
  628. {
  629. "name": "CC_RECEIVE_SHADOW",
  630. "type": "boolean"
  631. },
  632. {
  633. "name": "CC_USE_LIGHT_PROBE",
  634. "type": "boolean"
  635. },
  636. {
  637. "name": "CC_USE_MORPH",
  638. "type": "boolean"
  639. }
  640. ]
  641. }
  642. ],
  643. [
  644. {
  645. "passes": [
  646. {
  647. "pass": "cc-tone-mapping",
  648. "program": "pipeline/post-process/tone-mapping|vs|fs-tonemap",
  649. "rasterizerState": {
  650. "cullMode": 0
  651. },
  652. "depthStencilState": {
  653. "depthTest": false,
  654. "depthWrite": false
  655. }
  656. },
  657. {
  658. "pass": "cc-tone-mapping",
  659. "program": "pipeline/post-process/tone-mapping|vs|fs-copy",
  660. "rasterizerState": {
  661. "cullMode": 0
  662. },
  663. "depthStencilState": {
  664. "depthTest": false,
  665. "depthWrite": false
  666. }
  667. }
  668. ]
  669. }
  670. ]
  671. ]
  672. ],
  673. 0,
  674. 0,
  675. [],
  676. [],
  677. []
  678. ]