cb2c332a-fa5e-4235-a129-f011634bb7ad.json 17 KB

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