Deploy website - based on b241545287

This commit is contained in:
SmallMain
2022-06-23 18:09:23 +08:00
parent 47c8be2ffb
commit 8eda0a5ca4
501 changed files with 228352 additions and 215 deletions

View File

@@ -0,0 +1,256 @@
{
"paths": {
"77hE9EwNpMlKl/+sGrhEVR": [
"multi-batcher/images/1",
"cc.Texture2D"
],
"c4+eoUuahAOa4lmC/4Hkdi": [
"multi-batcher/images/1",
"cc.SpriteFrame",
1
],
"b6FhIxTWVHXKa7qBmehR6I": [
"multi-batcher/images/etc1_rgb_a",
"cc.Texture2D"
],
"eahTDGUrZBV4Y+i+JslTuW": [
"multi-batcher/images/etc1_rgb_a",
"cc.SpriteFrame",
1
],
"0a5R1NT2lDxqcI2pwtgfb1": [
"multi-batcher/images/png",
"cc.SpriteFrame",
1
],
"ebcqWiiDdPRaJKJIbu9ft4": [
"multi-batcher/images/png",
"cc.Texture2D"
],
"22JHeF7zBLZqnS68r2p/bo": [
"multi-batcher/images/pvrtc2_rgb_a",
"cc.Texture2D"
],
"41Zz922rlJZZmZnFZqPxVK": [
"multi-batcher/images/pvrtc2_rgb_a",
"cc.SpriteFrame",
1
],
"43jA/TdMpFA7K8IIjNbb9M": [
"multi-batcher/images/sheep_down_0",
"cc.Texture2D"
],
"8fHzmU6I5EBqjpHEb0Xl3i": [
"multi-batcher/images/sheep_down_0",
"cc.SpriteFrame",
1
],
"10Drosz6JPsKWsqV+bRh/A": [
"multi-batcher/images/sheep_jump_2",
"cc.Texture2D"
],
"2dPOEW20pCTLs79c0WyZVp": [
"multi-batcher/images/sheep_jump_2",
"cc.SpriteFrame",
1
],
"44mZ0YUdFAF56mmNytjs31": [
"multi-batcher/images/sheep_jump_3",
"cc.Texture2D"
],
"b48cuQCqRMLaIzf9I1fTbW": [
"multi-batcher/images/sheep_jump_3",
"cc.SpriteFrame",
1
],
"55URLSNf5K3IyZBezfiMKa": [
"multi-batcher/images/sheep_run_1",
"cc.SpriteFrame",
1
],
"7aeIQwZiFL1YbOCVeiFt1p": [
"multi-batcher/images/sheep_run_1",
"cc.Texture2D"
],
"14W7pBGWJJ7q7JCPsVTovy": [
"multi-batcher/multi-batcher",
"cc.Prefab"
],
"c58wUeG09DhJOcuDi8uPW/": [
"multi-material/multi-material",
"cc.Prefab"
],
"0eAM9yHrBFe4PSAXHMHNl+": [
"multi-material/test-material",
"cc.Material"
]
},
"uuids": [
"0a5R1NT2lDxqcI2pwtgfb1",
"0eAM9yHrBFe4PSAXHMHNl+",
"10Drosz6JPsKWsqV+bRh/A",
"14W7pBGWJJ7q7JCPsVTovy",
"1cijzBpFJCdoSNK98w5oUq",
"22JHeF7zBLZqnS68r2p/bo",
"29FYIk+N1GYaeWH/q1NxQO",
"2cDGL4OAVN0ZbEl3w2urT8",
"2dPOEW20pCTLs79c0WyZVp",
"41Zz922rlJZZmZnFZqPxVK",
"43jA/TdMpFA7K8IIjNbb9M",
"44mZ0YUdFAF56mmNytjs31",
"45vlnzVlVDaZ6fRVyB0t3Z",
"55URLSNf5K3IyZBezfiMKa",
"5cO7kybDxGj4ipyMYdRYZB",
"5dz/wYuRNGDqDZXXT0zaEr",
"5f5dyqtRNNxaFmVzYns6FZ",
"6eBWFz0oVHPLIGQKf/9Thu",
"71VhFCTINJM6/Ky3oX9nBT",
"77hE9EwNpMlKl/+sGrhEVR",
"7aeIQwZiFL1YbOCVeiFt1p",
"80AR/OlBFOoajT99htLYeJ",
"8029xEf4FHy49dWo6NK8c7",
"8c20Sso/ZEn7NUfNSM+EBh",
"8fHzmU6I5EBqjpHEb0Xl3i",
"a2MjXRFdtLlYQ5ouAFv/+R",
"a7ZscqX+JCIZRS157bMyhq",
"b4P/PCArtIdIH38t6mlw8Y",
"b48cuQCqRMLaIzf9I1fTbW",
"b6FhIxTWVHXKa7qBmehR6I",
"bc2ZOJo5NCbrI0FXxitEvE",
"c1Hf3Sl8ZAnJwP/fpoHxap",
"c4+eoUuahAOa4lmC/4Hkdi",
"c58wUeG09DhJOcuDi8uPW/",
"d9xFMK7wVFwbAS60aG9McP",
"e8Ueib+qJEhL6mXAHdnwbi",
"e97GVMl6JHh5Ml5qEDdSGa",
"eahTDGUrZBV4Y+i+JslTuW",
"ebcqWiiDdPRaJKJIbu9ft4",
"ecpdLyjvZBwrvm+cedCcQy",
"f0BIwQ8D5Ml7nTNQbh1YlS"
],
"scenes": {},
"redirect": [
"1cijzBpFJCdoSNK98w5oUq",
0,
"2cDGL4OAVN0ZbEl3w2urT8",
0,
"45vlnzVlVDaZ6fRVyB0t3Z",
0,
"5cO7kybDxGj4ipyMYdRYZB",
1,
"5f5dyqtRNNxaFmVzYns6FZ",
1,
"6eBWFz0oVHPLIGQKf/9Thu",
0,
"80AR/OlBFOoajT99htLYeJ",
0,
"8029xEf4FHy49dWo6NK8c7",
0,
"a2MjXRFdtLlYQ5ouAFv/+R",
1,
"a7ZscqX+JCIZRS157bMyhq",
0,
"bc2ZOJo5NCbrI0FXxitEvE",
0,
"c1Hf3Sl8ZAnJwP/fpoHxap",
0,
"d9xFMK7wVFwbAS60aG9McP",
0,
"ecpdLyjvZBwrvm+cedCcQy",
2
],
"deps": [
"common",
"main",
"internal"
],
"packs": {},
"name": "multi-render",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"0a5R1NT2lDxqcI2pwtgfb1",
"97533",
"0eAM9yHrBFe4PSAXHMHNl+",
"588d4",
"10Drosz6JPsKWsqV+bRh/A",
"96693",
"14W7pBGWJJ7q7JCPsVTovy",
"86261",
"22JHeF7zBLZqnS68r2p/bo",
"96693",
"29FYIk+N1GYaeWH/q1NxQO",
"22d68",
"2dPOEW20pCTLs79c0WyZVp",
"7974d",
"41Zz922rlJZZmZnFZqPxVK",
"a530e",
"43jA/TdMpFA7K8IIjNbb9M",
"96693",
"44mZ0YUdFAF56mmNytjs31",
"96693",
"55URLSNf5K3IyZBezfiMKa",
"c7066",
"5dz/wYuRNGDqDZXXT0zaEr",
"a50cc",
"71VhFCTINJM6/Ky3oX9nBT",
"7be92",
"77hE9EwNpMlKl/+sGrhEVR",
"96693",
"7aeIQwZiFL1YbOCVeiFt1p",
"96693",
"8c20Sso/ZEn7NUfNSM+EBh",
"6411d",
"8fHzmU6I5EBqjpHEb0Xl3i",
"d3477",
"b4P/PCArtIdIH38t6mlw8Y",
"7be92",
"b48cuQCqRMLaIzf9I1fTbW",
"9b27a",
"b6FhIxTWVHXKa7qBmehR6I",
"96693",
"c4+eoUuahAOa4lmC/4Hkdi",
"25682",
"c58wUeG09DhJOcuDi8uPW/",
"3d712",
"e8Ueib+qJEhL6mXAHdnwbi",
"7be92",
"e97GVMl6JHh5Ml5qEDdSGa",
"a358a",
"eahTDGUrZBV4Y+i+JslTuW",
"e63c4",
"ebcqWiiDdPRaJKJIbu9ft4",
"96693",
"f0BIwQ8D5Ml7nTNQbh1YlS",
"04143"
],
"native": [
"10Drosz6JPsKWsqV+bRh/A",
"eae97",
"22JHeF7zBLZqnS68r2p/bo",
"2ecc6",
"43jA/TdMpFA7K8IIjNbb9M",
"28847",
"44mZ0YUdFAF56mmNytjs31",
"99af5",
"71VhFCTINJM6/Ky3oX9nBT",
"c06a9",
"77hE9EwNpMlKl/+sGrhEVR",
"92cfc",
"7aeIQwZiFL1YbOCVeiFt1p",
"9e7e3",
"b4P/PCArtIdIH38t6mlw8Y",
"83fcc",
"b6FhIxTWVHXKa7qBmehR6I",
"6159f",
"e8Ueib+qJEhL6mXAHdnwbi",
"90cf4",
"ebcqWiiDdPRaJKJIbu9ft4",
"46cee"
]
}
}

