release.json 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080
  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-geometry-renderer",
  29. [
  30. {
  31. "hash": 229754059,
  32. "name": "internal/builtin-geometry-renderer|line-vs:vert|line-fs:front",
  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. "fragColors": [
  55. {
  56. "name": "cc_FragColor",
  57. "typename": "vec4",
  58. "type": 16,
  59. "count": 1,
  60. "stageFlags": 16,
  61. "location": 0,
  62. "defines": []
  63. }
  64. ],
  65. "descriptors": [
  66. {
  67. "rate": 0,
  68. "blocks": [],
  69. "samplerTextures": [],
  70. "samplers": [],
  71. "textures": [],
  72. "buffers": [],
  73. "images": [],
  74. "subpassInputs": []
  75. },
  76. {
  77. "rate": 1,
  78. "blocks": [],
  79. "samplerTextures": [],
  80. "samplers": [],
  81. "textures": [],
  82. "buffers": [],
  83. "images": [],
  84. "subpassInputs": []
  85. },
  86. {
  87. "rate": 2,
  88. "blocks": [],
  89. "samplerTextures": [],
  90. "samplers": [],
  91. "textures": [],
  92. "buffers": [],
  93. "images": [],
  94. "subpassInputs": []
  95. },
  96. {
  97. "rate": 3,
  98. "blocks": [
  99. {
  100. "name": "CCGlobal",
  101. "stageFlags": 17,
  102. "tags": {
  103. "builtin": "global"
  104. },
  105. "members": [
  106. {
  107. "name": "cc_time",
  108. "typename": "vec4",
  109. "type": 16,
  110. "count": 1,
  111. "precision": "highp "
  112. },
  113. {
  114. "name": "cc_screenSize",
  115. "typename": "vec4",
  116. "type": 16,
  117. "count": 1,
  118. "precision": "mediump "
  119. },
  120. {
  121. "name": "cc_nativeSize",
  122. "typename": "vec4",
  123. "type": 16,
  124. "count": 1,
  125. "precision": "mediump "
  126. },
  127. {
  128. "name": "cc_probeInfo",
  129. "typename": "vec4",
  130. "type": 16,
  131. "count": 1,
  132. "precision": "mediump "
  133. },
  134. {
  135. "name": "cc_debug_view_mode",
  136. "typename": "vec4",
  137. "type": 16,
  138. "count": 1,
  139. "precision": "mediump "
  140. }
  141. ],
  142. "defines": []
  143. },
  144. {
  145. "name": "CCCamera",
  146. "stageFlags": 17,
  147. "tags": {
  148. "builtin": "global"
  149. },
  150. "members": [
  151. {
  152. "name": "cc_matView",
  153. "typename": "mat4",
  154. "type": 25,
  155. "count": 1,
  156. "precision": "highp "
  157. },
  158. {
  159. "name": "cc_matViewInv",
  160. "typename": "mat4",
  161. "type": 25,
  162. "count": 1,
  163. "precision": "highp "
  164. },
  165. {
  166. "name": "cc_matProj",
  167. "typename": "mat4",
  168. "type": 25,
  169. "count": 1,
  170. "precision": "highp "
  171. },
  172. {
  173. "name": "cc_matProjInv",
  174. "typename": "mat4",
  175. "type": 25,
  176. "count": 1,
  177. "precision": "highp "
  178. },
  179. {
  180. "name": "cc_matViewProj",
  181. "typename": "mat4",
  182. "type": 25,
  183. "count": 1,
  184. "precision": "highp "
  185. },
  186. {
  187. "name": "cc_matViewProjInv",
  188. "typename": "mat4",
  189. "type": 25,
  190. "count": 1,
  191. "precision": "highp "
  192. },
  193. {
  194. "name": "cc_cameraPos",
  195. "typename": "vec4",
  196. "type": 16,
  197. "count": 1,
  198. "precision": "highp "
  199. },
  200. {
  201. "name": "cc_surfaceTransform",
  202. "typename": "vec4",
  203. "type": 16,
  204. "count": 1,
  205. "precision": "mediump "
  206. },
  207. {
  208. "name": "cc_screenScale",
  209. "typename": "vec4",
  210. "type": 16,
  211. "count": 1,
  212. "precision": "mediump "
  213. },
  214. {
  215. "name": "cc_exposure",
  216. "typename": "vec4",
  217. "type": 16,
  218. "count": 1,
  219. "precision": "mediump "
  220. },
  221. {
  222. "name": "cc_mainLitDir",
  223. "typename": "vec4",
  224. "type": 16,
  225. "count": 1,
  226. "precision": "mediump "
  227. },
  228. {
  229. "name": "cc_mainLitColor",
  230. "typename": "vec4",
  231. "type": 16,
  232. "count": 1,
  233. "precision": "mediump "
  234. },
  235. {
  236. "name": "cc_ambientSky",
  237. "typename": "vec4",
  238. "type": 16,
  239. "count": 1,
  240. "precision": "mediump "
  241. },
  242. {
  243. "name": "cc_ambientGround",
  244. "typename": "vec4",
  245. "type": 16,
  246. "count": 1,
  247. "precision": "mediump "
  248. },
  249. {
  250. "name": "cc_fogColor",
  251. "typename": "vec4",
  252. "type": 16,
  253. "count": 1,
  254. "precision": "mediump "
  255. },
  256. {
  257. "name": "cc_fogBase",
  258. "typename": "vec4",
  259. "type": 16,
  260. "count": 1,
  261. "precision": "mediump "
  262. },
  263. {
  264. "name": "cc_fogAdd",
  265. "typename": "vec4",
  266. "type": 16,
  267. "count": 1,
  268. "precision": "mediump "
  269. },
  270. {
  271. "name": "cc_nearFar",
  272. "typename": "vec4",
  273. "type": 16,
  274. "count": 1,
  275. "precision": "mediump "
  276. },
  277. {
  278. "name": "cc_viewPort",
  279. "typename": "vec4",
  280. "type": 16,
  281. "count": 1,
  282. "precision": "mediump "
  283. }
  284. ],
  285. "defines": []
  286. }
  287. ],
  288. "samplerTextures": [],
  289. "samplers": [],
  290. "textures": [],
  291. "buffers": [],
  292. "images": [],
  293. "subpassInputs": []
  294. }
  295. ],
  296. "glsl1": {
  297. "vert": "\nprecision mediump float;\nuniform highp mat4 cc_matViewProj;\nattribute highp vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvec4 vert () {\n vec4 pos = cc_matViewProj * vec4(a_position, 1);\n pos.z -= 0.000001;\n v_color = a_color;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  298. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec4 v_color;\nvec4 front() {\n #if USE_FORWARD_PIPELINE\n return CCFragOutput(v_color);\n #else\n return v_color;\n #endif\n}\nvoid main() { gl_FragColor = front(); }"
  299. },
  300. "builtins": {
  301. "globals": {
  302. "blocks": [
  303. {
  304. "name": "CCGlobal",
  305. "defines": []
  306. },
  307. {
  308. "name": "CCCamera",
  309. "defines": []
  310. }
  311. ],
  312. "samplerTextures": [],
  313. "buffers": [],
  314. "images": []
  315. },
  316. "locals": {
  317. "blocks": [],
  318. "samplerTextures": [],
  319. "buffers": [],
  320. "images": []
  321. },
  322. "statistics": {
  323. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  324. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  325. }
  326. },
  327. "defines": [
  328. {
  329. "name": "USE_FORWARD_PIPELINE",
  330. "type": "boolean"
  331. }
  332. ]
  333. },
  334. {
  335. "hash": 2666573058,
  336. "name": "internal/builtin-geometry-renderer|line-vs:vert|line-fs:back",
  337. "blocks": [],
  338. "samplerTextures": [],
  339. "samplers": [],
  340. "textures": [],
  341. "buffers": [],
  342. "images": [],
  343. "subpassInputs": [],
  344. "attributes": [
  345. {
  346. "name": "a_position",
  347. "format": 32,
  348. "location": 0,
  349. "defines": []
  350. },
  351. {
  352. "name": "a_color",
  353. "format": 44,
  354. "location": 1,
  355. "defines": []
  356. }
  357. ],
  358. "fragColors": [
  359. {
  360. "name": "cc_FragColor",
  361. "typename": "vec4",
  362. "type": 16,
  363. "count": 1,
  364. "stageFlags": 16,
  365. "location": 0,
  366. "defines": []
  367. }
  368. ],
  369. "descriptors": [
  370. {
  371. "rate": 0,
  372. "blocks": [],
  373. "samplerTextures": [],
  374. "samplers": [],
  375. "textures": [],
  376. "buffers": [],
  377. "images": [],
  378. "subpassInputs": []
  379. },
  380. {
  381. "rate": 1,
  382. "blocks": [],
  383. "samplerTextures": [],
  384. "samplers": [],
  385. "textures": [],
  386. "buffers": [],
  387. "images": [],
  388. "subpassInputs": []
  389. },
  390. {
  391. "rate": 2,
  392. "blocks": [],
  393. "samplerTextures": [],
  394. "samplers": [],
  395. "textures": [],
  396. "buffers": [],
  397. "images": [],
  398. "subpassInputs": []
  399. },
  400. {
  401. "rate": 3,
  402. "blocks": [
  403. {
  404. "name": "CCGlobal",
  405. "stageFlags": 17,
  406. "tags": {
  407. "builtin": "global"
  408. },
  409. "members": [
  410. {
  411. "name": "cc_time",
  412. "typename": "vec4",
  413. "type": 16,
  414. "count": 1,
  415. "precision": "highp "
  416. },
  417. {
  418. "name": "cc_screenSize",
  419. "typename": "vec4",
  420. "type": 16,
  421. "count": 1,
  422. "precision": "mediump "
  423. },
  424. {
  425. "name": "cc_nativeSize",
  426. "typename": "vec4",
  427. "type": 16,
  428. "count": 1,
  429. "precision": "mediump "
  430. },
  431. {
  432. "name": "cc_probeInfo",
  433. "typename": "vec4",
  434. "type": 16,
  435. "count": 1,
  436. "precision": "mediump "
  437. },
  438. {
  439. "name": "cc_debug_view_mode",
  440. "typename": "vec4",
  441. "type": 16,
  442. "count": 1,
  443. "precision": "mediump "
  444. }
  445. ],
  446. "defines": []
  447. },
  448. {
  449. "name": "CCCamera",
  450. "stageFlags": 17,
  451. "tags": {
  452. "builtin": "global"
  453. },
  454. "members": [
  455. {
  456. "name": "cc_matView",
  457. "typename": "mat4",
  458. "type": 25,
  459. "count": 1,
  460. "precision": "highp "
  461. },
  462. {
  463. "name": "cc_matViewInv",
  464. "typename": "mat4",
  465. "type": 25,
  466. "count": 1,
  467. "precision": "highp "
  468. },
  469. {
  470. "name": "cc_matProj",
  471. "typename": "mat4",
  472. "type": 25,
  473. "count": 1,
  474. "precision": "highp "
  475. },
  476. {
  477. "name": "cc_matProjInv",
  478. "typename": "mat4",
  479. "type": 25,
  480. "count": 1,
  481. "precision": "highp "
  482. },
  483. {
  484. "name": "cc_matViewProj",
  485. "typename": "mat4",
  486. "type": 25,
  487. "count": 1,
  488. "precision": "highp "
  489. },
  490. {
  491. "name": "cc_matViewProjInv",
  492. "typename": "mat4",
  493. "type": 25,
  494. "count": 1,
  495. "precision": "highp "
  496. },
  497. {
  498. "name": "cc_cameraPos",
  499. "typename": "vec4",
  500. "type": 16,
  501. "count": 1,
  502. "precision": "highp "
  503. },
  504. {
  505. "name": "cc_surfaceTransform",
  506. "typename": "vec4",
  507. "type": 16,
  508. "count": 1,
  509. "precision": "mediump "
  510. },
  511. {
  512. "name": "cc_screenScale",
  513. "typename": "vec4",
  514. "type": 16,
  515. "count": 1,
  516. "precision": "mediump "
  517. },
  518. {
  519. "name": "cc_exposure",
  520. "typename": "vec4",
  521. "type": 16,
  522. "count": 1,
  523. "precision": "mediump "
  524. },
  525. {
  526. "name": "cc_mainLitDir",
  527. "typename": "vec4",
  528. "type": 16,
  529. "count": 1,
  530. "precision": "mediump "
  531. },
  532. {
  533. "name": "cc_mainLitColor",
  534. "typename": "vec4",
  535. "type": 16,
  536. "count": 1,
  537. "precision": "mediump "
  538. },
  539. {
  540. "name": "cc_ambientSky",
  541. "typename": "vec4",
  542. "type": 16,
  543. "count": 1,
  544. "precision": "mediump "
  545. },
  546. {
  547. "name": "cc_ambientGround",
  548. "typename": "vec4",
  549. "type": 16,
  550. "count": 1,
  551. "precision": "mediump "
  552. },
  553. {
  554. "name": "cc_fogColor",
  555. "typename": "vec4",
  556. "type": 16,
  557. "count": 1,
  558. "precision": "mediump "
  559. },
  560. {
  561. "name": "cc_fogBase",
  562. "typename": "vec4",
  563. "type": 16,
  564. "count": 1,
  565. "precision": "mediump "
  566. },
  567. {
  568. "name": "cc_fogAdd",
  569. "typename": "vec4",
  570. "type": 16,
  571. "count": 1,
  572. "precision": "mediump "
  573. },
  574. {
  575. "name": "cc_nearFar",
  576. "typename": "vec4",
  577. "type": 16,
  578. "count": 1,
  579. "precision": "mediump "
  580. },
  581. {
  582. "name": "cc_viewPort",
  583. "typename": "vec4",
  584. "type": 16,
  585. "count": 1,
  586. "precision": "mediump "
  587. }
  588. ],
  589. "defines": []
  590. }
  591. ],
  592. "samplerTextures": [],
  593. "samplers": [],
  594. "textures": [],
  595. "buffers": [],
  596. "images": [],
  597. "subpassInputs": []
  598. }
  599. ],
  600. "glsl1": {
  601. "vert": "\nprecision mediump float;\nuniform highp mat4 cc_matViewProj;\nattribute highp vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvec4 vert () {\n vec4 pos = cc_matViewProj * vec4(a_position, 1);\n pos.z -= 0.000001;\n v_color = a_color;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  602. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec4 v_color;\nvec4 back() {\n #if USE_FORWARD_PIPELINE\n return CCFragOutput(vec4(v_color.rgb, v_color.a * 0.2));\n #else\n return vec4(v_color.rgb, v_color.a * 0.2);\n #endif\n}\nvoid main() { gl_FragColor = back(); }"
  603. },
  604. "builtins": {
  605. "globals": {
  606. "blocks": [
  607. {
  608. "name": "CCGlobal",
  609. "defines": []
  610. },
  611. {
  612. "name": "CCCamera",
  613. "defines": []
  614. }
  615. ],
  616. "samplerTextures": [],
  617. "buffers": [],
  618. "images": []
  619. },
  620. "locals": {
  621. "blocks": [],
  622. "samplerTextures": [],
  623. "buffers": [],
  624. "images": []
  625. },
  626. "statistics": {
  627. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  628. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  629. }
  630. },
  631. "defines": [
  632. {
  633. "name": "USE_FORWARD_PIPELINE",
  634. "type": "boolean"
  635. }
  636. ]
  637. },
  638. {
  639. "hash": 3460055559,
  640. "name": "internal/builtin-geometry-renderer|dashed-line-vs:vert|dashed-line-fs:front",
  641. "blocks": [],
  642. "samplerTextures": [],
  643. "samplers": [],
  644. "textures": [],
  645. "buffers": [],
  646. "images": [],
  647. "subpassInputs": [],
  648. "attributes": [
  649. {
  650. "name": "a_position",
  651. "format": 32,
  652. "location": 0,
  653. "defines": []
  654. },
  655. {
  656. "name": "a_color",
  657. "format": 44,
  658. "location": 1,
  659. "defines": []
  660. }
  661. ],
  662. "fragColors": [
  663. {
  664. "name": "cc_FragColor",
  665. "typename": "vec4",
  666. "type": 16,
  667. "count": 1,
  668. "stageFlags": 16,
  669. "location": 0,
  670. "defines": []
  671. }
  672. ],
  673. "descriptors": [
  674. {
  675. "rate": 0,
  676. "blocks": [],
  677. "samplerTextures": [],
  678. "samplers": [],
  679. "textures": [],
  680. "buffers": [],
  681. "images": [],
  682. "subpassInputs": []
  683. },
  684. {
  685. "rate": 1,
  686. "blocks": [],
  687. "samplerTextures": [],
  688. "samplers": [],
  689. "textures": [],
  690. "buffers": [],
  691. "images": [],
  692. "subpassInputs": []
  693. },
  694. {
  695. "rate": 2,
  696. "blocks": [],
  697. "samplerTextures": [],
  698. "samplers": [],
  699. "textures": [],
  700. "buffers": [],
  701. "images": [],
  702. "subpassInputs": []
  703. },
  704. {
  705. "rate": 3,
  706. "blocks": [
  707. {
  708. "name": "CCGlobal",
  709. "stageFlags": 17,
  710. "tags": {
  711. "builtin": "global"
  712. },
  713. "members": [
  714. {
  715. "name": "cc_time",
  716. "typename": "vec4",
  717. "type": 16,
  718. "count": 1,
  719. "precision": "highp "
  720. },
  721. {
  722. "name": "cc_screenSize",
  723. "typename": "vec4",
  724. "type": 16,
  725. "count": 1,
  726. "precision": "mediump "
  727. },
  728. {
  729. "name": "cc_nativeSize",
  730. "typename": "vec4",
  731. "type": 16,
  732. "count": 1,
  733. "precision": "mediump "
  734. },
  735. {
  736. "name": "cc_probeInfo",
  737. "typename": "vec4",
  738. "type": 16,
  739. "count": 1,
  740. "precision": "mediump "
  741. },
  742. {
  743. "name": "cc_debug_view_mode",
  744. "typename": "vec4",
  745. "type": 16,
  746. "count": 1,
  747. "precision": "mediump "
  748. }
  749. ],
  750. "defines": []
  751. },
  752. {
  753. "name": "CCCamera",
  754. "stageFlags": 17,
  755. "tags": {
  756. "builtin": "global"
  757. },
  758. "members": [
  759. {
  760. "name": "cc_matView",
  761. "typename": "mat4",
  762. "type": 25,
  763. "count": 1,
  764. "precision": "highp "
  765. },
  766. {
  767. "name": "cc_matViewInv",
  768. "typename": "mat4",
  769. "type": 25,
  770. "count": 1,
  771. "precision": "highp "
  772. },
  773. {
  774. "name": "cc_matProj",
  775. "typename": "mat4",
  776. "type": 25,
  777. "count": 1,
  778. "precision": "highp "
  779. },
  780. {
  781. "name": "cc_matProjInv",
  782. "typename": "mat4",
  783. "type": 25,
  784. "count": 1,
  785. "precision": "highp "
  786. },
  787. {
  788. "name": "cc_matViewProj",
  789. "typename": "mat4",
  790. "type": 25,
  791. "count": 1,
  792. "precision": "highp "
  793. },
  794. {
  795. "name": "cc_matViewProjInv",
  796. "typename": "mat4",
  797. "type": 25,
  798. "count": 1,
  799. "precision": "highp "
  800. },
  801. {
  802. "name": "cc_cameraPos",
  803. "typename": "vec4",
  804. "type": 16,
  805. "count": 1,
  806. "precision": "highp "
  807. },
  808. {
  809. "name": "cc_surfaceTransform",
  810. "typename": "vec4",
  811. "type": 16,
  812. "count": 1,
  813. "precision": "mediump "
  814. },
  815. {
  816. "name": "cc_screenScale",
  817. "typename": "vec4",
  818. "type": 16,
  819. "count": 1,
  820. "precision": "mediump "
  821. },
  822. {
  823. "name": "cc_exposure",
  824. "typename": "vec4",
  825. "type": 16,
  826. "count": 1,
  827. "precision": "mediump "
  828. },
  829. {
  830. "name": "cc_mainLitDir",
  831. "typename": "vec4",
  832. "type": 16,
  833. "count": 1,
  834. "precision": "mediump "
  835. },
  836. {
  837. "name": "cc_mainLitColor",
  838. "typename": "vec4",
  839. "type": 16,
  840. "count": 1,
  841. "precision": "mediump "
  842. },
  843. {
  844. "name": "cc_ambientSky",
  845. "typename": "vec4",
  846. "type": 16,
  847. "count": 1,
  848. "precision": "mediump "
  849. },
  850. {
  851. "name": "cc_ambientGround",
  852. "typename": "vec4",
  853. "type": 16,
  854. "count": 1,
  855. "precision": "mediump "
  856. },
  857. {
  858. "name": "cc_fogColor",
  859. "typename": "vec4",
  860. "type": 16,
  861. "count": 1,
  862. "precision": "mediump "
  863. },
  864. {
  865. "name": "cc_fogBase",
  866. "typename": "vec4",
  867. "type": 16,
  868. "count": 1,
  869. "precision": "mediump "
  870. },
  871. {
  872. "name": "cc_fogAdd",
  873. "typename": "vec4",
  874. "type": 16,
  875. "count": 1,
  876. "precision": "mediump "
  877. },
  878. {
  879. "name": "cc_nearFar",
  880. "typename": "vec4",
  881. "type": 16,
  882. "count": 1,
  883. "precision": "mediump "
  884. },
  885. {
  886. "name": "cc_viewPort",
  887. "typename": "vec4",
  888. "type": 16,
  889. "count": 1,
  890. "precision": "mediump "
  891. }
  892. ],
  893. "defines": []
  894. }
  895. ],
  896. "samplerTextures": [],
  897. "samplers": [],
  898. "textures": [],
  899. "buffers": [],
  900. "images": [],
  901. "subpassInputs": []
  902. }
  903. ],
  904. "glsl1": {
  905. "vert": "\nprecision mediump float;\nuniform highp mat4 cc_matViewProj;\nattribute highp vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvarying float v_distance;\nvec4 vert () {\n vec4 pos = cc_matViewProj * vec4(a_position, 1);\n pos.z -= 0.000001;\n v_color = a_color;\n v_distance = dot(a_position, vec3(1.0, 1.0, 1.0));\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  906. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec4 v_color;\nvarying float v_distance;\nvec4 front() {\n if (fract(v_distance) > 0.5) {\n discard;\n }\n #if USE_FORWARD_PIPELINE\n return CCFragOutput(v_color);\n #else\n return v_color;\n #endif\n}\nvoid main() { gl_FragColor = front(); }"
  907. },
  908. "builtins": {
  909. "globals": {
  910. "blocks": [
  911. {
  912. "name": "CCGlobal",
  913. "defines": []
  914. },
  915. {
  916. "name": "CCCamera",
  917. "defines": []
  918. }
  919. ],
  920. "samplerTextures": [],
  921. "buffers": [],
  922. "images": []
  923. },
  924. "locals": {
  925. "blocks": [],
  926. "samplerTextures": [],
  927. "buffers": [],
  928. "images": []
  929. },
  930. "statistics": {
  931. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  932. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  933. }
  934. },
  935. "defines": [
  936. {
  937. "name": "USE_FORWARD_PIPELINE",
  938. "type": "boolean"
  939. }
  940. ]
  941. },
  942. {
  943. "hash": 1205971479,
  944. "name": "internal/builtin-geometry-renderer|dashed-line-vs:vert|dashed-line-fs:back",
  945. "blocks": [],
  946. "samplerTextures": [],
  947. "samplers": [],
  948. "textures": [],
  949. "buffers": [],
  950. "images": [],
  951. "subpassInputs": [],
  952. "attributes": [
  953. {
  954. "name": "a_position",
  955. "format": 32,
  956. "location": 0,
  957. "defines": []
  958. },
  959. {
  960. "name": "a_color",
  961. "format": 44,
  962. "location": 1,
  963. "defines": []
  964. }
  965. ],
  966. "fragColors": [
  967. {
  968. "name": "cc_FragColor",
  969. "typename": "vec4",
  970. "type": 16,
  971. "count": 1,
  972. "stageFlags": 16,
  973. "location": 0,
  974. "defines": []
  975. }
  976. ],
  977. "descriptors": [
  978. {
  979. "rate": 0,
  980. "blocks": [],
  981. "samplerTextures": [],
  982. "samplers": [],
  983. "textures": [],
  984. "buffers": [],
  985. "images": [],
  986. "subpassInputs": []
  987. },
  988. {
  989. "rate": 1,
  990. "blocks": [],
  991. "samplerTextures": [],
  992. "samplers": [],
  993. "textures": [],
  994. "buffers": [],
  995. "images": [],
  996. "subpassInputs": []
  997. },
  998. {
  999. "rate": 2,
  1000. "blocks": [],
  1001. "samplerTextures": [],
  1002. "samplers": [],
  1003. "textures": [],
  1004. "buffers": [],
  1005. "images": [],
  1006. "subpassInputs": []
  1007. },
  1008. {
  1009. "rate": 3,
  1010. "blocks": [
  1011. {
  1012. "name": "CCGlobal",
  1013. "stageFlags": 17,
  1014. "tags": {
  1015. "builtin": "global"
  1016. },
  1017. "members": [
  1018. {
  1019. "name": "cc_time",
  1020. "typename": "vec4",
  1021. "type": 16,
  1022. "count": 1,
  1023. "precision": "highp "
  1024. },
  1025. {
  1026. "name": "cc_screenSize",
  1027. "typename": "vec4",
  1028. "type": 16,
  1029. "count": 1,
  1030. "precision": "mediump "
  1031. },
  1032. {
  1033. "name": "cc_nativeSize",
  1034. "typename": "vec4",
  1035. "type": 16,
  1036. "count": 1,
  1037. "precision": "mediump "
  1038. },
  1039. {
  1040. "name": "cc_probeInfo",
  1041. "typename": "vec4",
  1042. "type": 16,
  1043. "count": 1,
  1044. "precision": "mediump "
  1045. },
  1046. {
  1047. "name": "cc_debug_view_mode",
  1048. "typename": "vec4",
  1049. "type": 16,
  1050. "count": 1,
  1051. "precision": "mediump "
  1052. }
  1053. ],
  1054. "defines": []
  1055. },
  1056. {
  1057. "name": "CCCamera",
  1058. "stageFlags": 17,
  1059. "tags": {
  1060. "builtin": "global"
  1061. },
  1062. "members": [
  1063. {
  1064. "name": "cc_matView",
  1065. "typename": "mat4",
  1066. "type": 25,
  1067. "count": 1,
  1068. "precision": "highp "
  1069. },
  1070. {
  1071. "name": "cc_matViewInv",
  1072. "typename": "mat4",
  1073. "type": 25,
  1074. "count": 1,
  1075. "precision": "highp "
  1076. },
  1077. {
  1078. "name": "cc_matProj",
  1079. "typename": "mat4",
  1080. "type": 25,
  1081. "count": 1,
  1082. "precision": "highp "
  1083. },
  1084. {
  1085. "name": "cc_matProjInv",
  1086. "typename": "mat4",
  1087. "type": 25,
  1088. "count": 1,
  1089. "precision": "highp "
  1090. },
  1091. {
  1092. "name": "cc_matViewProj",
  1093. "typename": "mat4",
  1094. "type": 25,
  1095. "count": 1,
  1096. "precision": "highp "
  1097. },
  1098. {
  1099. "name": "cc_matViewProjInv",
  1100. "typename": "mat4",
  1101. "type": 25,
  1102. "count": 1,
  1103. "precision": "highp "
  1104. },
  1105. {
  1106. "name": "cc_cameraPos",
  1107. "typename": "vec4",
  1108. "type": 16,
  1109. "count": 1,
  1110. "precision": "highp "
  1111. },
  1112. {
  1113. "name": "cc_surfaceTransform",
  1114. "typename": "vec4",
  1115. "type": 16,
  1116. "count": 1,
  1117. "precision": "mediump "
  1118. },
  1119. {
  1120. "name": "cc_screenScale",
  1121. "typename": "vec4",
  1122. "type": 16,
  1123. "count": 1,
  1124. "precision": "mediump "
  1125. },
  1126. {
  1127. "name": "cc_exposure",
  1128. "typename": "vec4",
  1129. "type": 16,
  1130. "count": 1,
  1131. "precision": "mediump "
  1132. },
  1133. {
  1134. "name": "cc_mainLitDir",
  1135. "typename": "vec4",
  1136. "type": 16,
  1137. "count": 1,
  1138. "precision": "mediump "
  1139. },
  1140. {
  1141. "name": "cc_mainLitColor",
  1142. "typename": "vec4",
  1143. "type": 16,
  1144. "count": 1,
  1145. "precision": "mediump "
  1146. },
  1147. {
  1148. "name": "cc_ambientSky",
  1149. "typename": "vec4",
  1150. "type": 16,
  1151. "count": 1,
  1152. "precision": "mediump "
  1153. },
  1154. {
  1155. "name": "cc_ambientGround",
  1156. "typename": "vec4",
  1157. "type": 16,
  1158. "count": 1,
  1159. "precision": "mediump "
  1160. },
  1161. {
  1162. "name": "cc_fogColor",
  1163. "typename": "vec4",
  1164. "type": 16,
  1165. "count": 1,
  1166. "precision": "mediump "
  1167. },
  1168. {
  1169. "name": "cc_fogBase",
  1170. "typename": "vec4",
  1171. "type": 16,
  1172. "count": 1,
  1173. "precision": "mediump "
  1174. },
  1175. {
  1176. "name": "cc_fogAdd",
  1177. "typename": "vec4",
  1178. "type": 16,
  1179. "count": 1,
  1180. "precision": "mediump "
  1181. },
  1182. {
  1183. "name": "cc_nearFar",
  1184. "typename": "vec4",
  1185. "type": 16,
  1186. "count": 1,
  1187. "precision": "mediump "
  1188. },
  1189. {
  1190. "name": "cc_viewPort",
  1191. "typename": "vec4",
  1192. "type": 16,
  1193. "count": 1,
  1194. "precision": "mediump "
  1195. }
  1196. ],
  1197. "defines": []
  1198. }
  1199. ],
  1200. "samplerTextures": [],
  1201. "samplers": [],
  1202. "textures": [],
  1203. "buffers": [],
  1204. "images": [],
  1205. "subpassInputs": []
  1206. }
  1207. ],
  1208. "glsl1": {
  1209. "vert": "\nprecision mediump float;\nuniform highp mat4 cc_matViewProj;\nattribute highp vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvarying float v_distance;\nvec4 vert () {\n vec4 pos = cc_matViewProj * vec4(a_position, 1);\n pos.z -= 0.000001;\n v_color = a_color;\n v_distance = dot(a_position, vec3(1.0, 1.0, 1.0));\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  1210. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec4 v_color;\nvarying float v_distance;\nvec4 back() {\n if (fract(v_distance) > 0.5) {\n discard;\n }\n #if USE_FORWARD_PIPELINE\n return CCFragOutput(vec4(v_color.rgb, v_color.a * 0.2));\n #else\n return vec4(v_color.rgb, v_color.a * 0.2);\n #endif\n}\nvoid main() { gl_FragColor = back(); }"
  1211. },
  1212. "builtins": {
  1213. "globals": {
  1214. "blocks": [
  1215. {
  1216. "name": "CCGlobal",
  1217. "defines": []
  1218. },
  1219. {
  1220. "name": "CCCamera",
  1221. "defines": []
  1222. }
  1223. ],
  1224. "samplerTextures": [],
  1225. "buffers": [],
  1226. "images": []
  1227. },
  1228. "locals": {
  1229. "blocks": [],
  1230. "samplerTextures": [],
  1231. "buffers": [],
  1232. "images": []
  1233. },
  1234. "statistics": {
  1235. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  1236. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  1237. }
  1238. },
  1239. "defines": [
  1240. {
  1241. "name": "USE_FORWARD_PIPELINE",
  1242. "type": "boolean"
  1243. }
  1244. ]
  1245. },
  1246. {
  1247. "hash": 2950611753,
  1248. "name": "internal/builtin-geometry-renderer|triangle-vs:vert|triangle-fs:front",
  1249. "blocks": [],
  1250. "samplerTextures": [],
  1251. "samplers": [],
  1252. "textures": [],
  1253. "buffers": [],
  1254. "images": [],
  1255. "subpassInputs": [],
  1256. "attributes": [
  1257. {
  1258. "name": "a_position",
  1259. "format": 32,
  1260. "location": 0,
  1261. "defines": []
  1262. },
  1263. {
  1264. "name": "a_normal",
  1265. "format": 44,
  1266. "location": 1,
  1267. "defines": []
  1268. },
  1269. {
  1270. "name": "a_color",
  1271. "format": 44,
  1272. "location": 2,
  1273. "defines": []
  1274. }
  1275. ],
  1276. "fragColors": [
  1277. {
  1278. "name": "cc_FragColor",
  1279. "typename": "vec4",
  1280. "type": 16,
  1281. "count": 1,
  1282. "stageFlags": 16,
  1283. "location": 0,
  1284. "defines": []
  1285. }
  1286. ],
  1287. "descriptors": [
  1288. {
  1289. "rate": 0,
  1290. "blocks": [],
  1291. "samplerTextures": [],
  1292. "samplers": [],
  1293. "textures": [],
  1294. "buffers": [],
  1295. "images": [],
  1296. "subpassInputs": []
  1297. },
  1298. {
  1299. "rate": 1,
  1300. "blocks": [],
  1301. "samplerTextures": [],
  1302. "samplers": [],
  1303. "textures": [],
  1304. "buffers": [],
  1305. "images": [],
  1306. "subpassInputs": []
  1307. },
  1308. {
  1309. "rate": 2,
  1310. "blocks": [],
  1311. "samplerTextures": [],
  1312. "samplers": [],
  1313. "textures": [],
  1314. "buffers": [],
  1315. "images": [],
  1316. "subpassInputs": []
  1317. },
  1318. {
  1319. "rate": 3,
  1320. "blocks": [
  1321. {
  1322. "name": "CCGlobal",
  1323. "stageFlags": 17,
  1324. "tags": {
  1325. "builtin": "global"
  1326. },
  1327. "members": [
  1328. {
  1329. "name": "cc_time",
  1330. "typename": "vec4",
  1331. "type": 16,
  1332. "count": 1,
  1333. "precision": "highp "
  1334. },
  1335. {
  1336. "name": "cc_screenSize",
  1337. "typename": "vec4",
  1338. "type": 16,
  1339. "count": 1,
  1340. "precision": "mediump "
  1341. },
  1342. {
  1343. "name": "cc_nativeSize",
  1344. "typename": "vec4",
  1345. "type": 16,
  1346. "count": 1,
  1347. "precision": "mediump "
  1348. },
  1349. {
  1350. "name": "cc_probeInfo",
  1351. "typename": "vec4",
  1352. "type": 16,
  1353. "count": 1,
  1354. "precision": "mediump "
  1355. },
  1356. {
  1357. "name": "cc_debug_view_mode",
  1358. "typename": "vec4",
  1359. "type": 16,
  1360. "count": 1,
  1361. "precision": "mediump "
  1362. }
  1363. ],
  1364. "defines": []
  1365. },
  1366. {
  1367. "name": "CCCamera",
  1368. "stageFlags": 17,
  1369. "tags": {
  1370. "builtin": "global"
  1371. },
  1372. "members": [
  1373. {
  1374. "name": "cc_matView",
  1375. "typename": "mat4",
  1376. "type": 25,
  1377. "count": 1,
  1378. "precision": "highp "
  1379. },
  1380. {
  1381. "name": "cc_matViewInv",
  1382. "typename": "mat4",
  1383. "type": 25,
  1384. "count": 1,
  1385. "precision": "highp "
  1386. },
  1387. {
  1388. "name": "cc_matProj",
  1389. "typename": "mat4",
  1390. "type": 25,
  1391. "count": 1,
  1392. "precision": "highp "
  1393. },
  1394. {
  1395. "name": "cc_matProjInv",
  1396. "typename": "mat4",
  1397. "type": 25,
  1398. "count": 1,
  1399. "precision": "highp "
  1400. },
  1401. {
  1402. "name": "cc_matViewProj",
  1403. "typename": "mat4",
  1404. "type": 25,
  1405. "count": 1,
  1406. "precision": "highp "
  1407. },
  1408. {
  1409. "name": "cc_matViewProjInv",
  1410. "typename": "mat4",
  1411. "type": 25,
  1412. "count": 1,
  1413. "precision": "highp "
  1414. },
  1415. {
  1416. "name": "cc_cameraPos",
  1417. "typename": "vec4",
  1418. "type": 16,
  1419. "count": 1,
  1420. "precision": "highp "
  1421. },
  1422. {
  1423. "name": "cc_surfaceTransform",
  1424. "typename": "vec4",
  1425. "type": 16,
  1426. "count": 1,
  1427. "precision": "mediump "
  1428. },
  1429. {
  1430. "name": "cc_screenScale",
  1431. "typename": "vec4",
  1432. "type": 16,
  1433. "count": 1,
  1434. "precision": "mediump "
  1435. },
  1436. {
  1437. "name": "cc_exposure",
  1438. "typename": "vec4",
  1439. "type": 16,
  1440. "count": 1,
  1441. "precision": "mediump "
  1442. },
  1443. {
  1444. "name": "cc_mainLitDir",
  1445. "typename": "vec4",
  1446. "type": 16,
  1447. "count": 1,
  1448. "precision": "mediump "
  1449. },
  1450. {
  1451. "name": "cc_mainLitColor",
  1452. "typename": "vec4",
  1453. "type": 16,
  1454. "count": 1,
  1455. "precision": "mediump "
  1456. },
  1457. {
  1458. "name": "cc_ambientSky",
  1459. "typename": "vec4",
  1460. "type": 16,
  1461. "count": 1,
  1462. "precision": "mediump "
  1463. },
  1464. {
  1465. "name": "cc_ambientGround",
  1466. "typename": "vec4",
  1467. "type": 16,
  1468. "count": 1,
  1469. "precision": "mediump "
  1470. },
  1471. {
  1472. "name": "cc_fogColor",
  1473. "typename": "vec4",
  1474. "type": 16,
  1475. "count": 1,
  1476. "precision": "mediump "
  1477. },
  1478. {
  1479. "name": "cc_fogBase",
  1480. "typename": "vec4",
  1481. "type": 16,
  1482. "count": 1,
  1483. "precision": "mediump "
  1484. },
  1485. {
  1486. "name": "cc_fogAdd",
  1487. "typename": "vec4",
  1488. "type": 16,
  1489. "count": 1,
  1490. "precision": "mediump "
  1491. },
  1492. {
  1493. "name": "cc_nearFar",
  1494. "typename": "vec4",
  1495. "type": 16,
  1496. "count": 1,
  1497. "precision": "mediump "
  1498. },
  1499. {
  1500. "name": "cc_viewPort",
  1501. "typename": "vec4",
  1502. "type": 16,
  1503. "count": 1,
  1504. "precision": "mediump "
  1505. }
  1506. ],
  1507. "defines": []
  1508. }
  1509. ],
  1510. "samplerTextures": [],
  1511. "samplers": [],
  1512. "textures": [],
  1513. "buffers": [],
  1514. "images": [],
  1515. "subpassInputs": []
  1516. }
  1517. ],
  1518. "glsl1": {
  1519. "vert": "\nprecision mediump float;\nuniform highp mat4 cc_matViewProj;\nattribute highp vec3 a_position;\nattribute vec4 a_normal;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvec4 vert () {\n vec4 pos = cc_matViewProj * vec4(a_position, 1);\n v_color = a_color;\n float intensity = dot(vec3(1, 2, 4), a_normal.xyz);\n v_color.rgb -= a_normal.w * intensity * 0.1;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  1520. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec4 v_color;\nvec4 front() {\n #if USE_FORWARD_PIPELINE\n return CCFragOutput(v_color);\n #else\n return v_color;\n #endif\n}\nvoid main() { gl_FragColor = front(); }"
  1521. },
  1522. "builtins": {
  1523. "globals": {
  1524. "blocks": [
  1525. {
  1526. "name": "CCGlobal",
  1527. "defines": []
  1528. },
  1529. {
  1530. "name": "CCCamera",
  1531. "defines": []
  1532. }
  1533. ],
  1534. "samplerTextures": [],
  1535. "buffers": [],
  1536. "images": []
  1537. },
  1538. "locals": {
  1539. "blocks": [],
  1540. "samplerTextures": [],
  1541. "buffers": [],
  1542. "images": []
  1543. },
  1544. "statistics": {
  1545. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  1546. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  1547. }
  1548. },
  1549. "defines": [
  1550. {
  1551. "name": "USE_FORWARD_PIPELINE",
  1552. "type": "boolean"
  1553. }
  1554. ]
  1555. },
  1556. {
  1557. "hash": 319171560,
  1558. "name": "internal/builtin-geometry-renderer|triangle-vs:vert|triangle-fs:back",
  1559. "blocks": [],
  1560. "samplerTextures": [],
  1561. "samplers": [],
  1562. "textures": [],
  1563. "buffers": [],
  1564. "images": [],
  1565. "subpassInputs": [],
  1566. "attributes": [
  1567. {
  1568. "name": "a_position",
  1569. "format": 32,
  1570. "location": 0,
  1571. "defines": []
  1572. },
  1573. {
  1574. "name": "a_normal",
  1575. "format": 44,
  1576. "location": 1,
  1577. "defines": []
  1578. },
  1579. {
  1580. "name": "a_color",
  1581. "format": 44,
  1582. "location": 2,
  1583. "defines": []
  1584. }
  1585. ],
  1586. "fragColors": [
  1587. {
  1588. "name": "cc_FragColor",
  1589. "typename": "vec4",
  1590. "type": 16,
  1591. "count": 1,
  1592. "stageFlags": 16,
  1593. "location": 0,
  1594. "defines": []
  1595. }
  1596. ],
  1597. "descriptors": [
  1598. {
  1599. "rate": 0,
  1600. "blocks": [],
  1601. "samplerTextures": [],
  1602. "samplers": [],
  1603. "textures": [],
  1604. "buffers": [],
  1605. "images": [],
  1606. "subpassInputs": []
  1607. },
  1608. {
  1609. "rate": 1,
  1610. "blocks": [],
  1611. "samplerTextures": [],
  1612. "samplers": [],
  1613. "textures": [],
  1614. "buffers": [],
  1615. "images": [],
  1616. "subpassInputs": []
  1617. },
  1618. {
  1619. "rate": 2,
  1620. "blocks": [],
  1621. "samplerTextures": [],
  1622. "samplers": [],
  1623. "textures": [],
  1624. "buffers": [],
  1625. "images": [],
  1626. "subpassInputs": []
  1627. },
  1628. {
  1629. "rate": 3,
  1630. "blocks": [
  1631. {
  1632. "name": "CCGlobal",
  1633. "stageFlags": 17,
  1634. "tags": {
  1635. "builtin": "global"
  1636. },
  1637. "members": [
  1638. {
  1639. "name": "cc_time",
  1640. "typename": "vec4",
  1641. "type": 16,
  1642. "count": 1,
  1643. "precision": "highp "
  1644. },
  1645. {
  1646. "name": "cc_screenSize",
  1647. "typename": "vec4",
  1648. "type": 16,
  1649. "count": 1,
  1650. "precision": "mediump "
  1651. },
  1652. {
  1653. "name": "cc_nativeSize",
  1654. "typename": "vec4",
  1655. "type": 16,
  1656. "count": 1,
  1657. "precision": "mediump "
  1658. },
  1659. {
  1660. "name": "cc_probeInfo",
  1661. "typename": "vec4",
  1662. "type": 16,
  1663. "count": 1,
  1664. "precision": "mediump "
  1665. },
  1666. {
  1667. "name": "cc_debug_view_mode",
  1668. "typename": "vec4",
  1669. "type": 16,
  1670. "count": 1,
  1671. "precision": "mediump "
  1672. }
  1673. ],
  1674. "defines": []
  1675. },
  1676. {
  1677. "name": "CCCamera",
  1678. "stageFlags": 17,
  1679. "tags": {
  1680. "builtin": "global"
  1681. },
  1682. "members": [
  1683. {
  1684. "name": "cc_matView",
  1685. "typename": "mat4",
  1686. "type": 25,
  1687. "count": 1,
  1688. "precision": "highp "
  1689. },
  1690. {
  1691. "name": "cc_matViewInv",
  1692. "typename": "mat4",
  1693. "type": 25,
  1694. "count": 1,
  1695. "precision": "highp "
  1696. },
  1697. {
  1698. "name": "cc_matProj",
  1699. "typename": "mat4",
  1700. "type": 25,
  1701. "count": 1,
  1702. "precision": "highp "
  1703. },
  1704. {
  1705. "name": "cc_matProjInv",
  1706. "typename": "mat4",
  1707. "type": 25,
  1708. "count": 1,
  1709. "precision": "highp "
  1710. },
  1711. {
  1712. "name": "cc_matViewProj",
  1713. "typename": "mat4",
  1714. "type": 25,
  1715. "count": 1,
  1716. "precision": "highp "
  1717. },
  1718. {
  1719. "name": "cc_matViewProjInv",
  1720. "typename": "mat4",
  1721. "type": 25,
  1722. "count": 1,
  1723. "precision": "highp "
  1724. },
  1725. {
  1726. "name": "cc_cameraPos",
  1727. "typename": "vec4",
  1728. "type": 16,
  1729. "count": 1,
  1730. "precision": "highp "
  1731. },
  1732. {
  1733. "name": "cc_surfaceTransform",
  1734. "typename": "vec4",
  1735. "type": 16,
  1736. "count": 1,
  1737. "precision": "mediump "
  1738. },
  1739. {
  1740. "name": "cc_screenScale",
  1741. "typename": "vec4",
  1742. "type": 16,
  1743. "count": 1,
  1744. "precision": "mediump "
  1745. },
  1746. {
  1747. "name": "cc_exposure",
  1748. "typename": "vec4",
  1749. "type": 16,
  1750. "count": 1,
  1751. "precision": "mediump "
  1752. },
  1753. {
  1754. "name": "cc_mainLitDir",
  1755. "typename": "vec4",
  1756. "type": 16,
  1757. "count": 1,
  1758. "precision": "mediump "
  1759. },
  1760. {
  1761. "name": "cc_mainLitColor",
  1762. "typename": "vec4",
  1763. "type": 16,
  1764. "count": 1,
  1765. "precision": "mediump "
  1766. },
  1767. {
  1768. "name": "cc_ambientSky",
  1769. "typename": "vec4",
  1770. "type": 16,
  1771. "count": 1,
  1772. "precision": "mediump "
  1773. },
  1774. {
  1775. "name": "cc_ambientGround",
  1776. "typename": "vec4",
  1777. "type": 16,
  1778. "count": 1,
  1779. "precision": "mediump "
  1780. },
  1781. {
  1782. "name": "cc_fogColor",
  1783. "typename": "vec4",
  1784. "type": 16,
  1785. "count": 1,
  1786. "precision": "mediump "
  1787. },
  1788. {
  1789. "name": "cc_fogBase",
  1790. "typename": "vec4",
  1791. "type": 16,
  1792. "count": 1,
  1793. "precision": "mediump "
  1794. },
  1795. {
  1796. "name": "cc_fogAdd",
  1797. "typename": "vec4",
  1798. "type": 16,
  1799. "count": 1,
  1800. "precision": "mediump "
  1801. },
  1802. {
  1803. "name": "cc_nearFar",
  1804. "typename": "vec4",
  1805. "type": 16,
  1806. "count": 1,
  1807. "precision": "mediump "
  1808. },
  1809. {
  1810. "name": "cc_viewPort",
  1811. "typename": "vec4",
  1812. "type": 16,
  1813. "count": 1,
  1814. "precision": "mediump "
  1815. }
  1816. ],
  1817. "defines": []
  1818. }
  1819. ],
  1820. "samplerTextures": [],
  1821. "samplers": [],
  1822. "textures": [],
  1823. "buffers": [],
  1824. "images": [],
  1825. "subpassInputs": []
  1826. }
  1827. ],
  1828. "glsl1": {
  1829. "vert": "\nprecision mediump float;\nuniform highp mat4 cc_matViewProj;\nattribute highp vec3 a_position;\nattribute vec4 a_normal;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvec4 vert () {\n vec4 pos = cc_matViewProj * vec4(a_position, 1);\n v_color = a_color;\n float intensity = dot(vec3(1, 2, 4), a_normal.xyz);\n v_color.rgb -= a_normal.w * intensity * 0.1;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  1830. "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec4 v_color;\nvec4 back() {\n #if USE_FORWARD_PIPELINE\n return CCFragOutput(vec4(v_color.rgb, v_color.a * 0.2));\n #else\n return vec4(v_color.rgb, v_color.a * 0.2);\n #endif\n}\nvoid main() { gl_FragColor = back(); }"
  1831. },
  1832. "builtins": {
  1833. "globals": {
  1834. "blocks": [
  1835. {
  1836. "name": "CCGlobal",
  1837. "defines": []
  1838. },
  1839. {
  1840. "name": "CCCamera",
  1841. "defines": []
  1842. }
  1843. ],
  1844. "samplerTextures": [],
  1845. "buffers": [],
  1846. "images": []
  1847. },
  1848. "locals": {
  1849. "blocks": [],
  1850. "samplerTextures": [],
  1851. "buffers": [],
  1852. "images": []
  1853. },
  1854. "statistics": {
  1855. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  1856. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  1857. }
  1858. },
  1859. "defines": [
  1860. {
  1861. "name": "USE_FORWARD_PIPELINE",
  1862. "type": "boolean"
  1863. }
  1864. ]
  1865. }
  1866. ],
  1867. [
  1868. {
  1869. "passes": [
  1870. {
  1871. "primitive": 1,
  1872. "program": "internal/builtin-geometry-renderer|line-vs:vert|line-fs:front",
  1873. "priority": 245,
  1874. "blendState": {
  1875. "targets": [
  1876. {
  1877. "blend": true,
  1878. "blendSrc": 2,
  1879. "blendDst": 4,
  1880. "blendDstAlpha": 4
  1881. }
  1882. ]
  1883. },
  1884. "depthStencilState": {
  1885. "depthTest": false,
  1886. "depthWrite": false
  1887. }
  1888. }
  1889. ]
  1890. },
  1891. {
  1892. "passes": [
  1893. {
  1894. "primitive": 1,
  1895. "program": "internal/builtin-geometry-renderer|line-vs:vert|line-fs:front",
  1896. "priority": 245,
  1897. "blendState": {
  1898. "targets": [
  1899. {
  1900. "blend": true,
  1901. "blendSrc": 2,
  1902. "blendDst": 4,
  1903. "blendDstAlpha": 4
  1904. }
  1905. ]
  1906. },
  1907. "depthStencilState": {
  1908. "depthTest": true,
  1909. "depthWrite": false
  1910. }
  1911. },
  1912. {
  1913. "primitive": 1,
  1914. "program": "internal/builtin-geometry-renderer|line-vs:vert|line-fs:back",
  1915. "priority": 245,
  1916. "blendState": {
  1917. "targets": [
  1918. {
  1919. "blend": true,
  1920. "blendSrc": 2,
  1921. "blendDst": 4,
  1922. "blendDstAlpha": 4
  1923. }
  1924. ]
  1925. },
  1926. "depthStencilState": {
  1927. "depthTest": true,
  1928. "depthWrite": false,
  1929. "depthFunc": 4
  1930. }
  1931. }
  1932. ]
  1933. },
  1934. {
  1935. "passes": [
  1936. {
  1937. "primitive": 1,
  1938. "program": "internal/builtin-geometry-renderer|dashed-line-vs:vert|dashed-line-fs:front",
  1939. "priority": 245,
  1940. "blendState": {
  1941. "targets": [
  1942. {
  1943. "blend": true,
  1944. "blendSrc": 2,
  1945. "blendDst": 4,
  1946. "blendDstAlpha": 4
  1947. }
  1948. ]
  1949. },
  1950. "depthStencilState": {
  1951. "depthTest": false,
  1952. "depthWrite": false
  1953. }
  1954. }
  1955. ]
  1956. },
  1957. {
  1958. "passes": [
  1959. {
  1960. "primitive": 1,
  1961. "program": "internal/builtin-geometry-renderer|dashed-line-vs:vert|dashed-line-fs:front",
  1962. "priority": 245,
  1963. "blendState": {
  1964. "targets": [
  1965. {
  1966. "blend": true,
  1967. "blendSrc": 2,
  1968. "blendDst": 4,
  1969. "blendDstAlpha": 4
  1970. }
  1971. ]
  1972. },
  1973. "depthStencilState": {
  1974. "depthTest": true,
  1975. "depthWrite": false
  1976. }
  1977. },
  1978. {
  1979. "primitive": 1,
  1980. "program": "internal/builtin-geometry-renderer|dashed-line-vs:vert|dashed-line-fs:back",
  1981. "priority": 245,
  1982. "blendState": {
  1983. "targets": [
  1984. {
  1985. "blend": true,
  1986. "blendSrc": 2,
  1987. "blendDst": 4,
  1988. "blendDstAlpha": 4
  1989. }
  1990. ]
  1991. },
  1992. "depthStencilState": {
  1993. "depthTest": true,
  1994. "depthWrite": false,
  1995. "depthFunc": 4
  1996. }
  1997. }
  1998. ]
  1999. },
  2000. {
  2001. "passes": [
  2002. {
  2003. "program": "internal/builtin-geometry-renderer|triangle-vs:vert|triangle-fs:front",
  2004. "priority": 245,
  2005. "rasterizerState": {
  2006. "cullMode": 2
  2007. },
  2008. "blendState": {
  2009. "targets": [
  2010. {
  2011. "blend": true,
  2012. "blendSrc": 2,
  2013. "blendDst": 4,
  2014. "blendDstAlpha": 4
  2015. }
  2016. ]
  2017. },
  2018. "depthStencilState": {
  2019. "depthTest": false,
  2020. "depthWrite": false
  2021. }
  2022. }
  2023. ]
  2024. },
  2025. {
  2026. "passes": [
  2027. {
  2028. "program": "internal/builtin-geometry-renderer|triangle-vs:vert|triangle-fs:front",
  2029. "priority": 245,
  2030. "rasterizerState": {
  2031. "cullMode": 2
  2032. },
  2033. "blendState": {
  2034. "targets": [
  2035. {
  2036. "blend": true,
  2037. "blendSrc": 2,
  2038. "blendDst": 4,
  2039. "blendDstAlpha": 4
  2040. }
  2041. ]
  2042. },
  2043. "depthStencilState": {
  2044. "depthTest": true,
  2045. "depthWrite": false
  2046. }
  2047. },
  2048. {
  2049. "program": "internal/builtin-geometry-renderer|triangle-vs:vert|triangle-fs:back",
  2050. "priority": 245,
  2051. "rasterizerState": {
  2052. "cullMode": 2
  2053. },
  2054. "blendState": {
  2055. "targets": [
  2056. {
  2057. "blend": true,
  2058. "blendSrc": 2,
  2059. "blendDst": 4,
  2060. "blendDstAlpha": 4
  2061. }
  2062. ]
  2063. },
  2064. "depthStencilState": {
  2065. "depthTest": true,
  2066. "depthWrite": false,
  2067. "depthFunc": 4
  2068. }
  2069. }
  2070. ]
  2071. }
  2072. ]
  2073. ]
  2074. ],
  2075. 0,
  2076. 0,
  2077. [],
  2078. [],
  2079. []
  2080. ]