15049ccd-4dd7-451e-a8ae-af66735c929e.json 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. {
  2. "__type__": "cc.EffectAsset",
  3. "_name": "pipeline/post-process/blit-screen",
  4. "_objFlags": 0,
  5. "__editorExtras__": {},
  6. "_native": "",
  7. "techniques": [
  8. {
  9. "passes": [
  10. {
  11. "pass": "post-process",
  12. "rasterizerState": {
  13. "cullMode": 0
  14. },
  15. "blendState": {
  16. "targets": [
  17. {
  18. "blend": true,
  19. "blendSrc": 1,
  20. "blendDst": 4,
  21. "blendSrcAlpha": 1,
  22. "blendDstAlpha": 0
  23. }
  24. ]
  25. },
  26. "program": "pipeline/post-process/blit-screen|vs|fs",
  27. "depthStencilState": {
  28. "depthTest": false,
  29. "depthWrite": false
  30. }
  31. }
  32. ]
  33. }
  34. ],
  35. "shaders": [
  36. {
  37. "blocks": [
  38. {
  39. "name": "UBO",
  40. "members": [
  41. {
  42. "name": "inputViewPort",
  43. "type": 16,
  44. "count": 1
  45. }
  46. ],
  47. "defines": [],
  48. "stageFlags": 16,
  49. "binding": 0
  50. }
  51. ],
  52. "samplerTextures": [],
  53. "samplers": [],
  54. "textures": [],
  55. "buffers": [],
  56. "images": [],
  57. "subpassInputs": [],
  58. "attributes": [
  59. {
  60. "name": "a_position",
  61. "defines": [],
  62. "format": 32,
  63. "location": 0
  64. },
  65. {
  66. "name": "a_normal",
  67. "defines": [],
  68. "format": 32,
  69. "location": 1
  70. },
  71. {
  72. "name": "a_texCoord",
  73. "defines": [],
  74. "format": 21,
  75. "location": 2
  76. },
  77. {
  78. "name": "a_tangent",
  79. "defines": [],
  80. "format": 44,
  81. "location": 3
  82. },
  83. {
  84. "name": "a_joints",
  85. "defines": [
  86. "CC_USE_SKINNING"
  87. ],
  88. "location": 4
  89. },
  90. {
  91. "name": "a_weights",
  92. "defines": [
  93. "CC_USE_SKINNING"
  94. ],
  95. "format": 44,
  96. "location": 5
  97. },
  98. {
  99. "name": "a_jointAnimInfo",
  100. "defines": [
  101. "USE_INSTANCING",
  102. "CC_USE_BAKED_ANIMATION"
  103. ],
  104. "format": 44,
  105. "isInstanced": true,
  106. "location": 6
  107. },
  108. {
  109. "name": "a_matWorld0",
  110. "defines": [
  111. "USE_INSTANCING"
  112. ],
  113. "format": 44,
  114. "isInstanced": true,
  115. "location": 7
  116. },
  117. {
  118. "name": "a_matWorld1",
  119. "defines": [
  120. "USE_INSTANCING"
  121. ],
  122. "format": 44,
  123. "isInstanced": true,
  124. "location": 8
  125. },
  126. {
  127. "name": "a_matWorld2",
  128. "defines": [
  129. "USE_INSTANCING"
  130. ],
  131. "format": 44,
  132. "isInstanced": true,
  133. "location": 9
  134. },
  135. {
  136. "name": "a_lightingMapUVParam",
  137. "defines": [
  138. "USE_INSTANCING",
  139. "CC_USE_LIGHTMAP"
  140. ],
  141. "format": 44,
  142. "isInstanced": true,
  143. "location": 10
  144. },
  145. {
  146. "name": "a_localShadowBiasAndProbeId",
  147. "defines": [
  148. "USE_INSTANCING"
  149. ],
  150. "format": 44,
  151. "isInstanced": true,
  152. "location": 11
  153. },
  154. {
  155. "name": "a_reflectionProbeData",
  156. "defines": [
  157. "USE_INSTANCING",
  158. "CC_USE_REFLECTION_PROBE"
  159. ],
  160. "format": 44,
  161. "isInstanced": true,
  162. "location": 12
  163. },
  164. {
  165. "name": "a_sh_linear_const_r",
  166. "defines": [
  167. "USE_INSTANCING",
  168. "CC_USE_LIGHT_PROBE"
  169. ],
  170. "format": 44,
  171. "isInstanced": true,
  172. "location": 13
  173. },
  174. {
  175. "name": "a_sh_linear_const_g",
  176. "defines": [
  177. "USE_INSTANCING",
  178. "CC_USE_LIGHT_PROBE"
  179. ],
  180. "format": 44,
  181. "isInstanced": true,
  182. "location": 14
  183. },
  184. {
  185. "name": "a_sh_linear_const_b",
  186. "defines": [
  187. "USE_INSTANCING",
  188. "CC_USE_LIGHT_PROBE"
  189. ],
  190. "format": 44,
  191. "isInstanced": true,
  192. "location": 15
  193. },
  194. {
  195. "name": "a_vertexId",
  196. "defines": [
  197. "CC_USE_MORPH"
  198. ],
  199. "format": 11,
  200. "location": 16
  201. }
  202. ],
  203. "varyings": [
  204. {
  205. "name": "v_uv",
  206. "type": 14,
  207. "count": 1,
  208. "defines": [],
  209. "stageFlags": 17,
  210. "location": 0
  211. }
  212. ],
  213. "fragColors": [
  214. {
  215. "name": "fragColor",
  216. "typename": "vec4",
  217. "type": 16,
  218. "count": 1,
  219. "defines": [],
  220. "stageFlags": 16,
  221. "location": 0
  222. }
  223. ],
  224. "descriptors": [
  225. {
  226. "rate": 0,
  227. "blocks": [],
  228. "samplerTextures": [],
  229. "samplers": [],
  230. "textures": [],
  231. "buffers": [],
  232. "images": [],
  233. "subpassInputs": []
  234. },
  235. {
  236. "rate": 1,
  237. "blocks": [
  238. {
  239. "name": "UBO",
  240. "members": [
  241. {
  242. "name": "inputViewPort",
  243. "type": 16,
  244. "count": 1
  245. }
  246. ],
  247. "defines": [],
  248. "stageFlags": 16,
  249. "binding": 0
  250. }
  251. ],
  252. "samplerTextures": [],
  253. "samplers": [],
  254. "textures": [],
  255. "buffers": [],
  256. "images": [],
  257. "subpassInputs": []
  258. },
  259. {
  260. "rate": 2,
  261. "blocks": [],
  262. "samplerTextures": [],
  263. "samplers": [],
  264. "textures": [],
  265. "buffers": [],
  266. "images": [],
  267. "subpassInputs": []
  268. },
  269. {
  270. "rate": 3,
  271. "blocks": [
  272. {
  273. "tags": {
  274. "builtin": "global"
  275. },
  276. "name": "CCGlobal",
  277. "members": [
  278. {
  279. "name": "cc_time",
  280. "typename": "vec4",
  281. "type": 16,
  282. "count": 1,
  283. "precision": "highp "
  284. },
  285. {
  286. "name": "cc_screenSize",
  287. "typename": "vec4",
  288. "type": 16,
  289. "count": 1,
  290. "precision": "mediump "
  291. },
  292. {
  293. "name": "cc_nativeSize",
  294. "typename": "vec4",
  295. "type": 16,
  296. "count": 1,
  297. "precision": "mediump "
  298. },
  299. {
  300. "name": "cc_probeInfo",
  301. "typename": "vec4",
  302. "type": 16,
  303. "count": 1,
  304. "precision": "mediump "
  305. },
  306. {
  307. "name": "cc_debug_view_mode",
  308. "typename": "vec4",
  309. "type": 16,
  310. "count": 1,
  311. "precision": "mediump "
  312. }
  313. ],
  314. "defines": [],
  315. "stageFlags": 1
  316. },
  317. {
  318. "tags": {
  319. "builtin": "global"
  320. },
  321. "name": "CCCamera",
  322. "members": [
  323. {
  324. "name": "cc_matView",
  325. "typename": "mat4",
  326. "type": 25,
  327. "count": 1,
  328. "precision": "highp "
  329. },
  330. {
  331. "name": "cc_matViewInv",
  332. "typename": "mat4",
  333. "type": 25,
  334. "count": 1,
  335. "precision": "highp "
  336. },
  337. {
  338. "name": "cc_matProj",
  339. "typename": "mat4",
  340. "type": 25,
  341. "count": 1,
  342. "precision": "highp "
  343. },
  344. {
  345. "name": "cc_matProjInv",
  346. "typename": "mat4",
  347. "type": 25,
  348. "count": 1,
  349. "precision": "highp "
  350. },
  351. {
  352. "name": "cc_matViewProj",
  353. "typename": "mat4",
  354. "type": 25,
  355. "count": 1,
  356. "precision": "highp "
  357. },
  358. {
  359. "name": "cc_matViewProjInv",
  360. "typename": "mat4",
  361. "type": 25,
  362. "count": 1,
  363. "precision": "highp "
  364. },
  365. {
  366. "name": "cc_cameraPos",
  367. "typename": "vec4",
  368. "type": 16,
  369. "count": 1,
  370. "precision": "highp "
  371. },
  372. {
  373. "name": "cc_surfaceTransform",
  374. "typename": "vec4",
  375. "type": 16,
  376. "count": 1,
  377. "precision": "mediump "
  378. },
  379. {
  380. "name": "cc_screenScale",
  381. "typename": "vec4",
  382. "type": 16,
  383. "count": 1,
  384. "precision": "mediump "
  385. },
  386. {
  387. "name": "cc_exposure",
  388. "typename": "vec4",
  389. "type": 16,
  390. "count": 1,
  391. "precision": "mediump "
  392. },
  393. {
  394. "name": "cc_mainLitDir",
  395. "typename": "vec4",
  396. "type": 16,
  397. "count": 1,
  398. "precision": "mediump "
  399. },
  400. {
  401. "name": "cc_mainLitColor",
  402. "typename": "vec4",
  403. "type": 16,
  404. "count": 1,
  405. "precision": "mediump "
  406. },
  407. {
  408. "name": "cc_ambientSky",
  409. "typename": "vec4",
  410. "type": 16,
  411. "count": 1,
  412. "precision": "mediump "
  413. },
  414. {
  415. "name": "cc_ambientGround",
  416. "typename": "vec4",
  417. "type": 16,
  418. "count": 1,
  419. "precision": "mediump "
  420. },
  421. {
  422. "name": "cc_fogColor",
  423. "typename": "vec4",
  424. "type": 16,
  425. "count": 1,
  426. "precision": "mediump "
  427. },
  428. {
  429. "name": "cc_fogBase",
  430. "typename": "vec4",
  431. "type": 16,
  432. "count": 1,
  433. "precision": "mediump "
  434. },
  435. {
  436. "name": "cc_fogAdd",
  437. "typename": "vec4",
  438. "type": 16,
  439. "count": 1,
  440. "precision": "mediump "
  441. },
  442. {
  443. "name": "cc_nearFar",
  444. "typename": "vec4",
  445. "type": 16,
  446. "count": 1,
  447. "precision": "mediump "
  448. },
  449. {
  450. "name": "cc_viewPort",
  451. "typename": "vec4",
  452. "type": 16,
  453. "count": 1,
  454. "precision": "mediump "
  455. }
  456. ],
  457. "defines": [],
  458. "stageFlags": 1
  459. }
  460. ],
  461. "samplerTextures": [
  462. {
  463. "name": "inputTexture",
  464. "type": 28,
  465. "count": 1,
  466. "defines": [],
  467. "stageFlags": 16,
  468. "binding": 1
  469. }
  470. ],
  471. "samplers": [],
  472. "textures": [],
  473. "buffers": [],
  474. "images": [],
  475. "subpassInputs": []
  476. }
  477. ],
  478. "hash": 2689455440,
  479. "glsl4": {
  480. "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};\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_normal;\nlayout(location = 2) in vec2 a_texCoord;\nlayout(location = 3) in vec4 a_tangent;\n#if CC_USE_SKINNING\n layout(location = 4) in u32vec4 a_joints;\n layout(location = 5) in vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n layout(location = 6) in highp vec4 a_jointAnimInfo;\n #endif\n layout(location = 7) in vec4 a_matWorld0;\n layout(location = 8) in vec4 a_matWorld1;\n layout(location = 9) in vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n layout(location = 10) in vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n layout(location = 11) in vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n layout(location = 12) in vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n layout(location = 13) in vec4 a_sh_linear_const_r;\n layout(location = 14) in vec4 a_sh_linear_const_g;\n layout(location = 15) in vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n#endif\nlayout(set = 0, binding = 0) 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(set = 0, binding = 1) 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};\nlayout(location = 0) out 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.xy = cc_cameraPos.w == 0.0 ? vec2(In.position.xy.x, -In.position.xy.y) : In.position.xy;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
  481. "frag": "\nprecision highp float;\nlayout(location = 0) in vec2 v_uv;\nlayout(set = 1, binding = 0) uniform UBO {\n vec4 inputViewPort;\n};\nlayout(set = 1, binding = 1) uniform sampler2D inputTexture;\nlayout(location = 0) out vec4 fragColor;\nvoid main () {\n fragColor = texture(inputTexture, v_uv);\n}"
  482. },
  483. "glsl3": {
  484. "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};\nin vec3 a_position;\nin vec3 a_normal;\nin vec2 a_texCoord;\nin vec4 a_tangent;\n#if CC_USE_SKINNING\n in vec4 a_joints;\n in vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n in highp vec4 a_jointAnimInfo;\n #endif\n in vec4 a_matWorld0;\n in vec4 a_matWorld1;\n in vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n in vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n in vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n in vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n in vec4 a_sh_linear_const_r;\n in vec4 a_sh_linear_const_g;\n in vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n in float a_vertexId;\n#endif\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};\nout 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.xy = cc_cameraPos.w == 0.0 ? vec2(In.position.xy.x, -In.position.xy.y) : In.position.xy;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
  485. "frag": "\nprecision highp float;\nin vec2 v_uv;\nlayout(std140) uniform UBO {\n vec4 inputViewPort;\n};\nuniform sampler2D inputTexture;\nlayout(location = 0) out vec4 fragColor;\nvoid main () {\n fragColor = texture(inputTexture, v_uv);\n}"
  486. },
  487. "glsl1": {
  488. "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\nuniform highp vec4 cc_cameraPos;\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.xy = cc_cameraPos.w == 0.0 ? vec2(In.position.xy.x, -In.position.xy.y) : In.position.xy;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
  489. "frag": "\nprecision highp float;\nvarying vec2 v_uv;\nuniform sampler2D inputTexture;\nvoid main () {\n gl_FragColor = texture2D(inputTexture, v_uv);\n}"
  490. },
  491. "builtins": {
  492. "globals": {
  493. "blocks": [
  494. {
  495. "name": "CCGlobal",
  496. "defines": []
  497. },
  498. {
  499. "name": "CCCamera",
  500. "defines": []
  501. }
  502. ],
  503. "samplerTextures": [],
  504. "buffers": [],
  505. "images": []
  506. },
  507. "locals": {
  508. "blocks": [],
  509. "samplerTextures": [],
  510. "buffers": [],
  511. "images": []
  512. },
  513. "statistics": {
  514. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  515. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 1
  516. }
  517. },
  518. "defines": [
  519. {
  520. "name": "USE_INSTANCING",
  521. "type": "boolean",
  522. "defines": [],
  523. "editor": {
  524. "elevated": true
  525. }
  526. },
  527. {
  528. "name": "CC_USE_SKINNING",
  529. "type": "boolean",
  530. "defines": []
  531. },
  532. {
  533. "name": "CC_USE_BAKED_ANIMATION",
  534. "type": "boolean",
  535. "defines": [
  536. "USE_INSTANCING"
  537. ]
  538. },
  539. {
  540. "name": "CC_USE_LIGHTMAP",
  541. "type": "boolean",
  542. "defines": [
  543. "USE_INSTANCING"
  544. ]
  545. },
  546. {
  547. "name": "CC_USE_REFLECTION_PROBE",
  548. "type": "boolean",
  549. "defines": [
  550. "USE_INSTANCING"
  551. ]
  552. },
  553. {
  554. "name": "CC_RECEIVE_SHADOW",
  555. "type": "boolean",
  556. "defines": [
  557. "USE_INSTANCING"
  558. ]
  559. },
  560. {
  561. "name": "CC_USE_LIGHT_PROBE",
  562. "type": "boolean",
  563. "defines": [
  564. "USE_INSTANCING"
  565. ]
  566. },
  567. {
  568. "name": "CC_USE_MORPH",
  569. "type": "boolean",
  570. "defines": []
  571. }
  572. ],
  573. "name": "pipeline/post-process/blit-screen|vs|fs"
  574. }
  575. ],
  576. "combinations": [],
  577. "hideInEditor": false
  578. }