511d2633-09a7-4bdd-ac42-f778032124b3.json 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  1. {
  2. "__type__": "cc.EffectAsset",
  3. "_name": "pipeline/skybox",
  4. "_objFlags": 0,
  5. "__editorExtras__": {},
  6. "_native": "",
  7. "techniques": [
  8. {
  9. "passes": [
  10. {
  11. "rasterizerState": {
  12. "cullMode": 0
  13. },
  14. "program": "pipeline/skybox|sky-vs:vert|sky-fs:frag",
  15. "priority": 245,
  16. "depthStencilState": {
  17. "depthTest": true,
  18. "depthWrite": false
  19. },
  20. "properties": {
  21. "environmentMap": {
  22. "value": "grey",
  23. "type": 31
  24. }
  25. }
  26. },
  27. {
  28. "propertyIndex": 0,
  29. "phase": "deferred-forward",
  30. "rasterizerState": {
  31. "cullMode": 0
  32. },
  33. "program": "pipeline/skybox|sky-vs:vert|sky-fs:frag",
  34. "priority": 245,
  35. "depthStencilState": {
  36. "depthTest": true,
  37. "depthWrite": false
  38. }
  39. }
  40. ]
  41. }
  42. ],
  43. "shaders": [
  44. {
  45. "blocks": [],
  46. "samplerTextures": [
  47. {
  48. "name": "environmentMap",
  49. "type": 31,
  50. "count": 1,
  51. "defines": [],
  52. "stageFlags": 16,
  53. "binding": 0
  54. }
  55. ],
  56. "samplers": [],
  57. "textures": [],
  58. "buffers": [],
  59. "images": [],
  60. "subpassInputs": [],
  61. "attributes": [
  62. {
  63. "name": "a_position",
  64. "defines": [],
  65. "format": 32,
  66. "location": 0
  67. },
  68. {
  69. "name": "a_normal",
  70. "defines": [],
  71. "format": 32,
  72. "location": 1
  73. },
  74. {
  75. "name": "a_texCoord",
  76. "defines": [],
  77. "format": 21,
  78. "location": 2
  79. },
  80. {
  81. "name": "a_tangent",
  82. "defines": [],
  83. "format": 44,
  84. "location": 3
  85. },
  86. {
  87. "name": "a_joints",
  88. "defines": [
  89. "CC_USE_SKINNING"
  90. ],
  91. "location": 4
  92. },
  93. {
  94. "name": "a_weights",
  95. "defines": [
  96. "CC_USE_SKINNING"
  97. ],
  98. "format": 44,
  99. "location": 5
  100. },
  101. {
  102. "name": "a_jointAnimInfo",
  103. "defines": [
  104. "USE_INSTANCING",
  105. "CC_USE_BAKED_ANIMATION"
  106. ],
  107. "format": 44,
  108. "isInstanced": true,
  109. "location": 6
  110. },
  111. {
  112. "name": "a_matWorld0",
  113. "defines": [
  114. "USE_INSTANCING"
  115. ],
  116. "format": 44,
  117. "isInstanced": true,
  118. "location": 7
  119. },
  120. {
  121. "name": "a_matWorld1",
  122. "defines": [
  123. "USE_INSTANCING"
  124. ],
  125. "format": 44,
  126. "isInstanced": true,
  127. "location": 8
  128. },
  129. {
  130. "name": "a_matWorld2",
  131. "defines": [
  132. "USE_INSTANCING"
  133. ],
  134. "format": 44,
  135. "isInstanced": true,
  136. "location": 9
  137. },
  138. {
  139. "name": "a_lightingMapUVParam",
  140. "defines": [
  141. "USE_INSTANCING",
  142. "CC_USE_LIGHTMAP"
  143. ],
  144. "format": 44,
  145. "isInstanced": true,
  146. "location": 10
  147. },
  148. {
  149. "name": "a_localShadowBiasAndProbeId",
  150. "defines": [
  151. "USE_INSTANCING"
  152. ],
  153. "format": 44,
  154. "isInstanced": true,
  155. "location": 11
  156. },
  157. {
  158. "name": "a_reflectionProbeData",
  159. "defines": [
  160. "USE_INSTANCING",
  161. "CC_USE_REFLECTION_PROBE"
  162. ],
  163. "format": 44,
  164. "isInstanced": true,
  165. "location": 12
  166. },
  167. {
  168. "name": "a_sh_linear_const_r",
  169. "defines": [
  170. "USE_INSTANCING",
  171. "CC_USE_LIGHT_PROBE"
  172. ],
  173. "format": 44,
  174. "isInstanced": true,
  175. "location": 13
  176. },
  177. {
  178. "name": "a_sh_linear_const_g",
  179. "defines": [
  180. "USE_INSTANCING",
  181. "CC_USE_LIGHT_PROBE"
  182. ],
  183. "format": 44,
  184. "isInstanced": true,
  185. "location": 14
  186. },
  187. {
  188. "name": "a_sh_linear_const_b",
  189. "defines": [
  190. "USE_INSTANCING",
  191. "CC_USE_LIGHT_PROBE"
  192. ],
  193. "format": 44,
  194. "isInstanced": true,
  195. "location": 15
  196. },
  197. {
  198. "name": "a_vertexId",
  199. "defines": [
  200. "CC_USE_MORPH"
  201. ],
  202. "format": 11,
  203. "location": 16
  204. }
  205. ],
  206. "varyings": [
  207. {
  208. "name": "viewDir",
  209. "type": 16,
  210. "count": 1,
  211. "defines": [],
  212. "stageFlags": 17,
  213. "location": 0
  214. }
  215. ],
  216. "fragColors": [
  217. {
  218. "name": "cc_FragColor",
  219. "typename": "vec4",
  220. "type": 16,
  221. "count": 1,
  222. "defines": [],
  223. "stageFlags": 16,
  224. "location": 0
  225. }
  226. ],
  227. "descriptors": [
  228. {
  229. "rate": 0,
  230. "blocks": [],
  231. "samplerTextures": [],
  232. "samplers": [],
  233. "textures": [],
  234. "buffers": [],
  235. "images": [],
  236. "subpassInputs": []
  237. },
  238. {
  239. "rate": 1,
  240. "blocks": [],
  241. "samplerTextures": [
  242. {
  243. "name": "environmentMap",
  244. "type": 31,
  245. "count": 1,
  246. "defines": [],
  247. "stageFlags": 16,
  248. "binding": 0
  249. }
  250. ],
  251. "samplers": [],
  252. "textures": [],
  253. "buffers": [],
  254. "images": [],
  255. "subpassInputs": []
  256. },
  257. {
  258. "rate": 2,
  259. "blocks": [],
  260. "samplerTextures": [],
  261. "samplers": [],
  262. "textures": [],
  263. "buffers": [],
  264. "images": [],
  265. "subpassInputs": []
  266. },
  267. {
  268. "rate": 3,
  269. "blocks": [
  270. {
  271. "tags": {
  272. "builtin": "global"
  273. },
  274. "name": "CCGlobal",
  275. "members": [
  276. {
  277. "name": "cc_time",
  278. "typename": "vec4",
  279. "type": 16,
  280. "count": 1,
  281. "precision": "highp "
  282. },
  283. {
  284. "name": "cc_screenSize",
  285. "typename": "vec4",
  286. "type": 16,
  287. "count": 1,
  288. "precision": "mediump "
  289. },
  290. {
  291. "name": "cc_nativeSize",
  292. "typename": "vec4",
  293. "type": 16,
  294. "count": 1,
  295. "precision": "mediump "
  296. },
  297. {
  298. "name": "cc_probeInfo",
  299. "typename": "vec4",
  300. "type": 16,
  301. "count": 1,
  302. "precision": "mediump "
  303. },
  304. {
  305. "name": "cc_debug_view_mode",
  306. "typename": "vec4",
  307. "type": 16,
  308. "count": 1,
  309. "precision": "mediump "
  310. }
  311. ],
  312. "defines": [],
  313. "stageFlags": 17
  314. },
  315. {
  316. "tags": {
  317. "builtin": "global"
  318. },
  319. "name": "CCCamera",
  320. "members": [
  321. {
  322. "name": "cc_matView",
  323. "typename": "mat4",
  324. "type": 25,
  325. "count": 1,
  326. "precision": "highp "
  327. },
  328. {
  329. "name": "cc_matViewInv",
  330. "typename": "mat4",
  331. "type": 25,
  332. "count": 1,
  333. "precision": "highp "
  334. },
  335. {
  336. "name": "cc_matProj",
  337. "typename": "mat4",
  338. "type": 25,
  339. "count": 1,
  340. "precision": "highp "
  341. },
  342. {
  343. "name": "cc_matProjInv",
  344. "typename": "mat4",
  345. "type": 25,
  346. "count": 1,
  347. "precision": "highp "
  348. },
  349. {
  350. "name": "cc_matViewProj",
  351. "typename": "mat4",
  352. "type": 25,
  353. "count": 1,
  354. "precision": "highp "
  355. },
  356. {
  357. "name": "cc_matViewProjInv",
  358. "typename": "mat4",
  359. "type": 25,
  360. "count": 1,
  361. "precision": "highp "
  362. },
  363. {
  364. "name": "cc_cameraPos",
  365. "typename": "vec4",
  366. "type": 16,
  367. "count": 1,
  368. "precision": "highp "
  369. },
  370. {
  371. "name": "cc_surfaceTransform",
  372. "typename": "vec4",
  373. "type": 16,
  374. "count": 1,
  375. "precision": "mediump "
  376. },
  377. {
  378. "name": "cc_screenScale",
  379. "typename": "vec4",
  380. "type": 16,
  381. "count": 1,
  382. "precision": "mediump "
  383. },
  384. {
  385. "name": "cc_exposure",
  386. "typename": "vec4",
  387. "type": 16,
  388. "count": 1,
  389. "precision": "mediump "
  390. },
  391. {
  392. "name": "cc_mainLitDir",
  393. "typename": "vec4",
  394. "type": 16,
  395. "count": 1,
  396. "precision": "mediump "
  397. },
  398. {
  399. "name": "cc_mainLitColor",
  400. "typename": "vec4",
  401. "type": 16,
  402. "count": 1,
  403. "precision": "mediump "
  404. },
  405. {
  406. "name": "cc_ambientSky",
  407. "typename": "vec4",
  408. "type": 16,
  409. "count": 1,
  410. "precision": "mediump "
  411. },
  412. {
  413. "name": "cc_ambientGround",
  414. "typename": "vec4",
  415. "type": 16,
  416. "count": 1,
  417. "precision": "mediump "
  418. },
  419. {
  420. "name": "cc_fogColor",
  421. "typename": "vec4",
  422. "type": 16,
  423. "count": 1,
  424. "precision": "mediump "
  425. },
  426. {
  427. "name": "cc_fogBase",
  428. "typename": "vec4",
  429. "type": 16,
  430. "count": 1,
  431. "precision": "mediump "
  432. },
  433. {
  434. "name": "cc_fogAdd",
  435. "typename": "vec4",
  436. "type": 16,
  437. "count": 1,
  438. "precision": "mediump "
  439. },
  440. {
  441. "name": "cc_nearFar",
  442. "typename": "vec4",
  443. "type": 16,
  444. "count": 1,
  445. "precision": "mediump "
  446. },
  447. {
  448. "name": "cc_viewPort",
  449. "typename": "vec4",
  450. "type": 16,
  451. "count": 1,
  452. "precision": "mediump "
  453. }
  454. ],
  455. "defines": [],
  456. "stageFlags": 17
  457. }
  458. ],
  459. "samplerTextures": [
  460. {
  461. "tags": {
  462. "builtin": "global"
  463. },
  464. "name": "cc_environment",
  465. "typename": "samplerCube",
  466. "type": 31,
  467. "count": 1,
  468. "defines": [],
  469. "stageFlags": 16
  470. }
  471. ],
  472. "samplers": [],
  473. "textures": [],
  474. "buffers": [],
  475. "images": [],
  476. "subpassInputs": []
  477. }
  478. ],
  479. "hash": 2384917432,
  480. "glsl4": {
  481. "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};\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nlayout(location = 0) in vec3 a_position;\nlayout(location = 1) in vec3 a_normal;\nlayout(location = 2) in vec2 a_texCoord;\nlayout(location = 3) in vec4 a_tangent;\n#if CC_USE_SKINNING\n layout(location = 4) in u32vec4 a_joints;\n layout(location = 5) in vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n layout(location = 6) in highp vec4 a_jointAnimInfo;\n #endif\n layout(location = 7) in vec4 a_matWorld0;\n layout(location = 8) in vec4 a_matWorld1;\n layout(location = 9) in vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n layout(location = 10) in vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n layout(location = 11) in vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n layout(location = 12) in vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n layout(location = 13) in vec4 a_sh_linear_const_r;\n layout(location = 14) in vec4 a_sh_linear_const_g;\n layout(location = 15) in vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n#endif\nlayout(location = 0) out mediump vec4 viewDir;\nvec4 vert () {\n viewDir = vec4(a_position, 1.0);\n mat4 matViewRotOnly = mat4(mat3(cc_matView));\n vec4 pos = matViewRotOnly * viewDir;\n if (cc_matProj[3].w > 0.0) {\n mat4 matProj = cc_matProj;\n matProj[0].x = 5.2;\n matProj[1].y = 2.6;\n matProj[2].zw = vec2(-1.0);\n matProj[3].zw = vec2(0.0);\n pos = matProj * pos;\n } else {\n pos = cc_matProj * pos;\n }\n pos.z = 0.99999 * pos.w;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  482. "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};\nlayout(set = 0, binding = 5) uniform samplerCube cc_environment;\nvec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec4 fragTextureLod (samplerCube tex, vec3 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec4 packRGBE (vec3 rgb) {\n highp float maxComp = max(max(rgb.r, rgb.g), rgb.b);\n highp float e = 128.0;\n if (maxComp > 0.0001) {\n e = log(maxComp) / log(1.1);\n e = ceil(e);\n e = clamp(e + 128.0, 0.0, 255.0);\n }\n highp float sc = 1.0 / pow(1.1, e - 128.0);\n vec3 encode = clamp(rgb * sc, vec3(0.0), vec3(1.0)) * 255.0;\n vec3 encode_rounded = floor(encode) + step(encode - floor(encode), vec3(0.5));\n return vec4(encode_rounded, e) / 255.0;\n}\nvec3 unpackRGBE (vec4 rgbe) {\n return rgbe.rgb * pow(1.1, rgbe.a * 255.0 - 128.0);\n}\nvec3 SRGBToLinear (vec3 gamma) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return gamma;\n }\n #endif\n#endif\n return gamma * gamma;\n}\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 HDRToLDR(vec3 color)\n{\n #if CC_USE_HDR\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (IS_DEBUG_VIEW_COMPOSITE_ENABLE_TONE_MAPPING)\n #endif\n {\n #if CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n }\n #endif\n return color;\n}\n#if defined(CC_USE_METAL) || defined(CC_USE_WGPU)\n#define CC_HANDLE_SAMPLE_NDC_FLIP_STATIC(y) y = -y\n#else\n#define CC_HANDLE_SAMPLE_NDC_FLIP_STATIC(y)\n#endif\nvec3 RotationVecFromAxisY(vec3 v, float cosTheta, float sinTheta)\n{\n vec3 result;\n result.x = dot(v, vec3(cosTheta, 0.0, -sinTheta));\n result.y = v.y;\n result.z = dot(v, vec3(sinTheta, 0.0, cosTheta));\n return result;\n}\nvec3 RotationVecFromAxisY(vec3 v, float rotateAngleArc)\n{\n return RotationVecFromAxisY(v, cos(rotateAngleArc), sin(rotateAngleArc));\n}\nlayout(location = 0) in mediump vec4 viewDir;\nlayout(set = 1, binding = 0) uniform samplerCube environmentMap;\nvec4 frag () {\n vec3 rotationDir = RotationVecFromAxisY(viewDir.xyz, cc_surfaceTransform.z, cc_surfaceTransform.w);\n #if USE_RGBE_CUBEMAP\n vec3 c = unpackRGBE(fragTextureLod(environmentMap, rotationDir.xyz, 0.0));\n #else\n vec3 c = SRGBToLinear(fragTextureLod(environmentMap, rotationDir.xyz, 0.0).rgb);\n #endif\n vec4 color = vec4(c * cc_ambientSky.w, 1.0);\n #if CC_USE_RGBE_OUTPUT\n color = packRGBE(color.rgb);\n #else\n color.rgb = HDRToLDR(color.rgb);\n color.rgb = LinearToSRGB(color.rgb);\n #endif\n return color;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
  483. },
  484. "glsl3": {
  485. "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};\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nin vec3 a_position;\nin vec3 a_normal;\nin vec2 a_texCoord;\nin vec4 a_tangent;\n#if CC_USE_SKINNING\n in vec4 a_joints;\n in vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n in highp vec4 a_jointAnimInfo;\n #endif\n in vec4 a_matWorld0;\n in vec4 a_matWorld1;\n in vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n in vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n in vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n in vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n in vec4 a_sh_linear_const_r;\n in vec4 a_sh_linear_const_g;\n in vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n in float a_vertexId;\n#endif\nout mediump vec4 viewDir;\nvec4 vert () {\n viewDir = vec4(a_position, 1.0);\n mat4 matViewRotOnly = mat4(mat3(cc_matView));\n vec4 pos = matViewRotOnly * viewDir;\n if (cc_matProj[3].w > 0.0) {\n mat4 matProj = cc_matProj;\n matProj[0].x = 5.2;\n matProj[1].y = 2.6;\n matProj[2].zw = vec2(-1.0);\n matProj[3].zw = vec2(0.0);\n pos = matProj * pos;\n } else {\n pos = cc_matProj * pos;\n }\n pos.z = 0.99999 * pos.w;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  486. "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};\nuniform samplerCube cc_environment;\nvec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec4 fragTextureLod (samplerCube tex, vec3 coord, float lod) {\n return textureLod(tex, coord, lod);\n}\nvec4 packRGBE (vec3 rgb) {\n highp float maxComp = max(max(rgb.r, rgb.g), rgb.b);\n highp float e = 128.0;\n if (maxComp > 0.0001) {\n e = log(maxComp) / log(1.1);\n e = ceil(e);\n e = clamp(e + 128.0, 0.0, 255.0);\n }\n highp float sc = 1.0 / pow(1.1, e - 128.0);\n vec3 encode = clamp(rgb * sc, vec3(0.0), vec3(1.0)) * 255.0;\n vec3 encode_rounded = floor(encode) + step(encode - floor(encode), vec3(0.5));\n return vec4(encode_rounded, e) / 255.0;\n}\nvec3 unpackRGBE (vec4 rgbe) {\n return rgbe.rgb * pow(1.1, rgbe.a * 255.0 - 128.0);\n}\nvec3 SRGBToLinear (vec3 gamma) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return gamma;\n }\n #endif\n#endif\n return gamma * gamma;\n}\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 HDRToLDR(vec3 color)\n{\n #if CC_USE_HDR\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (IS_DEBUG_VIEW_COMPOSITE_ENABLE_TONE_MAPPING)\n #endif\n {\n #if CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n }\n #endif\n return color;\n}\n#if defined(CC_USE_METAL) || defined(CC_USE_WGPU)\n#define CC_HANDLE_SAMPLE_NDC_FLIP_STATIC(y) y = -y\n#else\n#define CC_HANDLE_SAMPLE_NDC_FLIP_STATIC(y)\n#endif\nvec3 RotationVecFromAxisY(vec3 v, float cosTheta, float sinTheta)\n{\n vec3 result;\n result.x = dot(v, vec3(cosTheta, 0.0, -sinTheta));\n result.y = v.y;\n result.z = dot(v, vec3(sinTheta, 0.0, cosTheta));\n return result;\n}\nvec3 RotationVecFromAxisY(vec3 v, float rotateAngleArc)\n{\n return RotationVecFromAxisY(v, cos(rotateAngleArc), sin(rotateAngleArc));\n}\nin mediump vec4 viewDir;\nuniform samplerCube environmentMap;\nvec4 frag () {\n vec3 rotationDir = RotationVecFromAxisY(viewDir.xyz, cc_surfaceTransform.z, cc_surfaceTransform.w);\n #if USE_RGBE_CUBEMAP\n vec3 c = unpackRGBE(fragTextureLod(environmentMap, rotationDir.xyz, 0.0));\n #else\n vec3 c = SRGBToLinear(fragTextureLod(environmentMap, rotationDir.xyz, 0.0).rgb);\n #endif\n vec4 color = vec4(c * cc_ambientSky.w, 1.0);\n #if CC_USE_RGBE_OUTPUT\n color = packRGBE(color.rgb);\n #else\n color.rgb = HDRToLDR(color.rgb);\n color.rgb = LinearToSRGB(color.rgb);\n #endif\n return color;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
  487. },
  488. "glsl1": {
  489. "vert": "\nprecision highp float;\nuniform highp mat4 cc_matView;\n uniform highp mat4 cc_matProj;\n#define QUATER_PI 0.78539816340\n#define HALF_PI 1.57079632679\n#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI4 12.5663706144\n#define INV_QUATER_PI 1.27323954474\n#define INV_HALF_PI 0.63661977237\n#define INV_PI 0.31830988618\n#define INV_PI2 0.15915494309\n#define INV_PI4 0.07957747155\n#define EPSILON 1e-6\n#define EPSILON_LOWP 1e-4\n#define LOG2 1.442695\n#define EXP_VALUE 2.71828183\n#define FP_MAX 65504.0\n#define FP_SCALE 0.0009765625\n#define FP_SCALE_INV 1024.0\n#define GRAY_VECTOR vec3(0.299, 0.587, 0.114)\n#define LIGHT_MAP_TYPE_DISABLED 0\n#define LIGHT_MAP_TYPE_ALL_IN_ONE 1\n#define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2\n#define REFLECTION_PROBE_TYPE_NONE 0\n#define REFLECTION_PROBE_TYPE_CUBE 1\n#define REFLECTION_PROBE_TYPE_PLANAR 2\n#define REFLECTION_PROBE_TYPE_BLEND 3\n#define REFLECTION_PROBE_TYPE_BLEND_AND_SKYBOX 4\n#define LIGHT_TYPE_DIRECTIONAL 0.0\n#define LIGHT_TYPE_SPHERE 1.0\n#define LIGHT_TYPE_SPOT 2.0\n#define LIGHT_TYPE_POINT 3.0\n#define LIGHT_TYPE_RANGED_DIRECTIONAL 4.0\n#define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON_LOWP)\n#define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON_LOWP)\n#define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON_LOWP)\n#define IS_POINT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_POINT)) < EPSILON_LOWP)\n#define IS_RANGED_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_RANGED_DIRECTIONAL)) < EPSILON_LOWP)\n#define TONE_MAPPING_ACES 0\n#define TONE_MAPPING_LINEAR 1\n#define SURFACES_MAX_TRANSMIT_DEPTH_VALUE 999999.0\n#ifndef CC_SURFACES_DEBUG_VIEW_SINGLE\n #define CC_SURFACES_DEBUG_VIEW_SINGLE 1\n#endif\n#ifndef CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC\n #define CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC 2\n#endif\nstruct StandardVertInput {\n highp vec4 position;\n vec3 normal;\n vec4 tangent;\n};\nattribute vec3 a_position;\nattribute vec3 a_normal;\nattribute vec2 a_texCoord;\nattribute vec4 a_tangent;\n#if CC_USE_SKINNING\n attribute vec4 a_joints;\n attribute vec4 a_weights;\n#endif\n#if USE_INSTANCING\n #if CC_USE_BAKED_ANIMATION\n attribute highp vec4 a_jointAnimInfo;\n #endif\n attribute vec4 a_matWorld0;\n attribute vec4 a_matWorld1;\n attribute vec4 a_matWorld2;\n #if CC_USE_LIGHTMAP\n attribute vec4 a_lightingMapUVParam;\n #endif\n #if CC_USE_REFLECTION_PROBE || CC_RECEIVE_SHADOW\n #if CC_RECEIVE_SHADOW\n #endif\n attribute vec4 a_localShadowBiasAndProbeId;\n #endif\n #if CC_USE_REFLECTION_PROBE\n attribute vec4 a_reflectionProbeData;\n #endif\n #if CC_USE_LIGHT_PROBE\n attribute vec4 a_sh_linear_const_r;\n attribute vec4 a_sh_linear_const_g;\n attribute vec4 a_sh_linear_const_b;\n #endif\n#endif\n#if CC_USE_MORPH\n attribute float a_vertexId;\n#endif\nvarying mediump vec4 viewDir;\nvec4 vert () {\n viewDir = vec4(a_position, 1.0);\n mat4 matViewRotOnly = mat4(mat3(cc_matView));\n vec4 pos = matViewRotOnly * viewDir;\n if (cc_matProj[3].w > 0.0) {\n mat4 matProj = cc_matProj;\n matProj[0].x = 5.2;\n matProj[1].y = 2.6;\n matProj[2].zw = vec2(-1.0);\n matProj[3].zw = vec2(0.0);\n pos = matProj * pos;\n } else {\n pos = cc_matProj * pos;\n }\n pos.z = 0.99999 * pos.w;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
  490. "frag": "\n#ifdef GL_EXT_shader_texture_lod\n#extension GL_EXT_shader_texture_lod: enable\n#endif\nprecision mediump float;\nuniform mediump vec4 cc_surfaceTransform;\n uniform mediump vec4 cc_ambientSky;\nuniform samplerCube cc_environment;\nvec4 fragTextureLod (sampler2D tex, vec2 coord, float lod) {\n #ifdef GL_EXT_shader_texture_lod\n return texture2DLodEXT(tex, coord, lod);\n #else\n return texture2D(tex, coord, lod);\n #endif\n}\nvec4 fragTextureLod (samplerCube tex, vec3 coord, float lod) {\n #ifdef GL_EXT_shader_texture_lod\n return textureCubeLodEXT(tex, coord, lod);\n #else\n return textureCube(tex, coord, lod);\n #endif\n}\nvec4 packRGBE (vec3 rgb) {\n highp float maxComp = max(max(rgb.r, rgb.g), rgb.b);\n highp float e = 128.0;\n if (maxComp > 0.0001) {\n e = log(maxComp) / log(1.1);\n e = ceil(e);\n e = clamp(e + 128.0, 0.0, 255.0);\n }\n highp float sc = 1.0 / pow(1.1, e - 128.0);\n vec3 encode = clamp(rgb * sc, vec3(0.0), vec3(1.0)) * 255.0;\n vec3 encode_rounded = floor(encode) + step(encode - floor(encode), vec3(0.5));\n return vec4(encode_rounded, e) / 255.0;\n}\nvec3 unpackRGBE (vec4 rgbe) {\n return rgbe.rgb * pow(1.1, rgbe.a * 255.0 - 128.0);\n}\nvec3 SRGBToLinear (vec3 gamma) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return gamma;\n }\n #endif\n#endif\n return gamma * gamma;\n}\nvec3 LinearToSRGB(vec3 linear) {\n#ifdef CC_USE_SURFACE_SHADER\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (!IS_DEBUG_VIEW_COMPOSITE_ENABLE_GAMMA_CORRECTION) {\n return linear;\n }\n #endif\n#endif\n return sqrt(linear);\n}\nvec3 ACESToneMap (vec3 color) {\n color = min(color, vec3(8.0));\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nvec3 HDRToLDR(vec3 color)\n{\n #if CC_USE_HDR\n #if CC_USE_DEBUG_VIEW == CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC && CC_SURFACES_ENABLE_DEBUG_VIEW\n if (IS_DEBUG_VIEW_COMPOSITE_ENABLE_TONE_MAPPING)\n #endif\n {\n #if CC_TONE_MAPPING_TYPE == HDR_TONE_MAPPING_ACES\n color.rgb = ACESToneMap(color.rgb);\n #endif\n }\n #endif\n return color;\n}\n#if defined(CC_USE_METAL) || defined(CC_USE_WGPU)\n#define CC_HANDLE_SAMPLE_NDC_FLIP_STATIC(y) y = -y\n#else\n#define CC_HANDLE_SAMPLE_NDC_FLIP_STATIC(y)\n#endif\nvec3 RotationVecFromAxisY(vec3 v, float cosTheta, float sinTheta)\n{\n vec3 result;\n result.x = dot(v, vec3(cosTheta, 0.0, -sinTheta));\n result.y = v.y;\n result.z = dot(v, vec3(sinTheta, 0.0, cosTheta));\n return result;\n}\nvec3 RotationVecFromAxisY(vec3 v, float rotateAngleArc)\n{\n return RotationVecFromAxisY(v, cos(rotateAngleArc), sin(rotateAngleArc));\n}\nvarying mediump vec4 viewDir;\nuniform samplerCube environmentMap;\nvec4 frag () {\n vec3 rotationDir = RotationVecFromAxisY(viewDir.xyz, cc_surfaceTransform.z, cc_surfaceTransform.w);\n #if USE_RGBE_CUBEMAP\n vec3 c = unpackRGBE(fragTextureLod(environmentMap, rotationDir.xyz, 0.0));\n #else\n vec3 c = SRGBToLinear(fragTextureLod(environmentMap, rotationDir.xyz, 0.0).rgb);\n #endif\n vec4 color = vec4(c * cc_ambientSky.w, 1.0);\n #if CC_USE_RGBE_OUTPUT\n color = packRGBE(color.rgb);\n #else\n color.rgb = HDRToLDR(color.rgb);\n color.rgb = LinearToSRGB(color.rgb);\n #endif\n return color;\n}\nvoid main() { gl_FragColor = frag(); }"
  491. },
  492. "builtins": {
  493. "globals": {
  494. "blocks": [
  495. {
  496. "name": "CCGlobal",
  497. "defines": []
  498. },
  499. {
  500. "name": "CCCamera",
  501. "defines": []
  502. }
  503. ],
  504. "samplerTextures": [
  505. {
  506. "name": "cc_environment",
  507. "defines": []
  508. }
  509. ],
  510. "buffers": [],
  511. "images": []
  512. },
  513. "locals": {
  514. "blocks": [],
  515. "samplerTextures": [],
  516. "buffers": [],
  517. "images": []
  518. },
  519. "statistics": {
  520. "CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
  521. "CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
  522. }
  523. },
  524. "defines": [
  525. {
  526. "name": "USE_INSTANCING",
  527. "type": "boolean",
  528. "defines": [],
  529. "editor": {
  530. "elevated": true
  531. }
  532. },
  533. {
  534. "name": "CC_USE_SKINNING",
  535. "type": "boolean",
  536. "defines": []
  537. },
  538. {
  539. "name": "CC_USE_BAKED_ANIMATION",
  540. "type": "boolean",
  541. "defines": [
  542. "USE_INSTANCING"
  543. ]
  544. },
  545. {
  546. "name": "CC_USE_LIGHTMAP",
  547. "type": "boolean",
  548. "defines": [
  549. "USE_INSTANCING"
  550. ]
  551. },
  552. {
  553. "name": "CC_USE_REFLECTION_PROBE",
  554. "type": "boolean",
  555. "defines": [
  556. "USE_INSTANCING"
  557. ]
  558. },
  559. {
  560. "name": "CC_RECEIVE_SHADOW",
  561. "type": "boolean",
  562. "defines": [
  563. "USE_INSTANCING"
  564. ]
  565. },
  566. {
  567. "name": "CC_USE_LIGHT_PROBE",
  568. "type": "boolean",
  569. "defines": [
  570. "USE_INSTANCING"
  571. ]
  572. },
  573. {
  574. "name": "CC_USE_MORPH",
  575. "type": "boolean",
  576. "defines": []
  577. },
  578. {
  579. "name": "CC_USE_IBL",
  580. "type": "number",
  581. "defines": [],
  582. "range": [
  583. 0,
  584. 2
  585. ]
  586. },
  587. {
  588. "name": "CC_USE_DEBUG_VIEW",
  589. "type": "number",
  590. "defines": [],
  591. "range": [
  592. 0,
  593. 3
  594. ]
  595. },
  596. {
  597. "name": "CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC",
  598. "type": "boolean",
  599. "defines": [
  600. "CC_USE_DEBUG_VIEW"
  601. ]
  602. },
  603. {
  604. "name": "CC_SURFACES_ENABLE_DEBUG_VIEW",
  605. "type": "boolean",
  606. "defines": [
  607. "CC_USE_DEBUG_VIEW",
  608. "CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC"
  609. ]
  610. },
  611. {
  612. "name": "CC_USE_HDR",
  613. "type": "boolean",
  614. "defines": []
  615. },
  616. {
  617. "name": "CC_TONE_MAPPING_TYPE",
  618. "type": "number",
  619. "defines": [
  620. "CC_USE_HDR"
  621. ],
  622. "range": [
  623. 0,
  624. 3
  625. ]
  626. },
  627. {
  628. "name": "HDR_TONE_MAPPING_ACES",
  629. "type": "boolean",
  630. "defines": [
  631. "CC_TONE_MAPPING_TYPE",
  632. "CC_USE_HDR"
  633. ]
  634. },
  635. {
  636. "name": "USE_RGBE_CUBEMAP",
  637. "type": "boolean",
  638. "defines": []
  639. },
  640. {
  641. "name": "CC_USE_RGBE_OUTPUT",
  642. "type": "boolean",
  643. "defines": []
  644. }
  645. ],
  646. "name": "pipeline/skybox|sky-vs:vert|sky-fs:frag"
  647. }
  648. ],
  649. "combinations": [],
  650. "hideInEditor": false
  651. }