d9937e59-61fe-4ec6-92ab-7ac5a19c89b0.json 13 KB

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