9b4d3fa5-89bf-4715-b69a-dbbd1efaf6a5.json 17 KB

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