View File

@@ -0,0 +1,51 @@
[
1,
[
"ebcqWiiDdPRaJKJIbu9ft4"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "png",
"rect": [
33,
5,
143,
150
],
"offset": [
-9.5,
-0.5
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,103 @@
[
1,
[
"c1Hf3Sl8ZAnJwP/fpoHxap",
"1cijzBpFJCdoSNK98w5oUq",
"6eBWFz0oVHPLIGQKf/9Thu",
"45vlnzVlVDaZ6fRVyB0t3Z",
"d9xFMK7wVFwbAS60aG9McP",
"5dz/wYuRNGDqDZXXT0zaEr"
],
[
"texture",
"texture2",
"texture3",
"texture4",
"texture5",
"_effectAsset"
],
[
[
"cc.Material",
[
"_name",
"_techniqueData"
],
2,
11
]
],
[
[
0,
0,
1,
2
]
],
[
[
0,
"test-material",
[
{},
"0",
11,
[
{
"defines": {
"USE_TEXTURE": true,
"USE_MULTI_TEXTURE": true
}
},
"props",
11,
[
{},
"texture",
6,
0,
"texture2",
6,
1,
"texture3",
6,
2,
"texture4",
6,
3,
"texture5",
6,
4
]
]
]
]
],
0,
0,
[
0,
0,
0,
0,
0,
0
],
[
0,
1,
2,
3,
4,
5
],
[
0,
1,
2,
3,
4,
5
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"71VhFCTINJM6/Ky3oX9nBT"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_btn_disabled",
"rect": [
0,
0,
40,
40
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
12,
12,
12,
12
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"10Drosz6JPsKWsqV+bRh/A"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_jump_2",
"rect": [
24,
24,
160,
104
],
"offset": [
-10,
3.5
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"22JHeF7zBLZqnS68r2p/bo"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "pvrtc2_rgb_a",
"rect": [
29,
13,
147,
138
],
"offset": [
-11.5,
-2.5
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"7aeIQwZiFL1YbOCVeiFt1p"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_run_1",
"rect": [
27,
20,
176,
115
],
"offset": [
1,
2
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,321 @@
[
1,
0,
0,
[
[
"cc.EffectAsset",
[
"_name",
"shaders",
"techniques"
],
0
]
],
[
[
0,
0,
1,
2,
4
]
],
[
[
0,
"multi-2d-sprite",
[
{
"hash": 3894394603,
"record": null,
"name": "multi-2d-sprite|vs|fs",
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "USE_TEXTURE",
"type": "boolean",
"defines": []
},
{
"name": "USE_MULTI_TEXTURE",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"name": "CC_USE_MODEL",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture2",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture3",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture4",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture5",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture6",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture7",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture8",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"binding": 0,
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
]
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"binding": 30,
"defines": [
"USE_TEXTURE"
]
},
{
"name": "texture2",
"type": 29,
"count": 1,
"binding": 31,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture3",
"type": 29,
"count": 1,
"binding": 32,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture4",
"type": 29,
"count": 1,
"binding": 33,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture5",
"type": 29,
"count": 1,
"binding": 34,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture6",
"type": 29,
"count": 1,
"binding": 35,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture7",
"type": 29,
"count": 1,
"binding": 36,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture8",
"type": 29,
"count": 1,
"binding": 37,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
}
]
}
],
[
{
"passes": [
{
"program": "multi-2d-sprite|vs|fs",
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"texture2": {
"value": "white",
"type": 29
},
"texture3": {
"value": "white",
"type": 29
},
"texture4": {
"value": "white",
"type": 29
},
"texture5": {
"value": "white",
"type": 29
},
"texture6": {
"value": "white",
"type": 29
},
"texture7": {
"value": "white",
"type": 29
},
"texture8": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"type": 13,
"value": [
0.5
]
}
}
}
]
}
]
]
],
0,
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"6eBWFz0oVHPLIGQKf/9Thu"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_sprite",
"rect": [
0,
2,
40,
36
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"43jA/TdMpFA7K8IIjNbb9M"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_down_0",
"rect": [
2,
61,
224,
87
],
"offset": [
0,
-25
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"44mZ0YUdFAF56mmNytjs31"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_jump_3",
"rect": [
26,
24,
152,
115
],
"offset": [
-12,
-2
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"77hE9EwNpMlKl/+sGrhEVR"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1",
"rect": [
32,
36,
152,
103
],
"offset": [
-6,
-8
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"b4P/PCArtIdIH38t6mlw8Y"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_btn_pressed",
"rect": [
0,
0,
40,
40
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
12,
12,
12,
12
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"b6FhIxTWVHXKa7qBmehR6I"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "etc1_rgb_a",
"rect": [
24,
12,
154,
131
],
"offset": [
-13,
2
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"e8Ueib+qJEhL6mXAHdnwbi"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_btn_normal",
"rect": [
0,
0,
40,
40
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
12,
12,
12,
12
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,100 @@
window.__require = function e(t, n, r) {
function s(o, u) {
if (!n[o]) {
if (!t[o]) {
var b = o.split("/");
b = b[b.length - 1];
if (!t[b]) {
var a = "function" == typeof __require && __require;
if (!u && a) return a(b, !0);
if (i) return i(b, !0);
throw new Error("Cannot find module '" + o + "'");
}
o = b;
}
var f = n[o] = {
exports: {}
};
t[o][0].call(f.exports, function(e) {
var n = t[o][1][e];
return s(n || e);
}, f, f.exports, e, t, n, r);
}
return n[o].exports;
}
var i = "function" == typeof __require && __require;
for (var o = 0; o < r.length; o++) s(r[o]);
return s;
}({
"multi-batcher": [ function(require, module, exports) {
"use strict";
cc._RF.push(module, "3e9188DEK9FCYlYeL+jvmrQ", "multi-batcher");
"use strict";
var __extends = this && this.__extends || function() {
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(d, b) {
d.__proto__ = b;
} || function(d, b) {
for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
};
return extendStatics(d, b);
};
return function(d, b) {
extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", {
value: true
});
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var MultiBatcher = function(_super) {
__extends(MultiBatcher, _super);
function MultiBatcher() {
var _this = null !== _super && _super.apply(this, arguments) || this;
_this.batchBtn = null;
_this.cancelBtn = null;
_this.textures = null;
return _this;
}
MultiBatcher.prototype.onLoad = function() {
var _this = this;
this.batchBtn.on("click", function() {
var batcher = new cc.sp.MultiBatcher();
batcher.init();
_this.textures.children.forEach(function(v) {
var sprite = v.getComponent(cc.Sprite);
batcher.requsetMaterial(sprite.spriteFrame.getTexture());
sprite.setVertsDirty();
});
});
this.cancelBtn.on("click", function() {
_this.textures.children.forEach(function(v) {
var sprite = v.getComponent(cc.Sprite);
sprite.spriteFrame.getTexture().unlinkMaterial();
sprite.setMaterial(0, cc.Material.getBuiltinMaterial("2d-sprite"));
sprite.setVertsDirty();
});
});
};
__decorate([ property(cc.Node) ], MultiBatcher.prototype, "batchBtn", void 0);
__decorate([ property(cc.Node) ], MultiBatcher.prototype, "cancelBtn", void 0);
__decorate([ property(cc.Node) ], MultiBatcher.prototype, "textures", void 0);
MultiBatcher = __decorate([ ccclass ], MultiBatcher);
return MultiBatcher;
}(cc.Component);
exports.default = MultiBatcher;
cc._RF.pop();
}, {} ]
}, {}, [ "multi-batcher" ]);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["assets/multi-render/multi-batcher/multi-batcher.ts"],"names":["_a","cc","_decorator","ccclass","property","MultiBatcher","_super","__extends","_this","apply","this","arguments","batchBtn","cancelBtn","textures","prototype","onLoad","on","batcher","sp","init","children","forEach","v","sprite","getComponent","Sprite","requsetMaterial","spriteFrame","getTexture","setVertsDirty","unlinkMaterial","setMaterial","Material","getBuiltinMaterial","__decorate","Node","Component","exports","default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACM,IAAAA,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,eAAA,SAAAC;MAA0CC,UAAAF,cAAAC;MAA1C,SAAAD;QAAA,IAAAG,QAAA,SAAAF,UAAAA,OAAAG,MAAAC,MAAAC,cAAAD;QAGIF,MAAAI,WAAA;QAGAJ,MAAAK,YAAA;QAGAL,MAAAM,WAAA;;;MAGUT,aAAAU,UAAAC,SAAA;QAAV,IAAAR,QAAAE;QACIA,KAAAE,SAAAK,GAAA,SAAA;UACI,IAAAC,UAAA,IAAAjB,GAAAkB,GAAAd;UACAa,QAAAE;UACAZ,MAAAM,SAAAO,SAAAC,QAAA,SAAAC;YACI,IAAAC,SAAAD,EAAAE,aAAAxB,GAAAyB;YACAR,QAAAS,gBAAAH,OAAAI,YAAAC;YACAL,OAAAM;;;QAIRpB,KAAAG,UAAAI,GAAA,SAAA;UACIT,MAAAM,SAAAO,SAAAC,QAAA,SAAAC;YACI,IAAAC,SAAAD,EAAAE,aAAAxB,GAAAyB;YACAF,OAAAI,YAAAC,aAAAE;YACAP,OAAAQ,YAAA,GAAA/B,GAAAgC,SAAAC,mBAAA;YACAV,OAAAM;;;;MAzBZK,WAAA,EADC/B,SAAAH,GAAAmC,SACwB/B,aAAAU,WAAA,iBAAA;MAGzBoB,WAAA,EADC/B,SAAAH,GAAAmC,SACyB/B,aAAAU,WAAA,kBAAA;MAG1BoB,WAAA,EADC/B,SAAAH,GAAAmC,SACwB/B,aAAAU,WAAA,iBAAA;MATRV,eAAA8B,WAAA,EADpBhC,WACoBE;MAiCrB,OAAAA;KAjCA,CAAAJ,GAAAoC;IAAqBC,QAAAC,UAAAlC","sourcesContent":["\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class MultiBatcher extends cc.Component {\n\n @property(cc.Node)\n batchBtn: cc.Node = null;\n\n @property(cc.Node)\n cancelBtn: cc.Node = null;\n\n @property(cc.Node)\n textures: cc.Node = null;\n\n\n protected onLoad(): void {\n this.batchBtn.on('click', () => {\n const batcher = new cc.sp.MultiBatcher();\n batcher.init();\n this.textures.children.forEach(v => {\n const sprite = v.getComponent(cc.Sprite);\n batcher.requsetMaterial(sprite.spriteFrame.getTexture());\n sprite.setVertsDirty();\n });\n });\n\n this.cancelBtn.on('click', () => {\n this.textures.children.forEach(v => {\n const sprite = v.getComponent(cc.Sprite);\n sprite.spriteFrame.getTexture().unlinkMaterial();\n sprite.setMaterial(0, cc.Material.getBuiltinMaterial('2d-sprite'));\n sprite.setVertsDirty();\n });\n });\n }\n\n}\n"],"file":"index.js"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB