feat: integrate room framework and isolated subgame bundles
Complete room UI and protocol integration, move game definitions and resources behind bundle entries, publish authoritative version XML, and document single-game builds. Include all current resource changes and experiment artifacts.
@@ -0,0 +1,420 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
[
|
||||
"node",
|
||||
"_cameraComponent",
|
||||
"scene",
|
||||
"_parent"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.SceneAsset",
|
||||
[
|
||||
"_name"
|
||||
],
|
||||
2
|
||||
],
|
||||
[
|
||||
"cc.Scene",
|
||||
[
|
||||
"_name",
|
||||
"_children",
|
||||
"_globals"
|
||||
],
|
||||
2,
|
||||
2,
|
||||
4
|
||||
],
|
||||
[
|
||||
"cc.Node",
|
||||
[
|
||||
"_name",
|
||||
"_layer",
|
||||
"_id",
|
||||
"_children",
|
||||
"_components",
|
||||
"_lpos"
|
||||
],
|
||||
0,
|
||||
2,
|
||||
9,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.Node",
|
||||
[
|
||||
"_name",
|
||||
"_parent",
|
||||
"_components",
|
||||
"_lpos"
|
||||
],
|
||||
2,
|
||||
1,
|
||||
2,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.Camera",
|
||||
[
|
||||
"_projection",
|
||||
"_orthoHeight",
|
||||
"_near",
|
||||
"_far",
|
||||
"_visibility",
|
||||
"node",
|
||||
"_color"
|
||||
],
|
||||
-2,
|
||||
1,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.UITransform",
|
||||
[
|
||||
"node",
|
||||
"_contentSize"
|
||||
],
|
||||
3,
|
||||
1,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.Canvas",
|
||||
[
|
||||
"node",
|
||||
"_cameraComponent"
|
||||
],
|
||||
3,
|
||||
1,
|
||||
1
|
||||
],
|
||||
[
|
||||
"cc.Widget",
|
||||
[
|
||||
"_alignFlags",
|
||||
"_top",
|
||||
"_bottom",
|
||||
"node"
|
||||
],
|
||||
0,
|
||||
1
|
||||
],
|
||||
[
|
||||
"cc.SceneGlobals",
|
||||
[
|
||||
"ambient",
|
||||
"shadows",
|
||||
"_skybox",
|
||||
"fog",
|
||||
"octree",
|
||||
"skin",
|
||||
"lightProbeInfo",
|
||||
"postSettings"
|
||||
],
|
||||
3,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4,
|
||||
4
|
||||
],
|
||||
[
|
||||
"cc.AmbientInfo",
|
||||
[
|
||||
"_skyColorHDR"
|
||||
],
|
||||
3,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.ShadowsInfo",
|
||||
[],
|
||||
3
|
||||
],
|
||||
[
|
||||
"cc.SkyboxInfo",
|
||||
[],
|
||||
3
|
||||
],
|
||||
[
|
||||
"cc.FogInfo",
|
||||
[],
|
||||
3
|
||||
],
|
||||
[
|
||||
"cc.OctreeInfo",
|
||||
[],
|
||||
3
|
||||
],
|
||||
[
|
||||
"cc.SkinInfo",
|
||||
[],
|
||||
3
|
||||
],
|
||||
[
|
||||
"cc.LightProbeInfo",
|
||||
[],
|
||||
3
|
||||
],
|
||||
[
|
||||
"cc.PostSettingsInfo",
|
||||
[],
|
||||
3
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2
|
||||
],
|
||||
[
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
4
|
||||
],
|
||||
[
|
||||
3,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
2
|
||||
],
|
||||
[
|
||||
4,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
6
|
||||
],
|
||||
[
|
||||
5,
|
||||
0,
|
||||
1,
|
||||
1
|
||||
],
|
||||
[
|
||||
6,
|
||||
0,
|
||||
1,
|
||||
1
|
||||
],
|
||||
[
|
||||
7,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
[
|
||||
8,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
1
|
||||
],
|
||||
[
|
||||
9,
|
||||
0,
|
||||
1
|
||||
],
|
||||
[
|
||||
10,
|
||||
1
|
||||
],
|
||||
[
|
||||
11,
|
||||
1
|
||||
],
|
||||
[
|
||||
12,
|
||||
1
|
||||
],
|
||||
[
|
||||
13,
|
||||
1
|
||||
],
|
||||
[
|
||||
14,
|
||||
1
|
||||
],
|
||||
[
|
||||
15,
|
||||
1
|
||||
],
|
||||
[
|
||||
16,
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"Probe"
|
||||
],
|
||||
[
|
||||
2,
|
||||
"Canvas",
|
||||
33554432,
|
||||
"1cgbnsENBDoLhHJwvyJnKB",
|
||||
[
|
||||
-5
|
||||
],
|
||||
[
|
||||
[
|
||||
5,
|
||||
-1,
|
||||
[
|
||||
5,
|
||||
1600,
|
||||
720
|
||||
]
|
||||
],
|
||||
[
|
||||
6,
|
||||
-3,
|
||||
-2
|
||||
],
|
||||
[
|
||||
7,
|
||||
45,
|
||||
5.684341886080802e-14,
|
||||
5.684341886080802e-14,
|
||||
-4
|
||||
]
|
||||
],
|
||||
[
|
||||
1,
|
||||
800,
|
||||
360.00000000000006,
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
1,
|
||||
"TemplateRoom",
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
8,
|
||||
[
|
||||
9,
|
||||
[
|
||||
2,
|
||||
0.2,
|
||||
0.5,
|
||||
0.8,
|
||||
0.520833125
|
||||
]
|
||||
],
|
||||
[
|
||||
10
|
||||
],
|
||||
[
|
||||
11
|
||||
],
|
||||
[
|
||||
12
|
||||
],
|
||||
[
|
||||
13
|
||||
],
|
||||
[
|
||||
14
|
||||
],
|
||||
[
|
||||
15
|
||||
],
|
||||
[
|
||||
16
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
3,
|
||||
"Camera",
|
||||
1,
|
||||
[
|
||||
-6
|
||||
],
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1000
|
||||
]
|
||||
],
|
||||
[
|
||||
4,
|
||||
0,
|
||||
360,
|
||||
0,
|
||||
2000,
|
||||
1108344832,
|
||||
3,
|
||||
[
|
||||
4,
|
||||
4278190080
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
4,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
-1,
|
||||
3,
|
||||
0,
|
||||
-1,
|
||||
4,
|
||||
0,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3,
|
||||
2,
|
||||
6
|
||||
],
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,223 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
[
|
||||
"node",
|
||||
"root",
|
||||
"data"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Prefab",
|
||||
[
|
||||
"_name"
|
||||
],
|
||||
2
|
||||
],
|
||||
[
|
||||
"cc.Node",
|
||||
[
|
||||
"_name",
|
||||
"_layer",
|
||||
"_components",
|
||||
"_prefab",
|
||||
"_lpos"
|
||||
],
|
||||
1,
|
||||
9,
|
||||
4,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.UITransform",
|
||||
[
|
||||
"node",
|
||||
"__prefab",
|
||||
"_contentSize",
|
||||
"_anchorPoint"
|
||||
],
|
||||
3,
|
||||
1,
|
||||
4,
|
||||
5,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.CompPrefabInfo",
|
||||
[
|
||||
"fileId"
|
||||
],
|
||||
2
|
||||
],
|
||||
[
|
||||
"cc.Label",
|
||||
[
|
||||
"_string",
|
||||
"_horizontalAlign",
|
||||
"_verticalAlign",
|
||||
"_actualFontSize",
|
||||
"_fontSize",
|
||||
"_lineHeight",
|
||||
"_overflow",
|
||||
"node",
|
||||
"__prefab",
|
||||
"_color"
|
||||
],
|
||||
-4,
|
||||
1,
|
||||
4,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.PrefabInfo",
|
||||
[
|
||||
"fileId",
|
||||
"instance",
|
||||
"targetOverrides",
|
||||
"nestedPrefabInstanceRoots",
|
||||
"root",
|
||||
"asset"
|
||||
],
|
||||
-1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
3,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
3
|
||||
],
|
||||
[
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
4,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
8
|
||||
],
|
||||
[
|
||||
5,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
1,
|
||||
"View"
|
||||
],
|
||||
[
|
||||
2,
|
||||
"View",
|
||||
33554432,
|
||||
[
|
||||
[
|
||||
3,
|
||||
-2,
|
||||
[
|
||||
0,
|
||||
"JYB5ndvc0hWZFdTsDPujQg"
|
||||
],
|
||||
[
|
||||
5,
|
||||
371,
|
||||
22.680000000000003
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
4,
|
||||
"资料文字",
|
||||
0,
|
||||
0,
|
||||
18.975,
|
||||
18,
|
||||
18,
|
||||
3,
|
||||
-3,
|
||||
[
|
||||
0,
|
||||
"wX+Ww4pBz/TnLcrPEXSuAA"
|
||||
],
|
||||
[
|
||||
4,
|
||||
4278190080
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
5,
|
||||
"Pn6tcB1uaJ1EOUf2nLgpzw",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
[
|
||||
1,
|
||||
10,
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
[
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,223 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
[
|
||||
"node",
|
||||
"root",
|
||||
"data"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Prefab",
|
||||
[
|
||||
"_name"
|
||||
],
|
||||
2
|
||||
],
|
||||
[
|
||||
"cc.Node",
|
||||
[
|
||||
"_name",
|
||||
"_layer",
|
||||
"_components",
|
||||
"_prefab",
|
||||
"_lpos"
|
||||
],
|
||||
1,
|
||||
9,
|
||||
4,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.UITransform",
|
||||
[
|
||||
"node",
|
||||
"__prefab",
|
||||
"_contentSize",
|
||||
"_anchorPoint"
|
||||
],
|
||||
3,
|
||||
1,
|
||||
4,
|
||||
5,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.CompPrefabInfo",
|
||||
[
|
||||
"fileId"
|
||||
],
|
||||
2
|
||||
],
|
||||
[
|
||||
"cc.Label",
|
||||
[
|
||||
"_string",
|
||||
"_horizontalAlign",
|
||||
"_verticalAlign",
|
||||
"_actualFontSize",
|
||||
"_fontSize",
|
||||
"_lineHeight",
|
||||
"_overflow",
|
||||
"node",
|
||||
"__prefab",
|
||||
"_color"
|
||||
],
|
||||
-4,
|
||||
1,
|
||||
4,
|
||||
5
|
||||
],
|
||||
[
|
||||
"cc.PrefabInfo",
|
||||
[
|
||||
"fileId",
|
||||
"instance",
|
||||
"targetOverrides",
|
||||
"nestedPrefabInstanceRoots",
|
||||
"root",
|
||||
"asset"
|
||||
],
|
||||
-1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
3,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
3
|
||||
],
|
||||
[
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
1
|
||||
],
|
||||
[
|
||||
4,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
8
|
||||
],
|
||||
[
|
||||
5,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
1,
|
||||
"View"
|
||||
],
|
||||
[
|
||||
2,
|
||||
"View",
|
||||
33554432,
|
||||
[
|
||||
[
|
||||
3,
|
||||
-2,
|
||||
[
|
||||
0,
|
||||
"JYB5ndvc0hWZFdTsDPujQg"
|
||||
],
|
||||
[
|
||||
5,
|
||||
371,
|
||||
22.680000000000003
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
4,
|
||||
"资料文字",
|
||||
0,
|
||||
0,
|
||||
18.975,
|
||||
18,
|
||||
18,
|
||||
3,
|
||||
-3,
|
||||
[
|
||||
0,
|
||||
"wX+Ww4pBz/TnLcrPEXSuAA"
|
||||
],
|
||||
[
|
||||
4,
|
||||
4278190080
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
5,
|
||||
"Pn6tcB1uaJ1EOUf2nLgpzw",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
-1,
|
||||
0
|
||||
],
|
||||
[
|
||||
1,
|
||||
10,
|
||||
0,
|
||||
0
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
[
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,35 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.TextAsset",
|
||||
[
|
||||
"_name",
|
||||
"text"
|
||||
],
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
3
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"private",
|
||||
"PRIVATE_RESOURCE_BETA"
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,35 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.TextAsset",
|
||||
[
|
||||
"_name",
|
||||
"text"
|
||||
],
|
||||
1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
3
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"private",
|
||||
"PRIVATE_RESOURCE_ALPHA"
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"17debcc3-0a6b-4b8a-b00b-dc58b885581e"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-trail-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 738 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 791 B |
|
After Width: | Height: | Size: 743 B |
@@ -0,0 +1,65 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"971bdb23-3ff6-43eb-b422-1c30165a3663"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-particle-gpu-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,446 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"internal/builtin-graphics",
|
||||
[
|
||||
{
|
||||
"hash": 586721616,
|
||||
"name": "internal/builtin-graphics|vs:vert|fs:frag",
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_color",
|
||||
"format": 44,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_dist",
|
||||
"format": 11,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "local"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matWorld",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matWorldIT",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_lightingMapUVParam",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_localShadowBias",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_time",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nativeSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_probeInfo",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_debug_view_mode",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matView",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_cameraPos",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_surfaceTransform",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenScale",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_exposure",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitDir",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientSky",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientGround",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogBase",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogAdd",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nearFar",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_viewPort",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"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 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;\nin vec4 a_color;\nout vec4 v_color;\nin float a_dist;\nout float v_dist;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision highp float;\nin vec4 v_color;\nin float v_dist;\nvec4 frag () {\n vec4 o = v_color;\n float aa = fwidth(v_dist);\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n return o;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\nuniform highp mat4 cc_matViewProj;\nuniform highp mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nattribute float a_dist;\nvarying float v_dist;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\n#ifdef GL_OES_standard_derivatives\n#extension GL_OES_standard_derivatives: enable\n#endif\nprecision highp float;\nvarying vec4 v_color;\nvarying float v_dist;\nvec4 frag () {\n vec4 o = v_color;\n #ifdef GL_OES_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n return o;\n}\nvoid main() { gl_FragColor = frag(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 56,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
|
||||
}
|
||||
},
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"program": "internal/builtin-graphics|vs:vert|fs:frag",
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 1,
|
||||
"blendDst": 4,
|
||||
"blendSrcAlpha": 1,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,70 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-alpha-test-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_ALPHA_TEST": true,
|
||||
"USE_TEXTURE": true,
|
||||
"IS_GRAY": false,
|
||||
"CC_USE_EMBEDDED_ALPHA": false
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,627 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"pipeline/skybox",
|
||||
[
|
||||
{
|
||||
"hash": 4049110380,
|
||||
"name": "pipeline/skybox|sky-vs:vert|sky-fs:frag",
|
||||
"blocks": [],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "environmentMap",
|
||||
"type": 31,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_normal",
|
||||
"format": 32,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_tangent",
|
||||
"format": 44,
|
||||
"location": 3,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_joints",
|
||||
"location": 4,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_weights",
|
||||
"format": 44,
|
||||
"location": 5,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_jointAnimInfo",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 6,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_BAKED_ANIMATION"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld0",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 7,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld1",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 8,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld2",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 9,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_lightingMapUVParam",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 10,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHTMAP"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_localShadowBiasAndProbeId",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 11,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_reflectionProbeData",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 12,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_REFLECTION_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_r",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 13,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_g",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 14,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_b",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 15,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_vertexId",
|
||||
"format": 11,
|
||||
"location": 16,
|
||||
"defines": [
|
||||
"CC_USE_MORPH"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "environmentMap",
|
||||
"type": 31,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"stageFlags": 17,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_time",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nativeSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_probeInfo",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_debug_view_mode",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"stageFlags": 17,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matView",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_cameraPos",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_surfaceTransform",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenScale",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_exposure",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitDir",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientSky",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientGround",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogBase",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogAdd",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nearFar",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_viewPort",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "cc_environment",
|
||||
"typename": "samplerCube",
|
||||
"type": 31,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"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(); }",
|
||||
"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(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"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(); }",
|
||||
"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(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "cc_environment",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 42,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "USE_INSTANCING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_SKINNING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_BAKED_ANIMATION",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHTMAP",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_REFLECTION_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_RECEIVE_SHADOW",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHT_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_MORPH",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_IBL",
|
||||
"type": "number",
|
||||
"range": [
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_DEBUG_VIEW",
|
||||
"type": "number",
|
||||
"range": [
|
||||
0,
|
||||
3
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_SURFACES_ENABLE_DEBUG_VIEW",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_HDR",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_TONE_MAPPING_TYPE",
|
||||
"type": "number",
|
||||
"range": [
|
||||
0,
|
||||
3
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "HDR_TONE_MAPPING_ACES",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "USE_RGBE_CUBEMAP",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_RGBE_OUTPUT",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"program": "pipeline/skybox|sky-vs:vert|sky-fs:frag",
|
||||
"priority": 245,
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": true,
|
||||
"depthWrite": false
|
||||
},
|
||||
"properties": {
|
||||
"environmentMap": {
|
||||
"value": "grey",
|
||||
"type": 31
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"propertyIndex": 0,
|
||||
"phase": "deferred-forward",
|
||||
"program": "pipeline/skybox|sky-vs:vert|sky-fs:frag",
|
||||
"priority": 245,
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": true,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,359 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"pipeline/copy-pass",
|
||||
[
|
||||
{
|
||||
"hash": 1199953089,
|
||||
"name": "pipeline/copy-pass|copy-pass-vs|copy-pass-fs",
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_normal",
|
||||
"format": 32,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_tangent",
|
||||
"format": 44,
|
||||
"location": 3,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_joints",
|
||||
"location": 4,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_weights",
|
||||
"format": 44,
|
||||
"location": 5,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_jointAnimInfo",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 6,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_BAKED_ANIMATION"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld0",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 7,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld1",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 8,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld2",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 9,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_lightingMapUVParam",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 10,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHTMAP"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_localShadowBiasAndProbeId",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 11,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_reflectionProbeData",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 12,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_REFLECTION_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_r",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 13,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_g",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 14,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_b",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 15,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_vertexId",
|
||||
"format": 11,
|
||||
"location": 16,
|
||||
"defines": [
|
||||
"CC_USE_MORPH"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "fragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CopyPassUBO",
|
||||
"stageFlags": 17,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "flip",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "outputResultMap",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 17,
|
||||
"sampleType": 0,
|
||||
"binding": 1,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"vert": "\nprecision highp float;\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\nlayout(std140) uniform CopyPassUBO {\n float flip;\n};\nuniform sampler2D outputResultMap;\nout vec2 v_uv;\nvoid main() {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n In.position.xy = flip == 0.0 ? vec2(In.position.xy.x, -In.position.xy.y) : In.position.xy;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
|
||||
"frag": "\nprecision highp float;\nin vec2 v_uv;\nlayout(std140) uniform CopyPassUBO {\n float flip;\n};\nuniform sampler2D outputResultMap;\nlayout(location = 0)out vec4 fragColor;\nvoid main() {\n fragColor = texture(outputResultMap, v_uv);\n}"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\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\n uniform float flip;\nuniform sampler2D outputResultMap;\nvarying vec2 v_uv;\nvoid main() {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n In.position.xy = flip == 0.0 ? vec2(In.position.xy.x, -In.position.xy.y) : In.position.xy;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
|
||||
"frag": "\nprecision highp float;\nvarying vec2 v_uv;\nuniform sampler2D outputResultMap;\nvoid main() {\n gl_FragColor = texture2D(outputResultMap, v_uv);\n}"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 1,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 1
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "USE_INSTANCING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_SKINNING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_BAKED_ANIMATION",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHTMAP",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_REFLECTION_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_RECEIVE_SHADOW",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHT_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_MORPH",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"pass": "copy-pass",
|
||||
"program": "pipeline/copy-pass|copy-pass-vs|copy-pass-fs",
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendSrcAlpha": 2,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,545 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"combinations",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"for2d/builtin-sprite",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"hash": 3057267166,
|
||||
"name": "for2d/builtin-sprite|sprite-vs:vert|sprite-fs:frag",
|
||||
"blocks": [
|
||||
{
|
||||
"name": "ALPHA_TEST_DATA",
|
||||
"stageFlags": 16,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "alphaThreshold",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [
|
||||
"USE_ALPHA_TEST"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_color",
|
||||
"format": 44,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "local"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matWorld",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matWorldIT",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_lightingMapUVParam",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_localShadowBias",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
}
|
||||
],
|
||||
"defines": [
|
||||
"USE_LOCAL"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "cc_spriteTexture",
|
||||
"typename": "sampler2D",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"tags": {
|
||||
"builtin": "local"
|
||||
},
|
||||
"defines": [
|
||||
"USE_TEXTURE"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "ALPHA_TEST_DATA",
|
||||
"stageFlags": 16,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "alphaThreshold",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [
|
||||
"USE_ALPHA_TEST"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_time",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nativeSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_probeInfo",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_debug_view_mode",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matView",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_cameraPos",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_surfaceTransform",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenScale",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_exposure",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitDir",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientSky",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientGround",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogBase",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogAdd",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nearFar",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_viewPort",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"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#if USE_LOCAL\n layout(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 };\n#endif\n#if SAMPLE_FROM_RT\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\n#endif\nin vec3 a_position;\nin vec2 a_texCoord;\nin vec4 a_color;\nout vec4 color;\nout vec2 uv0;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n #if USE_LOCAL\n pos = cc_matWorld * pos;\n #endif\n #if USE_PIXEL_ALIGNMENT\n pos = cc_matView * pos;\n pos.xyz = floor(pos.xyz);\n pos = cc_matProj * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n uv0 = a_texCoord;\n #if SAMPLE_FROM_RT\n uv0 = cc_cameraPos.w > 1.0 ? vec2(uv0.x, 1.0 - uv0.y) : uv0;\n #endif\n color = a_color;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision highp float;\nvec4 CCSampleWithAlphaSeparated(sampler2D tex, vec2 uv) {\n#if CC_USE_EMBEDDED_ALPHA\n return vec4(texture(tex, uv).rgb, texture(tex, uv + vec2(0.0, 0.5)).r);\n#else\n return texture(tex, uv);\n#endif\n}\n#if USE_ALPHA_TEST\n layout(std140) uniform ALPHA_TEST_DATA {\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 color;\n#if USE_TEXTURE\n in vec2 uv0;\n uniform sampler2D cc_spriteTexture;\n#endif\nvec4 frag () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n o *= CCSampleWithAlphaSeparated(cc_spriteTexture, uv0);\n #if IS_GRAY\n float gray = 0.2126 * o.r + 0.7152 * o.g + 0.0722 * o.b;\n o.r = o.g = o.b = gray;\n #endif\n #endif\n o *= color;\n ALPHA_TEST(o);\n return o;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\nuniform highp mat4 cc_matView;\n uniform highp mat4 cc_matProj;\n uniform highp mat4 cc_matViewProj;\n uniform highp vec4 cc_cameraPos;\n#if USE_LOCAL\n uniform highp mat4 cc_matWorld;\n#endif\n#if SAMPLE_FROM_RT\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\n#endif\nattribute vec3 a_position;\nattribute vec2 a_texCoord;\nattribute vec4 a_color;\nvarying vec4 color;\nvarying vec2 uv0;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n #if USE_LOCAL\n pos = cc_matWorld * pos;\n #endif\n #if USE_PIXEL_ALIGNMENT\n pos = cc_matView * pos;\n pos.xyz = floor(pos.xyz);\n pos = cc_matProj * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n uv0 = a_texCoord;\n #if SAMPLE_FROM_RT\n uv0 = cc_cameraPos.w > 1.0 ? vec2(uv0.x, 1.0 - uv0.y) : uv0;\n #endif\n color = a_color;\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision highp float;\nvec4 CCSampleWithAlphaSeparated(sampler2D tex, vec2 uv) {\n#if CC_USE_EMBEDDED_ALPHA\n return vec4(texture2D(tex, uv).rgb, texture2D(tex, uv + vec2(0.0, 0.5)).r);\n#else\n return texture2D(tex, uv);\n#endif\n}\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 color;\n#if USE_TEXTURE\n varying vec2 uv0;\n uniform sampler2D cc_spriteTexture;\n#endif\nvec4 frag () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n o *= CCSampleWithAlphaSeparated(cc_spriteTexture, uv0);\n #if IS_GRAY\n float gray = 0.2126 * o.r + 0.7152 * o.g + 0.0722 * o.b;\n o.r = o.g = o.b = gray;\n #endif\n #endif\n o *= color;\n ALPHA_TEST(o);\n return o;\n}\nvoid main() { gl_FragColor = frag(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"defines": [
|
||||
"USE_LOCAL"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "cc_spriteTexture",
|
||||
"defines": [
|
||||
"USE_TEXTURE"
|
||||
]
|
||||
}
|
||||
],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 56,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 1
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "USE_LOCAL",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "SAMPLE_FROM_RT",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "USE_PIXEL_ALIGNMENT",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_EMBEDDED_ALPHA",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "USE_ALPHA_TEST",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "USE_TEXTURE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "IS_GRAY",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"program": "for2d/builtin-sprite|sprite-vs:vert|sprite-fs:frag",
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
},
|
||||
"properties": {
|
||||
"alphaThreshold": {
|
||||
"type": 13,
|
||||
"value": [
|
||||
0.5
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,688 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"pipeline/post-process/tone-mapping",
|
||||
[
|
||||
{
|
||||
"hash": 879047950,
|
||||
"name": "pipeline/post-process/tone-mapping|vs|fs-tonemap",
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_normal",
|
||||
"format": 32,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_tangent",
|
||||
"format": 44,
|
||||
"location": 3,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_joints",
|
||||
"location": 4,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_weights",
|
||||
"format": 44,
|
||||
"location": 5,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_jointAnimInfo",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 6,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_BAKED_ANIMATION"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld0",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 7,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld1",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 8,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld2",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 9,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_lightingMapUVParam",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 10,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHTMAP"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_localShadowBiasAndProbeId",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 11,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_reflectionProbeData",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 12,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_REFLECTION_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_r",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 13,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_g",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 14,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_b",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 15,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_vertexId",
|
||||
"format": 11,
|
||||
"location": 16,
|
||||
"defines": [
|
||||
"CC_USE_MORPH"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "fragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Pipeline",
|
||||
"stageFlags": 1,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "g_platform",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "inputTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 1,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"vert": "\nprecision highp float;\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\nlayout(std140) uniform Pipeline {\n vec4 g_platform;\n};\nout vec2 v_uv;\nvoid main () {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n (In.position).y = g_platform.w == 0.0 ? -(In.position).y : (In.position).y;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
|
||||
"frag": "\nprecision highp float;\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}\nin vec2 v_uv;\nuniform sampler2D inputTexture;\nlayout(location = 0) out vec4 fragColor;\nvoid main () {\n fragColor = texture(inputTexture, v_uv);\n #if CC_USE_FLOAT_OUTPUT\n fragColor.rgb = HDRToLDR(fragColor.rgb);\n fragColor.rgb = LinearToSRGB(fragColor.rgb);\n #endif\n}"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\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\n uniform vec4 g_platform;\nvarying vec2 v_uv;\nvoid main () {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n (In.position).y = g_platform.w == 0.0 ? -(In.position).y : (In.position).y;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
|
||||
"frag": "\nprecision highp float;\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}\nvarying vec2 v_uv;\nuniform sampler2D inputTexture;\nvoid main () {\n gl_FragColor = texture2D(inputTexture, v_uv);\n #if CC_USE_FLOAT_OUTPUT\n gl_FragColor.rgb = HDRToLDR(gl_FragColor.rgb);\n gl_FragColor.rgb = LinearToSRGB(gl_FragColor.rgb);\n #endif\n}"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 1,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "USE_INSTANCING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_SKINNING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_BAKED_ANIMATION",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHTMAP",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_REFLECTION_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_RECEIVE_SHADOW",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHT_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_MORPH",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_DEBUG_VIEW",
|
||||
"type": "number",
|
||||
"range": [
|
||||
0,
|
||||
3
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CC_SURFACES_DEBUG_VIEW_COMPOSITE_AND_MISC",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_SURFACES_ENABLE_DEBUG_VIEW",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_HDR",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_TONE_MAPPING_TYPE",
|
||||
"type": "number",
|
||||
"range": [
|
||||
0,
|
||||
3
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "HDR_TONE_MAPPING_ACES",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_FLOAT_OUTPUT",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"hash": 4126709291,
|
||||
"name": "pipeline/post-process/tone-mapping|vs|fs-copy",
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_normal",
|
||||
"format": 32,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_tangent",
|
||||
"format": 44,
|
||||
"location": 3,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_joints",
|
||||
"location": 4,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_weights",
|
||||
"format": 44,
|
||||
"location": 5,
|
||||
"defines": [
|
||||
"CC_USE_SKINNING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_jointAnimInfo",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 6,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_BAKED_ANIMATION"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld0",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 7,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld1",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 8,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_matWorld2",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 9,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_lightingMapUVParam",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 10,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHTMAP"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_localShadowBiasAndProbeId",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 11,
|
||||
"defines": [
|
||||
"USE_INSTANCING"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_reflectionProbeData",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 12,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_REFLECTION_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_r",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 13,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_g",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 14,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_sh_linear_const_b",
|
||||
"format": 44,
|
||||
"isInstanced": true,
|
||||
"location": 15,
|
||||
"defines": [
|
||||
"USE_INSTANCING",
|
||||
"CC_USE_LIGHT_PROBE"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "a_vertexId",
|
||||
"format": 11,
|
||||
"location": 16,
|
||||
"defines": [
|
||||
"CC_USE_MORPH"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "fragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Pipeline",
|
||||
"stageFlags": 1,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "g_platform",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "inputTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 1,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"vert": "\nprecision highp float;\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\nlayout(std140) uniform Pipeline {\n vec4 g_platform;\n};\nout vec2 v_uv;\nvoid main () {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n (In.position).y = g_platform.w == 0.0 ? -(In.position).y : (In.position).y;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
|
||||
"frag": "\nprecision highp float;\nin vec2 v_uv;\nuniform sampler2D inputTexture;\nlayout(location = 0) out vec4 fragColor;\nvoid main () {\n fragColor = texture(inputTexture, v_uv);\n}"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\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\n uniform vec4 g_platform;\nvarying vec2 v_uv;\nvoid main () {\n StandardVertInput In;\n In.position = vec4(a_position, 1.0);\n In.normal = a_normal;\n In.tangent = a_tangent;\n (In.position).y = g_platform.w == 0.0 ? -(In.position).y : (In.position).y;\n gl_Position = In.position;\n v_uv = a_texCoord;\n}",
|
||||
"frag": "\nprecision highp float;\nvarying vec2 v_uv;\nuniform sampler2D inputTexture;\nvoid main () {\n gl_FragColor = texture2D(inputTexture, v_uv);\n}"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 1,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "USE_INSTANCING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_SKINNING",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_BAKED_ANIMATION",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHTMAP",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_REFLECTION_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_RECEIVE_SHADOW",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_LIGHT_PROBE",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "CC_USE_MORPH",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"pass": "cc-tone-mapping",
|
||||
"program": "pipeline/post-process/tone-mapping|vs|fs-tonemap",
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"pass": "cc-tone-mapping",
|
||||
"program": "pipeline/post-process/tone-mapping|vs|fs-copy",
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"711ebe11-f673-4cd9-9a83-63c60ba54c5b"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-billboard-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,165 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"combinations",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"internal/builtin-clear-stencil",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"hash": 3507038093,
|
||||
"name": "internal/builtin-clear-stencil|sprite-vs:vert|sprite-fs:frag",
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"vert": "\nprecision highp float;\nin vec3 a_position;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision highp float;\nvec4 frag () {\n vec4 o = vec4(1.0);\n return o;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\nattribute vec3 a_position;\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision highp float;\nvec4 frag () {\n vec4 o = vec4(1.0);\n return o;\n}\nvoid main() { gl_FragColor = frag(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 0,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 0
|
||||
}
|
||||
},
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"program": "internal/builtin-clear-stencil|sprite-vs:vert|sprite-fs:frag",
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,442 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"util/profiler",
|
||||
[
|
||||
{
|
||||
"hash": 394204838,
|
||||
"name": "util/profiler|profiler-vs:vert|profiler-fs:frag",
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Constants",
|
||||
"stageFlags": 1,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "offset",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "PerFrameInfo",
|
||||
"stageFlags": 1,
|
||||
"binding": 1,
|
||||
"members": [
|
||||
{
|
||||
"name": "digits",
|
||||
"type": 16,
|
||||
"count": 22
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "mainTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 2,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_color",
|
||||
"format": 44,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Constants",
|
||||
"stageFlags": 1,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "offset",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "PerFrameInfo",
|
||||
"stageFlags": 1,
|
||||
"binding": 1,
|
||||
"members": [
|
||||
{
|
||||
"name": "digits",
|
||||
"type": 16,
|
||||
"count": 22
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "mainTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 2,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"stageFlags": 17,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_time",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nativeSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_probeInfo",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_debug_view_mode",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"stageFlags": 17,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matView",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_cameraPos",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_surfaceTransform",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenScale",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_exposure",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitDir",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientSky",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientGround",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogBase",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogAdd",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nearFar",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_viewPort",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"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};\nin vec3 a_position;\nin vec4 a_color;\nout vec2 v_uv;\nlayout(std140) uniform Constants {\n vec4 offset;\n};\nlayout(std140) uniform PerFrameInfo {\n vec4 digits[8 * 11 / 4];\n};\nfloat getComponent(vec4 v, float i) {\n if (i < 1.0) { return v.x; }\n else if (i < 2.0) { return v.y; }\n else if (i < 3.0) { return v.z; }\n else { return v.w; }\n}\nvec4 vert () {\n mat2 proj = mat2(cc_matProj[0].xy, cc_matProj[1].xy);\n proj /= abs(proj[1].x + proj[1].y);\n vec2 position = proj * a_position.xy + offset.xy;\n v_uv = a_color.xy;\n if (a_color.z >= 0.0) {\n float n = getComponent(digits[int(a_color.z)], a_color.w);\n v_uv += vec2(offset.z * n, 0.0);\n }\n return vec4(position, 0.0, 1.0);\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"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}\nin vec2 v_uv;\nuniform sampler2D mainTexture;\nvec4 frag () {\n return CCFragOutput(texture(mainTexture, v_uv));\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision mediump float;\nuniform highp mat4 cc_matProj;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec2 v_uv;\n uniform vec4 offset;\n uniform vec4 digits[22];\nfloat getComponent(vec4 v, float i) {\n if (i < 1.0) { return v.x; }\n else if (i < 2.0) { return v.y; }\n else if (i < 3.0) { return v.z; }\n else { return v.w; }\n}\nvec4 vert () {\n mat2 proj = mat2(cc_matProj[0].xy, cc_matProj[1].xy);\n proj /= abs(proj[1].x + proj[1].y);\n vec2 position = proj * a_position.xy + offset.xy;\n v_uv = a_color.xy;\n if (a_color.z >= 0.0) {\n float n = getComponent(digits[int(a_color.z)], a_color.w);\n v_uv += vec2(offset.z * n, 0.0);\n }\n return vec4(position, 0.0, 1.0);\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n return color;\n}\nvarying vec2 v_uv;\nuniform sampler2D mainTexture;\nvec4 frag () {\n return CCFragOutput(texture2D(mainTexture, v_uv));\n}\nvoid main() { gl_FragColor = frag(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 65,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 42
|
||||
}
|
||||
},
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"program": "util/profiler|profiler-vs:vert|profiler-fs:frag",
|
||||
"priority": 255,
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,67 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"810e96e4-e456-4468-9b59-f4e8f39732c0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-clear-stencil",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": false
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,341 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"util/splash-screen",
|
||||
[
|
||||
{
|
||||
"hash": 3189094080,
|
||||
"name": "util/splash-screen|splash-screen-vs:vert|splash-screen-fs:frag",
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Constant",
|
||||
"stageFlags": 1,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "u_buffer0",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "u_buffer1",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "u_projection",
|
||||
"type": 25,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "Factor",
|
||||
"stageFlags": 16,
|
||||
"binding": 1,
|
||||
"members": [
|
||||
{
|
||||
"name": "u_percent",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "mainTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 2,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 21,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "Constant",
|
||||
"stageFlags": 1,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "u_buffer0",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "u_buffer1",
|
||||
"type": 16,
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "u_projection",
|
||||
"type": 25,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "Factor",
|
||||
"stageFlags": 16,
|
||||
"binding": 1,
|
||||
"members": [
|
||||
{
|
||||
"name": "u_percent",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "mainTexture",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"binding": 2,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"vert": "\nprecision mediump float;\nin vec2 a_position;\nin vec2 a_texCoord;\nout vec2 v_uv;\nlayout(std140) uniform Constant {\n vec4 u_buffer0;\n vec4 u_buffer1;\n mat4 u_projection;\n};\nvec4 vert () {\n vec2 worldPos = a_position * u_buffer1.xy + u_buffer1.zw;\n vec2 clipSpace = worldPos / u_buffer0.xy * 2.0 - 1.0;\n vec4 screenPos = u_projection * vec4(clipSpace, 0.0, 1.0);\n v_uv = a_texCoord;\n return screenPos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision mediump float;\nin vec2 v_uv;\nlayout(std140) uniform Factor {\n float u_percent;\n};\nuniform sampler2D mainTexture;\nvec4 frag () {\n vec4 color = texture(mainTexture, v_uv);\n float percent = clamp(u_percent, 0.0, 1.0);\n color.xyz *= percent;\n return color;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision mediump float;\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nvarying vec2 v_uv;\n uniform vec4 u_buffer0;\n uniform vec4 u_buffer1;\n uniform mat4 u_projection;\nvec4 vert () {\n vec2 worldPos = a_position * u_buffer1.xy + u_buffer1.zw;\n vec2 clipSpace = worldPos / u_buffer0.xy * 2.0 - 1.0;\n vec4 screenPos = u_projection * vec4(clipSpace, 0.0, 1.0);\n v_uv = a_texCoord;\n return screenPos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision mediump float;\nvarying vec2 v_uv;\n uniform float u_percent;\nuniform sampler2D mainTexture;\nvec4 frag () {\n vec4 color = texture2D(mainTexture, v_uv);\n float percent = clamp(u_percent, 0.0, 1.0);\n color.xyz *= percent;\n return color;\n}\nvoid main() { gl_FragColor = frag(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 6,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 1
|
||||
}
|
||||
},
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"name": "default",
|
||||
"passes": [
|
||||
{
|
||||
"program": "util/splash-screen|splash-screen-vs:vert|splash-screen-fs:frag",
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
},
|
||||
"properties": {
|
||||
"mainTexture": {
|
||||
"value": "grey",
|
||||
"type": 28
|
||||
},
|
||||
"resolution": {
|
||||
"type": 14,
|
||||
"value": [
|
||||
640,
|
||||
960
|
||||
],
|
||||
"handleInfo": [
|
||||
"u_buffer0",
|
||||
0,
|
||||
14
|
||||
]
|
||||
},
|
||||
"percent": {
|
||||
"type": 13,
|
||||
"value": [
|
||||
0.5
|
||||
],
|
||||
"handleInfo": [
|
||||
"u_percent",
|
||||
0,
|
||||
13
|
||||
]
|
||||
},
|
||||
"scale": {
|
||||
"type": 14,
|
||||
"value": [
|
||||
200,
|
||||
500
|
||||
],
|
||||
"handleInfo": [
|
||||
"u_buffer1",
|
||||
0,
|
||||
14
|
||||
]
|
||||
},
|
||||
"translate": {
|
||||
"type": 14,
|
||||
"value": [
|
||||
320,
|
||||
480
|
||||
],
|
||||
"handleInfo": [
|
||||
"u_buffer1",
|
||||
2,
|
||||
14
|
||||
]
|
||||
},
|
||||
"u_buffer0": {
|
||||
"type": 16,
|
||||
"value": [
|
||||
640,
|
||||
960,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"u_percent": {
|
||||
"type": 13,
|
||||
"value": [
|
||||
0.5
|
||||
]
|
||||
},
|
||||
"u_buffer1": {
|
||||
"type": 16,
|
||||
"value": [
|
||||
200,
|
||||
500,
|
||||
320,
|
||||
480
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,69 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"c27215d8-6835-4b68-bfbb-bdeac6100c04"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-spine-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": true,
|
||||
"CC_USE_EMBEDDED_ALPHA": false,
|
||||
"IS_GRAY": false
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,44 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.PhysicsMaterial",
|
||||
[
|
||||
"_name",
|
||||
"_friction",
|
||||
"_rollingFriction",
|
||||
"_spinningFriction",
|
||||
"_restitution"
|
||||
],
|
||||
-2
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
6
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-physics-material",
|
||||
0.8,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,79 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_states",
|
||||
"_defines",
|
||||
"_props"
|
||||
],
|
||||
0,
|
||||
12
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"missing-effect-material",
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_COLOR": true
|
||||
}
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
{},
|
||||
"mainColor",
|
||||
8,
|
||||
[
|
||||
4,
|
||||
4278255615
|
||||
]
|
||||
]
|
||||
],
|
||||
11
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"d1346436-ac96-4271-b863-1f4fdead95b0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"default-particle-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,528 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"cc.EffectAsset",
|
||||
[
|
||||
"_name",
|
||||
"shaders",
|
||||
"techniques"
|
||||
],
|
||||
0
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"for2d/builtin-spine",
|
||||
[
|
||||
{
|
||||
"hash": 3152403458,
|
||||
"name": "for2d/builtin-spine|sprite-vs:vert|sprite-fs:frag",
|
||||
"blocks": [
|
||||
{
|
||||
"name": "ALPHA_TEST_DATA",
|
||||
"stageFlags": 16,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "alphaThreshold",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [
|
||||
"USE_ALPHA_TEST"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": [],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"location": 1,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_color",
|
||||
"format": 44,
|
||||
"location": 2,
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "a_color2",
|
||||
"format": 44,
|
||||
"location": 3,
|
||||
"defines": [
|
||||
"TWO_COLORED"
|
||||
]
|
||||
}
|
||||
],
|
||||
"fragColors": [
|
||||
{
|
||||
"name": "cc_FragColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"location": 0,
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"descriptors": [
|
||||
{
|
||||
"rate": 0,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "local"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matWorld",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matWorldIT",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_lightingMapUVParam",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_localShadowBias",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData1",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_reflectionProbeBlendData2",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
}
|
||||
],
|
||||
"defines": [
|
||||
"USE_LOCAL"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "cc_spriteTexture",
|
||||
"typename": "sampler2D",
|
||||
"type": 28,
|
||||
"count": 1,
|
||||
"stageFlags": 16,
|
||||
"sampleType": 0,
|
||||
"tags": {
|
||||
"builtin": "local"
|
||||
},
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 1,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "ALPHA_TEST_DATA",
|
||||
"stageFlags": 16,
|
||||
"binding": 0,
|
||||
"members": [
|
||||
{
|
||||
"name": "alphaThreshold",
|
||||
"type": 13,
|
||||
"count": 1
|
||||
}
|
||||
],
|
||||
"defines": [
|
||||
"USE_ALPHA_TEST"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 2,
|
||||
"blocks": [],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
},
|
||||
{
|
||||
"rate": 3,
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_time",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nativeSize",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_probeInfo",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_debug_view_mode",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"stageFlags": 1,
|
||||
"tags": {
|
||||
"builtin": "global"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"name": "cc_matView",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProj",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_matViewProjInv",
|
||||
"typename": "mat4",
|
||||
"type": 25,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_cameraPos",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "highp "
|
||||
},
|
||||
{
|
||||
"name": "cc_surfaceTransform",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_screenScale",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_exposure",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitDir",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_mainLitColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientSky",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_ambientGround",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogColor",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogBase",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_fogAdd",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_nearFar",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
},
|
||||
{
|
||||
"name": "cc_viewPort",
|
||||
"typename": "vec4",
|
||||
"type": 16,
|
||||
"count": 1,
|
||||
"precision": "mediump "
|
||||
}
|
||||
],
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"samplers": [],
|
||||
"textures": [],
|
||||
"buffers": [],
|
||||
"images": [],
|
||||
"subpassInputs": []
|
||||
}
|
||||
],
|
||||
"glsl3": {
|
||||
"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#if USE_LOCAL\n layout(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 };\n#endif\nin vec3 a_position;\nin vec2 a_texCoord;\nin vec4 a_color;\nout vec4 v_light;\nout vec2 uv0;\n#if TWO_COLORED\n in vec4 a_color2;\n out vec4 v_dark;\n#endif\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n #if USE_LOCAL\n pos = cc_matWorld * pos;\n #endif\n pos = cc_matViewProj * pos;\n uv0 = a_texCoord;\n v_light = a_color;\n #if TWO_COLORED\n v_dark = a_color2;\n #endif\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n layout(std140) uniform ALPHA_TEST_DATA {\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_light;\n#if TWO_COLORED\n in vec4 v_dark;\n#endif\nin vec2 uv0;\nuniform sampler2D cc_spriteTexture;\nvec4 frag () {\n vec4 o = vec4(1, 1, 1, 1);\n #if TWO_COLORED\n vec4 texColor = vec4(1, 1, 1, 1);\n texColor *= texture(cc_spriteTexture, uv0);\n o.a = texColor.a * v_light.a;\n o.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n o *= texture(cc_spriteTexture, uv0);\n o *= v_light;\n #endif\n ALPHA_TEST(o);\n return o;\n}\nlayout(location = 0) out vec4 cc_FragColor;\nvoid main() { cc_FragColor = frag(); }"
|
||||
},
|
||||
"glsl1": {
|
||||
"vert": "\nprecision highp float;\nuniform highp mat4 cc_matViewProj;\n#if USE_LOCAL\n uniform highp mat4 cc_matWorld;\n#endif\nattribute vec3 a_position;\nattribute vec2 a_texCoord;\nattribute vec4 a_color;\nvarying vec4 v_light;\nvarying vec2 uv0;\n#if TWO_COLORED\n attribute vec4 a_color2;\n varying vec4 v_dark;\n#endif\nvec4 vert () {\n vec4 pos = vec4(a_position, 1);\n #if USE_LOCAL\n pos = cc_matWorld * pos;\n #endif\n pos = cc_matViewProj * pos;\n uv0 = a_texCoord;\n v_light = a_color;\n #if TWO_COLORED\n v_dark = a_color2;\n #endif\n return pos;\n}\nvoid main() { gl_Position = vert(); }",
|
||||
"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_light;\n#if TWO_COLORED\n varying vec4 v_dark;\n#endif\nvarying vec2 uv0;\nuniform sampler2D cc_spriteTexture;\nvec4 frag () {\n vec4 o = vec4(1, 1, 1, 1);\n #if TWO_COLORED\n vec4 texColor = vec4(1, 1, 1, 1);\n texColor *= texture2D(cc_spriteTexture, uv0);\n o.a = texColor.a * v_light.a;\n o.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n o *= texture2D(cc_spriteTexture, uv0);\n o *= v_light;\n #endif\n ALPHA_TEST(o);\n return o;\n}\nvoid main() { gl_FragColor = frag(); }"
|
||||
},
|
||||
"builtins": {
|
||||
"globals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCGlobal",
|
||||
"defines": []
|
||||
},
|
||||
{
|
||||
"name": "CCCamera",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"samplerTextures": [],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"locals": {
|
||||
"blocks": [
|
||||
{
|
||||
"name": "CCLocal",
|
||||
"defines": [
|
||||
"USE_LOCAL"
|
||||
]
|
||||
}
|
||||
],
|
||||
"samplerTextures": [
|
||||
{
|
||||
"name": "cc_spriteTexture",
|
||||
"defines": []
|
||||
}
|
||||
],
|
||||
"buffers": [],
|
||||
"images": []
|
||||
},
|
||||
"statistics": {
|
||||
"CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS": 56,
|
||||
"CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS": 1
|
||||
}
|
||||
},
|
||||
"defines": [
|
||||
{
|
||||
"name": "USE_LOCAL",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "TWO_COLORED",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "USE_ALPHA_TEST",
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"passes": [
|
||||
{
|
||||
"program": "for2d/builtin-spine|sprite-vs:vert|sprite-fs:frag",
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{
|
||||
"blend": true,
|
||||
"blendSrc": 2,
|
||||
"blendDst": 4,
|
||||
"blendDstAlpha": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"rasterizerState": {
|
||||
"cullMode": 0
|
||||
},
|
||||
"depthStencilState": {
|
||||
"depthTest": false,
|
||||
"depthWrite": false
|
||||
},
|
||||
"properties": {
|
||||
"alphaThreshold": {
|
||||
"type": 13,
|
||||
"value": [
|
||||
0.5
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
|
After Width: | Height: | Size: 329 KiB |
@@ -0,0 +1,79 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"a3cd009f-0ab0-420d-9278-b9fdab939bbc"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_states",
|
||||
"_defines",
|
||||
"_props"
|
||||
],
|
||||
0,
|
||||
12
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"missing-material",
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_COLOR": true
|
||||
}
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
{},
|
||||
"mainColor",
|
||||
8,
|
||||
[
|
||||
4,
|
||||
4294902015
|
||||
]
|
||||
]
|
||||
],
|
||||
11
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,69 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-sprite-gray-alpha-sep-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": true,
|
||||
"CC_USE_EMBEDDED_ALPHA": true,
|
||||
"IS_GRAY": true
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,67 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-base-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": false
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,69 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-sprite-gray-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": true,
|
||||
"CC_USE_EMBEDDED_ALPHA": false,
|
||||
"IS_GRAY": true
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"1c02ae6f-4492-4915-b8f8-7492a3b1e4cd"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-graphics-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,69 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-sprite-alpha-sep-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": true,
|
||||
"CC_USE_EMBEDDED_ALPHA": true,
|
||||
"IS_GRAY": false
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"level": 0,
|
||||
"message": "Frame rate: 24"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,746 @@
|
||||
{
|
||||
"accessors": [
|
||||
{
|
||||
"bufferView": 0,
|
||||
"componentType": 5126,
|
||||
"count": 1321,
|
||||
"max": [
|
||||
0.5,
|
||||
1.0,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-1.0,
|
||||
-0.5
|
||||
],
|
||||
"name": "capsule/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 0,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 1321,
|
||||
"name": "capsule/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 0,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 1321,
|
||||
"name": "capsule/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 0,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 1321,
|
||||
"name": "capsule/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 1,
|
||||
"componentType": 5123,
|
||||
"count": 6144,
|
||||
"name": "capsule/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"componentType": 5126,
|
||||
"count": 121,
|
||||
"max": [
|
||||
5.0,
|
||||
0.0,
|
||||
5.0
|
||||
],
|
||||
"min": [
|
||||
-5.0,
|
||||
0.0,
|
||||
-5.0
|
||||
],
|
||||
"name": "plane/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 121,
|
||||
"name": "plane/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 121,
|
||||
"name": "plane/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 2,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 121,
|
||||
"name": "plane/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 3,
|
||||
"componentType": 5123,
|
||||
"count": 600,
|
||||
"name": "plane/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 4,
|
||||
"componentType": 5126,
|
||||
"count": 130,
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.5000000596046448
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5000000596046448,
|
||||
-0.4999999701976776
|
||||
],
|
||||
"name": "cone/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 4,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 130,
|
||||
"name": "cone/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 4,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 130,
|
||||
"name": "cone/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 4,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 130,
|
||||
"name": "cone/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 5,
|
||||
"componentType": 5123,
|
||||
"count": 276,
|
||||
"name": "cone/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 6,
|
||||
"componentType": 5126,
|
||||
"count": 1297,
|
||||
"max": [
|
||||
0.5,
|
||||
0.10000000149011612,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.10000000149011612,
|
||||
-0.5
|
||||
],
|
||||
"name": "torus/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 6,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 1297,
|
||||
"name": "torus/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 6,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 1297,
|
||||
"name": "torus/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 6,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 1297,
|
||||
"name": "torus/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 7,
|
||||
"componentType": 5123,
|
||||
"count": 6144,
|
||||
"name": "torus/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 8,
|
||||
"componentType": 5126,
|
||||
"count": 1294,
|
||||
"max": [
|
||||
0.49949654936790466,
|
||||
0.5,
|
||||
0.49899348616600037
|
||||
],
|
||||
"min": [
|
||||
-0.49748557806015015,
|
||||
-0.5,
|
||||
-0.49899333715438843
|
||||
],
|
||||
"name": "sphere/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 8,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 1294,
|
||||
"name": "sphere/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 8,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 1294,
|
||||
"name": "sphere/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 8,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 1294,
|
||||
"name": "sphere/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 9,
|
||||
"componentType": 5123,
|
||||
"count": 7140,
|
||||
"name": "sphere/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 10,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.0
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5,
|
||||
0.0
|
||||
],
|
||||
"name": "quad/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 10,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"name": "quad/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 10,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"name": "quad/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 10,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 4,
|
||||
"name": "quad/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 11,
|
||||
"componentType": 5123,
|
||||
"count": 6,
|
||||
"name": "quad/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 12,
|
||||
"componentType": 5126,
|
||||
"count": 260,
|
||||
"max": [
|
||||
0.5,
|
||||
1.0,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-1.0,
|
||||
-0.5
|
||||
],
|
||||
"name": "cylinder/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 12,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 260,
|
||||
"name": "cylinder/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 12,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 260,
|
||||
"name": "cylinder/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 12,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 260,
|
||||
"name": "cylinder/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 13,
|
||||
"componentType": 5123,
|
||||
"count": 384,
|
||||
"name": "cylinder/INDICES",
|
||||
"type": "SCALAR"
|
||||
},
|
||||
{
|
||||
"bufferView": 14,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"max": [
|
||||
0.5,
|
||||
0.5,
|
||||
0.5
|
||||
],
|
||||
"min": [
|
||||
-0.5,
|
||||
-0.5,
|
||||
-0.5
|
||||
],
|
||||
"name": "box/POSITION",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 14,
|
||||
"byteOffset": 12,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"name": "box/NORMAL",
|
||||
"type": "VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView": 14,
|
||||
"byteOffset": 24,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"name": "box/TEXCOORD_0",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 14,
|
||||
"byteOffset": 32,
|
||||
"componentType": 5126,
|
||||
"count": 24,
|
||||
"name": "box/TEXCOORD_1",
|
||||
"type": "VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView": 15,
|
||||
"componentType": 5123,
|
||||
"count": 36,
|
||||
"name": "box/INDICES",
|
||||
"type": "SCALAR"
|
||||
}
|
||||
],
|
||||
"asset": {
|
||||
"copyright": "Copyright (c) 2018-2020 Chukong Technologies Inc.",
|
||||
"generator": "FBX-glTF-conv",
|
||||
"version": "2.0"
|
||||
},
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 52840,
|
||||
"byteStride": 40,
|
||||
"name": "capsule",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 12288,
|
||||
"byteOffset": 52840,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 4840,
|
||||
"byteOffset": 65128,
|
||||
"byteStride": 40,
|
||||
"name": "plane",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 1200,
|
||||
"byteOffset": 69968,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 5200,
|
||||
"byteOffset": 71168,
|
||||
"byteStride": 40,
|
||||
"name": "cone",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 552,
|
||||
"byteOffset": 76368,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 51880,
|
||||
"byteOffset": 76920,
|
||||
"byteStride": 40,
|
||||
"name": "torus",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 12288,
|
||||
"byteOffset": 128800,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 51760,
|
||||
"byteOffset": 141088,
|
||||
"byteStride": 40,
|
||||
"name": "sphere",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 14280,
|
||||
"byteOffset": 192848,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 160,
|
||||
"byteOffset": 207128,
|
||||
"byteStride": 40,
|
||||
"name": "quad",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 12,
|
||||
"byteOffset": 207288,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 10400,
|
||||
"byteOffset": 207300,
|
||||
"byteStride": 40,
|
||||
"name": "cylinder",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 768,
|
||||
"byteOffset": 217700,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 960,
|
||||
"byteOffset": 218468,
|
||||
"byteStride": 40,
|
||||
"name": "box",
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 72,
|
||||
"byteOffset": 219428,
|
||||
"target": 34963
|
||||
}
|
||||
],
|
||||
"buffers": [
|
||||
{
|
||||
"byteLength": 219500,
|
||||
"uri": "out.bin"
|
||||
}
|
||||
],
|
||||
"extras": {
|
||||
"FBX-glTF-conv": {
|
||||
"animationFrameRate": 24.0
|
||||
}
|
||||
},
|
||||
"materials": [
|
||||
{
|
||||
"name": "lambert1",
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorFactor": [
|
||||
0.4000000059604645,
|
||||
0.4000000059604645,
|
||||
0.4000000059604645,
|
||||
1.0
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"meshes": [
|
||||
{
|
||||
"name": "capsule",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 1,
|
||||
"POSITION": 0,
|
||||
"TEXCOORD_0": 2,
|
||||
"TEXCOORD_1": 3
|
||||
},
|
||||
"indices": 4,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "plane",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 6,
|
||||
"POSITION": 5,
|
||||
"TEXCOORD_0": 7,
|
||||
"TEXCOORD_1": 8
|
||||
},
|
||||
"indices": 9,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cone",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 11,
|
||||
"POSITION": 10,
|
||||
"TEXCOORD_0": 12,
|
||||
"TEXCOORD_1": 13
|
||||
},
|
||||
"indices": 14,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "torus",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 16,
|
||||
"POSITION": 15,
|
||||
"TEXCOORD_0": 17,
|
||||
"TEXCOORD_1": 18
|
||||
},
|
||||
"indices": 19,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "sphere",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 21,
|
||||
"POSITION": 20,
|
||||
"TEXCOORD_0": 22,
|
||||
"TEXCOORD_1": 23
|
||||
},
|
||||
"indices": 24,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "quad",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 26,
|
||||
"POSITION": 25,
|
||||
"TEXCOORD_0": 27,
|
||||
"TEXCOORD_1": 28
|
||||
},
|
||||
"indices": 29,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cylinder",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 31,
|
||||
"POSITION": 30,
|
||||
"TEXCOORD_0": 32,
|
||||
"TEXCOORD_1": 33
|
||||
},
|
||||
"indices": 34,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "box",
|
||||
"primitives": [
|
||||
{
|
||||
"attributes": {
|
||||
"NORMAL": 36,
|
||||
"POSITION": 35,
|
||||
"TEXCOORD_0": 37,
|
||||
"TEXCOORD_1": 38
|
||||
},
|
||||
"indices": 39,
|
||||
"material": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"children": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8
|
||||
],
|
||||
"name": "group"
|
||||
},
|
||||
{
|
||||
"mesh": 0,
|
||||
"name": "capsule",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 1,
|
||||
"name": "plane",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 2,
|
||||
"name": "cone",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 3,
|
||||
"name": "torus",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 4,
|
||||
"name": "sphere",
|
||||
"scale": [
|
||||
100.0,
|
||||
100.0,
|
||||
100.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 5,
|
||||
"name": "quad",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 6,
|
||||
"name": "cylinder",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh": 7,
|
||||
"name": "box",
|
||||
"scale": [
|
||||
100.00000762939453,
|
||||
100.00000762939453,
|
||||
100.00000762939453
|
||||
]
|
||||
}
|
||||
],
|
||||
"scenes": [
|
||||
{
|
||||
"nodes": [
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": "2.3.14",
|
||||
"sourceTimeStamp": 1788434862928.8755,
|
||||
"outputTimeStamps": {
|
||||
"log.json": 1788883844889.8828,
|
||||
"out.bin": 1788883844887.8577,
|
||||
"out.gltf": 1788883844888.856
|
||||
},
|
||||
"options": {
|
||||
"preferLocalTimeSpan": false,
|
||||
"smartMaterialEnabled": false,
|
||||
"matchMeshNames": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
[
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
[
|
||||
[
|
||||
"RenderQueueDesc",
|
||||
[
|
||||
"stages",
|
||||
"isTransparent",
|
||||
"sortMode"
|
||||
],
|
||||
0
|
||||
],
|
||||
[
|
||||
"ForwardPipeline",
|
||||
[
|
||||
"_flows"
|
||||
],
|
||||
3,
|
||||
9
|
||||
],
|
||||
[
|
||||
"ShadowFlow",
|
||||
[
|
||||
"_name",
|
||||
"_stages"
|
||||
],
|
||||
2,
|
||||
9
|
||||
],
|
||||
[
|
||||
"ShadowStage",
|
||||
[
|
||||
"_name"
|
||||
],
|
||||
2
|
||||
],
|
||||
[
|
||||
"ForwardFlow",
|
||||
[
|
||||
"_name",
|
||||
"_priority",
|
||||
"_stages"
|
||||
],
|
||||
1,
|
||||
9
|
||||
],
|
||||
[
|
||||
"ForwardStage",
|
||||
[
|
||||
"_name",
|
||||
"renderQueues"
|
||||
],
|
||||
2,
|
||||
9
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
1,
|
||||
0,
|
||||
1
|
||||
],
|
||||
[
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
3,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
4,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
[
|
||||
5,
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
4
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
[
|
||||
[
|
||||
1,
|
||||
"ShadowFlow",
|
||||
[
|
||||
[
|
||||
2,
|
||||
"ShadowStage"
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
3,
|
||||
"ForwardFlow",
|
||||
1,
|
||||
[
|
||||
[
|
||||
4,
|
||||
"ForwardStage",
|
||||
[
|
||||
[
|
||||
5,
|
||||
[
|
||||
"default"
|
||||
]
|
||||
],
|
||||
[
|
||||
6,
|
||||
true,
|
||||
1,
|
||||
[
|
||||
"default"
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
]
|
||||
@@ -0,0 +1,69 @@
|
||||
[
|
||||
1,
|
||||
[
|
||||
"60f7195c-ec2a-45eb-ba94-8955f60e81d0"
|
||||
],
|
||||
[
|
||||
"_effectAsset"
|
||||
],
|
||||
[
|
||||
[
|
||||
"cc.Material",
|
||||
[
|
||||
"_name",
|
||||
"_props",
|
||||
"_states",
|
||||
"_defines"
|
||||
],
|
||||
-1
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
5
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
0,
|
||||
"ui-sprite-material",
|
||||
[
|
||||
{}
|
||||
],
|
||||
[
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"depthStencilState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"USE_TEXTURE": true,
|
||||
"IS_GRAY": false,
|
||||
"CC_USE_EMBEDDED_ALPHA": false
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
0,
|
||||
0,
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
],
|
||||
[
|
||||
0
|
||||
]
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
declare module "cc/userland/macro" {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
/// <reference path="C:\ProgramData\cocos\editors\Creator\3.8.8\resources\resources\3d\engine\bin\.declarations\cc.d.ts"/>
|
||||
|
||||
/**
|
||||
* @deprecated Global variable `cc` was dropped since 3.0. Use ES6 module syntax to import Cocos Creator APIs.
|
||||
*/
|
||||
declare const cc: never;
|
||||
|
||||
@@ -0,0 +1,175 @@
|
||||
declare module 'cc/env'{
|
||||
/**
|
||||
* Running in Web platform
|
||||
*/
|
||||
export const HTML5: boolean;
|
||||
|
||||
/**
|
||||
* Running in native platform (mobile app, desktop app, or simulator).
|
||||
*/
|
||||
export const NATIVE: boolean;
|
||||
|
||||
/**
|
||||
* Running in ANDROID platform
|
||||
*/
|
||||
export const ANDROID: boolean;
|
||||
|
||||
/**
|
||||
* Running in IOS platform
|
||||
*/
|
||||
export const IOS: boolean;
|
||||
|
||||
/**
|
||||
* Running in MAC platform
|
||||
*/
|
||||
export const MAC: boolean;
|
||||
|
||||
/**
|
||||
* Running in WINDOWS platform
|
||||
*/
|
||||
export const WINDOWS: boolean;
|
||||
|
||||
/**
|
||||
* Running in LINUX platform
|
||||
*/
|
||||
export const LINUX: boolean;
|
||||
|
||||
/**
|
||||
* Running in OHOS platform
|
||||
*/
|
||||
export const OHOS: boolean;
|
||||
|
||||
/**
|
||||
* Running in OPEN_HARMONY platform
|
||||
*/
|
||||
export const OPEN_HARMONY: boolean;
|
||||
|
||||
/**
|
||||
* Running in the Wechat's mini game.
|
||||
*/
|
||||
export const WECHAT: boolean;
|
||||
|
||||
/**
|
||||
* Running in the Wechat's mini program.
|
||||
*/
|
||||
export const WECHAT_MINI_PROGRAM: boolean;
|
||||
|
||||
/**
|
||||
* Running in the xiaomi's quick game.
|
||||
*/
|
||||
export const XIAOMI: boolean;
|
||||
|
||||
/**
|
||||
* Running in the alipay's mini game.
|
||||
*/
|
||||
export const ALIPAY: boolean;
|
||||
|
||||
/**
|
||||
* Running in the taobao creative app.
|
||||
*/
|
||||
export const TAOBAO: boolean;
|
||||
|
||||
/**
|
||||
* Running in the taobao mini game.
|
||||
*/
|
||||
export const TAOBAO_MINIGAME: boolean;
|
||||
|
||||
/**
|
||||
* Running in the ByteDance's mini game.
|
||||
*/
|
||||
export const BYTEDANCE: boolean;
|
||||
|
||||
/**
|
||||
* Running in the oppo's quick game.
|
||||
*/
|
||||
export const OPPO: boolean;
|
||||
|
||||
/**
|
||||
* Running in the vivo's quick game.
|
||||
*/
|
||||
export const VIVO: boolean;
|
||||
|
||||
/**
|
||||
* Running in the huawei's quick game.
|
||||
*/
|
||||
export const HUAWEI: boolean;
|
||||
|
||||
/**
|
||||
* Running in the migu's quick game.
|
||||
*/
|
||||
export const MIGU: boolean;
|
||||
|
||||
/**
|
||||
* Running in the honor's quick game.
|
||||
*/
|
||||
export const HONOR: boolean;
|
||||
|
||||
/**
|
||||
* Running in the cocos runtime.
|
||||
*/
|
||||
export const COCOS_RUNTIME: boolean;
|
||||
|
||||
/**
|
||||
* Running in the editor.
|
||||
*/
|
||||
export const EDITOR: boolean;
|
||||
|
||||
/**
|
||||
* Run in editor but not in editor preview.
|
||||
*/
|
||||
export const EDITOR_NOT_IN_PREVIEW: boolean;
|
||||
|
||||
/**
|
||||
* Preview in browser or simulator.
|
||||
*/
|
||||
export const PREVIEW: boolean;
|
||||
|
||||
/**
|
||||
* Running in published project.
|
||||
*/
|
||||
export const BUILD: boolean;
|
||||
|
||||
/**
|
||||
* Running in the engine's unit test.
|
||||
*/
|
||||
export const TEST: boolean;
|
||||
|
||||
/**
|
||||
* Running debug mode.
|
||||
*/
|
||||
export const DEBUG: boolean;
|
||||
|
||||
/**
|
||||
* Running in the editor or preview.
|
||||
*/
|
||||
export const DEV: boolean;
|
||||
|
||||
/**
|
||||
* Running in mini game.
|
||||
*/
|
||||
export const MINIGAME: boolean;
|
||||
|
||||
/**
|
||||
* Running in runtime based environment.
|
||||
*/
|
||||
export const RUNTIME_BASED: boolean;
|
||||
|
||||
/**
|
||||
* Support JIT.
|
||||
*/
|
||||
export const SUPPORT_JIT: boolean;
|
||||
|
||||
/**
|
||||
* Running in environment where using JSB as the JavaScript interface binding scheme.
|
||||
*/
|
||||
export const JSB: boolean;
|
||||
|
||||
/**
|
||||
* The network access mode.
|
||||
* - 0 Client
|
||||
* - 1 ListenServer
|
||||
* - 2 HostServer
|
||||
*/
|
||||
export const NET_MODE: number;
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
/// <reference path="C:\ProgramData\cocos\editors\Creator\3.8.8\resources\resources\3d\engine\@types\jsb.d.ts"/>
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"state": {
|
||||
"expandUuids": [
|
||||
"db://assets"
|
||||
],
|
||||
"sortType": "name"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"acf798ec-50c5-42b1-b59c-63462e77c6dc": {
|
||||
"assetUuid": "acf798ec-50c5-42b1-b59c-63462e77c6dc",
|
||||
"animationUuid": "",
|
||||
"expandLevels": [
|
||||
"0"
|
||||
]
|
||||
},
|
||||
"a345ef06-36ef-4016-bc63-2cfcd4e173fa": {
|
||||
"assetUuid": "a345ef06-36ef-4016-bc63-2cfcd4e173fa",
|
||||
"animationUuid": "",
|
||||
"expandLevels": [
|
||||
"0"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"current-scene": ""
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
System.register([], function (_export, _context) {
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {
|
||||
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": "20",
|
||||
"config": {
|
||||
"useDefineForClassFields": true,
|
||||
"allowDeclareFields": true,
|
||||
"loose": true,
|
||||
"exportsConditions": [
|
||||
"browser"
|
||||
],
|
||||
"guessCommonJsExports": false,
|
||||
"preserveSymlinks": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,601 @@
|
||||
{
|
||||
"chunks": {
|
||||
"50ec684ab28702df18cf262b25c26ec6d899c3a5": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "e2831fde95d58c09916d0f882742b7597544b8d1"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "b18130d786bcadd1d0cb653401afdf2ede79b799"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "fd74c742a972dbbcd3691d204a338b19a4515b62"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883838004
|
||||
},
|
||||
"b18130d786bcadd1d0cb653401afdf2ede79b799": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "e2831fde95d58c09916d0f882742b7597544b8d1"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883838127
|
||||
},
|
||||
"e2831fde95d58c09916d0f882742b7597544b8d1": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883838445
|
||||
},
|
||||
"7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883838620
|
||||
},
|
||||
"fd74c742a972dbbcd3691d204a338b19a4515b62": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883839732
|
||||
},
|
||||
"621a159ce4a7bac550092546e00c97e12458f12b": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883839972
|
||||
},
|
||||
"8e712b201a7af91e5a41365d538a13080eafb578": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883840060
|
||||
},
|
||||
"07a95adf538fa6dbf3998fa90cd1518629172d3a": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883840120
|
||||
},
|
||||
"a45626d8cbe59e99c7c3de1eff49663440433fe2": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883840176
|
||||
},
|
||||
"93ba276ea7b26ffcdc433fab14afc1ed6f05647b": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/base"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/gfx-webgl"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_10": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/rich-text"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_11": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/mask"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_12": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/graphics"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_13": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/ui-skew"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_14": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/ui"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_15": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/affine-transform"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_16": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/sorting-2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_17": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/particle"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_18": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/particle-2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_19": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-framework"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/gfx-webgl2"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_20": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-cannon"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_21": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-physx"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_22": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-ammo"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_23": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-builtin"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_24": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-framework"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_25": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-box2d-jsb"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_26": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-box2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_27": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-builtin"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_28": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-box2d-wasm"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_29": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/intersection-2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/gfx-empty"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_30": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/primitive"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_31": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/profiler"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_32": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/geometry-renderer"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_33": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/audio"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_34": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/video"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_35": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/xr"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_36": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/light-probe"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_37": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/terrain"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_38": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/webview"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_39": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/tween"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/gfx-webgpu"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_40": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/tiled-map"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_41": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/vendor-google"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_42": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/spine"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_43": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/dragon-bones"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_44": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/custom-pipeline"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_45": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/custom-pipeline-post-process"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_46": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/legacy-pipeline"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/3d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/animation"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/skeletal-animation"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_9": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/sorting"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788884452250
|
||||
},
|
||||
"6a5019a719a9014c047e67aa1cf34453ab8392ce": {
|
||||
"imports": {},
|
||||
"timestamp": 1788884452346
|
||||
},
|
||||
"6d8fd2b0177941b032ddc0733af48a561fb60657": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "50ec684ab28702df18cf262b25c26ec6d899c3a5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "b18130d786bcadd1d0cb653401afdf2ede79b799"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "e2831fde95d58c09916d0f882742b7597544b8d1"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "fd74c742a972dbbcd3691d204a338b19a4515b62"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "621a159ce4a7bac550092546e00c97e12458f12b"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "8e712b201a7af91e5a41365d538a13080eafb578"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "07a95adf538fa6dbf3998fa90cd1518629172d3a"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "a45626d8cbe59e99c7c3de1eff49663440433fe2"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788884454113
|
||||
}
|
||||
},
|
||||
"entries": {
|
||||
"cce:/internal/x/cc": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b",
|
||||
"cce:/internal/x/prerequisite-imports": "6d8fd2b0177941b032ddc0733af48a561fb60657",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-dof-pass.ts": "50ec684ab28702df18cf262b25c26ec6d899c3a5",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-pass.ts": "b18130d786bcadd1d0cb653401afdf2ede79b799",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-settings.ts": "e2831fde95d58c09916d0f882742b7597544b8d1",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-types.ts": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline.ts": "fd74c742a972dbbcd3691d204a338b19a4515b62",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/tools/debug-view-runtime-control.ts": "621a159ce4a7bac550092546e00c97e12458f12b",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/Boot.ts": "8e712b201a7af91e5a41365d538a13080eafb578",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/alpha/Entry.ts": "07a95adf538fa6dbf3998fa90cd1518629172d3a",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/beta/Entry.ts": "a45626d8cbe59e99c7c3de1eff49663440433fe2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, _dec, _class, _crd, ProbeEntry_alpha;
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "34050VwvZJJLLqkmTAadrS3", "Entry", undefined);
|
||||
|
||||
__checkObsolete__(['_decorator']);
|
||||
|
||||
_export("ProbeEntry_alpha", ProbeEntry_alpha = (_dec = _decorator.ccclass('ProbeEntry_alpha'), _dec(_class = class ProbeEntry_alpha {
|
||||
static run() {
|
||||
return 'PRIVATE_CODE_ALPHA';
|
||||
}
|
||||
|
||||
}) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=07a95adf538fa6dbf3998fa90cd1518629172d3a.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/alpha/Entry.ts"],"names":["_decorator","ProbeEntry_alpha","ccclass","run"],"mappings":";;;;;;;;;;AAAQA,MAAAA,U,OAAAA,U;;;;;;;;;kCAEKC,gB,WADZD,UAAU,CAACE,OAAX,CAAmB,kBAAnB,C,gBAAD,MACaD,gBADb,CAC8B;AAAW,eAAHE,GAAG,GAAE;AAAC,iBAAO,oBAAP;AAA6B;;AAA3C,O","sourcesContent":["import {_decorator} from 'cc';\n@_decorator.ccclass('ProbeEntry_alpha')\nexport class ProbeEntry_alpha {static run(){return 'PRIVATE_CODE_ALPHA';}}\n"]}
|
||||
@@ -0,0 +1,442 @@
|
||||
System.register(["__unresolved_0", "cc", "cc/env", "__unresolved_1", "__unresolved_2", "__unresolved_3"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, assert, CCBoolean, CCFloat, CCInteger, gfx, Material, rendering, Vec3, Vec4, EDITOR, BuiltinPipelineSettings, BuiltinPipelinePassBuilder, getPingPongRenderTarget, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _crd, ccclass, disallowMultiple, executeInEditMode, menu, property, requireComponent, type, Color, LoadOp, StoreOp, BuiltinDepthOfFieldPass;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
||||
|
||||
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
||||
|
||||
function _reportPossibleCrUseOfBuiltinPipelineSettings(extras) {
|
||||
_reporterNs.report("BuiltinPipelineSettings", "./builtin-pipeline-settings", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfBuiltinPipelinePassBuilder(extras) {
|
||||
_reporterNs.report("BuiltinPipelinePassBuilder", "./builtin-pipeline-pass", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfCameraConfigs(extras) {
|
||||
_reporterNs.report("CameraConfigs", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfgetPingPongRenderTarget(extras) {
|
||||
_reporterNs.report("getPingPongRenderTarget", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfPipelineConfigs(extras) {
|
||||
_reporterNs.report("PipelineConfigs", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfPipelineContext(extras) {
|
||||
_reporterNs.report("PipelineContext", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
_reporterNs = _unresolved_;
|
||||
}, function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
assert = _cc.assert;
|
||||
CCBoolean = _cc.CCBoolean;
|
||||
CCFloat = _cc.CCFloat;
|
||||
CCInteger = _cc.CCInteger;
|
||||
gfx = _cc.gfx;
|
||||
Material = _cc.Material;
|
||||
rendering = _cc.rendering;
|
||||
Vec3 = _cc.Vec3;
|
||||
Vec4 = _cc.Vec4;
|
||||
}, function (_ccEnv) {
|
||||
EDITOR = _ccEnv.EDITOR;
|
||||
}, function (_unresolved_2) {
|
||||
BuiltinPipelineSettings = _unresolved_2.BuiltinPipelineSettings;
|
||||
}, function (_unresolved_3) {
|
||||
BuiltinPipelinePassBuilder = _unresolved_3.BuiltinPipelinePassBuilder;
|
||||
}, function (_unresolved_4) {
|
||||
getPingPongRenderTarget = _unresolved_4.getPingPongRenderTarget;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "11f31MOwIxHu6IJcdEUWU5t", "builtin-dof-pass", undefined);
|
||||
/*
|
||||
Copyright (c) 2021-2024 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://www.cocos.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
__checkObsolete__(['_decorator', 'assert', 'CCBoolean', 'CCFloat', 'CCInteger', 'gfx', 'Material', 'renderer', 'rendering', 'Vec3', 'Vec4']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
disallowMultiple,
|
||||
executeInEditMode,
|
||||
menu,
|
||||
property,
|
||||
requireComponent,
|
||||
type
|
||||
} = _decorator);
|
||||
({
|
||||
Color,
|
||||
LoadOp,
|
||||
StoreOp
|
||||
} = gfx);
|
||||
|
||||
_export("BuiltinDepthOfFieldPass", BuiltinDepthOfFieldPass = (_dec = ccclass('BuiltinDepthOfFieldPass'), _dec2 = menu('Rendering/BuiltinDepthOfFieldPass'), _dec3 = requireComponent(_crd && BuiltinPipelineSettings === void 0 ? (_reportPossibleCrUseOfBuiltinPipelineSettings({
|
||||
error: Error()
|
||||
}), BuiltinPipelineSettings) : BuiltinPipelineSettings), _dec4 = property({
|
||||
group: {
|
||||
id: 'BuiltinPass',
|
||||
name: 'Pass Settings',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCInteger
|
||||
}), _dec5 = property({
|
||||
group: {
|
||||
id: 'BuiltinPass',
|
||||
name: 'Pass Settings',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCInteger
|
||||
}), _dec6 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean,
|
||||
visible: true
|
||||
}), _dec7 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material,
|
||||
visible: true
|
||||
}), _dec8 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
min: 0,
|
||||
visible: true
|
||||
}), _dec9 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
min: 0,
|
||||
visible: true
|
||||
}), _dec10 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0.0, 2, 0.01],
|
||||
slide: true,
|
||||
visible: true
|
||||
}), _dec11 = type(CCFloat), _dec12 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0.01, 10, 0.01],
|
||||
slide: true,
|
||||
visible: true
|
||||
}), _dec13 = type(Vec3), _dec14 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Vec3,
|
||||
visible: true
|
||||
}), _dec(_class = _dec2(_class = _dec3(_class = disallowMultiple(_class = executeInEditMode(_class = (_class2 = class BuiltinDepthOfFieldPass extends (_crd && BuiltinPipelinePassBuilder === void 0 ? (_reportPossibleCrUseOfBuiltinPipelinePassBuilder({
|
||||
error: Error()
|
||||
}), BuiltinPipelinePassBuilder) : BuiltinPipelinePassBuilder) {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
_initializerDefineProperty(this, "configOrder", _descriptor, this);
|
||||
|
||||
_initializerDefineProperty(this, "renderOrder", _descriptor2, this);
|
||||
|
||||
_initializerDefineProperty(this, "_enableDof", _descriptor3, this);
|
||||
|
||||
_initializerDefineProperty(this, "_material", _descriptor4, this);
|
||||
|
||||
_initializerDefineProperty(this, "_minRange", _descriptor5, this);
|
||||
|
||||
_initializerDefineProperty(this, "_maxRange", _descriptor6, this);
|
||||
|
||||
_initializerDefineProperty(this, "_blurRadius", _descriptor7, this);
|
||||
|
||||
_initializerDefineProperty(this, "_intensity", _descriptor8, this);
|
||||
|
||||
_initializerDefineProperty(this, "_focusPos", _descriptor9, this);
|
||||
|
||||
// Runtime members
|
||||
this._clearColorTransparentBlack = new Color(0, 0, 0, 0);
|
||||
this._cocParams = new Vec4(0, 0, 0, 0);
|
||||
this._focusPosVec4 = new Vec4(0, 0, 0, 1);
|
||||
this._cocTexSize = new Vec4(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
// DepthOfField
|
||||
set dofEnable(value) {
|
||||
this._enableDof = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._parent._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get dofEnable() {
|
||||
return this._enableDof;
|
||||
}
|
||||
|
||||
set dofMaterial(value) {
|
||||
if (this._material === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._material = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._parent._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get dofMaterial() {
|
||||
return this._material;
|
||||
}
|
||||
|
||||
set dofMinRange(value) {
|
||||
this._minRange = value;
|
||||
}
|
||||
|
||||
get dofMinRange() {
|
||||
return this._minRange;
|
||||
}
|
||||
|
||||
set dofMaxRange(value) {
|
||||
this._maxRange = value;
|
||||
}
|
||||
|
||||
get dofMaxRange() {
|
||||
return this._maxRange;
|
||||
}
|
||||
|
||||
set dofIntensity(value) {
|
||||
this._intensity = value;
|
||||
}
|
||||
|
||||
get dofIntensity() {
|
||||
return this._intensity;
|
||||
}
|
||||
|
||||
set dofBlurRadius(value) {
|
||||
this._blurRadius = value;
|
||||
}
|
||||
|
||||
get dofBlurRadius() {
|
||||
return this._blurRadius;
|
||||
}
|
||||
|
||||
set dofFocusPos(value) {
|
||||
this._focusPos = value;
|
||||
}
|
||||
|
||||
get dofFocusPos() {
|
||||
return this._focusPos;
|
||||
} // PipelinePassBuilder
|
||||
|
||||
|
||||
getConfigOrder() {
|
||||
return this.configOrder;
|
||||
}
|
||||
|
||||
getRenderOrder() {
|
||||
return this.renderOrder;
|
||||
}
|
||||
|
||||
configCamera(camera, pplConfigs, cameraConfigs) {
|
||||
cameraConfigs.enableDof = pplConfigs.supportDepthSample && this._enableDof && !!this._material;
|
||||
|
||||
if (cameraConfigs.enableDof) {
|
||||
// Output scene depth, this is allowed but has performance impact
|
||||
cameraConfigs.enableStoreSceneDepth = true;
|
||||
++cameraConfigs.remainingPasses;
|
||||
}
|
||||
}
|
||||
|
||||
windowResize(ppl, pplConfigs, cameraConfigs, window) {
|
||||
const id = window.renderWindowId;
|
||||
|
||||
if (cameraConfigs.enableDof) {
|
||||
ppl.addRenderTarget(`DofRadiance${id}`, cameraConfigs.radianceFormat, cameraConfigs.width, cameraConfigs.height);
|
||||
}
|
||||
}
|
||||
|
||||
setup(ppl, pplConfigs, cameraConfigs, camera, context, prevRenderPass) {
|
||||
if (!cameraConfigs.enableDof) {
|
||||
return prevRenderPass;
|
||||
}
|
||||
|
||||
--cameraConfigs.remainingPasses;
|
||||
assert(!!this._material);
|
||||
|
||||
if (cameraConfigs.remainingPasses === 0) {
|
||||
return this._addDepthOfFieldPasses(ppl, pplConfigs, cameraConfigs, this._material, camera, cameraConfigs.width, cameraConfigs.height, context.colorName, context.depthStencilName, cameraConfigs.colorName);
|
||||
} else {
|
||||
const prefix = cameraConfigs.enableShadingScale ? `ScaledRadiance` : `Radiance`;
|
||||
const outputRadianceName = (_crd && getPingPongRenderTarget === void 0 ? (_reportPossibleCrUseOfgetPingPongRenderTarget({
|
||||
error: Error()
|
||||
}), getPingPongRenderTarget) : getPingPongRenderTarget)(context.colorName, prefix, cameraConfigs.renderWindowId);
|
||||
const inputRadianceName = context.colorName;
|
||||
context.colorName = outputRadianceName;
|
||||
return this._addDepthOfFieldPasses(ppl, pplConfigs, cameraConfigs, this._material, camera, cameraConfigs.width, cameraConfigs.height, inputRadianceName, context.depthStencilName, outputRadianceName);
|
||||
}
|
||||
}
|
||||
|
||||
_addDepthOfFieldPasses(ppl, pplConfigs, cameraConfigs, dofMaterial, camera, width, height, inputRadiance, inputDepthStencil, outputRadianceName) {
|
||||
this._cocParams.x = this._minRange;
|
||||
this._cocParams.y = this._maxRange;
|
||||
this._cocParams.z = this._blurRadius;
|
||||
this._cocParams.w = this._intensity;
|
||||
this._focusPosVec4.x = this._focusPos.x;
|
||||
this._focusPosVec4.y = this._focusPos.y;
|
||||
this._focusPosVec4.z = this._focusPos.z;
|
||||
this._cocTexSize.x = 1.0 / width;
|
||||
this._cocTexSize.y = 1.0 / height;
|
||||
this._cocTexSize.z = width;
|
||||
this._cocTexSize.w = height;
|
||||
const id = cameraConfigs.renderWindowId;
|
||||
const tempRadiance = `DofRadiance${id}`; // Blur Pass
|
||||
|
||||
const blurPass = ppl.addRenderPass(width, height, 'cc-dof-blur');
|
||||
blurPass.addRenderTarget(tempRadiance, LoadOp.CLEAR, StoreOp.STORE, this._clearColorTransparentBlack);
|
||||
blurPass.addTexture(inputRadiance, 'screenTex');
|
||||
blurPass.setVec4('blurParams', this._cocParams);
|
||||
blurPass.setVec4('mainTexTexelSize', this._cocTexSize);
|
||||
blurPass.addQueue(rendering.QueueHint.OPAQUE).addCameraQuad(camera, dofMaterial, 0); // addCameraQuad will set camera related UBOs
|
||||
// coc pass
|
||||
|
||||
const cocPass = ppl.addRenderPass(width, height, 'cc-dof-coc');
|
||||
cocPass.addRenderTarget(outputRadianceName, LoadOp.CLEAR, StoreOp.STORE, this._clearColorTransparentBlack);
|
||||
cocPass.addTexture(tempRadiance, 'colorTex');
|
||||
cocPass.addTexture(inputDepthStencil, "DepthTex");
|
||||
cocPass.addTexture(inputRadiance, "screenTex");
|
||||
cocPass.setMat4('proj', camera.matProj);
|
||||
cocPass.setMat4('invProj', camera.matProjInv);
|
||||
cocPass.setMat4('viewMatInv', camera.node.worldMatrix);
|
||||
cocPass.setVec4('cocParams', this._cocParams);
|
||||
cocPass.setVec4('focus', this._focusPosVec4);
|
||||
cocPass.addQueue(rendering.QueueHint.OPAQUE).addCameraQuad(camera, dofMaterial, 1);
|
||||
return cocPass;
|
||||
}
|
||||
|
||||
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "configOrder", [_dec4], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return 0;
|
||||
}
|
||||
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "renderOrder", [_dec5], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return 150;
|
||||
}
|
||||
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_enableDof", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return false;
|
||||
}
|
||||
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_material", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return null;
|
||||
}
|
||||
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "_minRange", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return 0;
|
||||
}
|
||||
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "_maxRange", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return 2;
|
||||
}
|
||||
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "_blurRadius", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return 1;
|
||||
}
|
||||
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "_intensity", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return 1;
|
||||
}
|
||||
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "_focusPos", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return new Vec3(0, 0, 0);
|
||||
}
|
||||
}), _applyDecoratedDescriptor(_class2.prototype, "dofEnable", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "dofEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofMaterial", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "dofMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofMinRange", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "dofMinRange"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofMaxRange", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "dofMaxRange"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofIntensity", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "dofIntensity"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofBlurRadius", [_dec11, _dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "dofBlurRadius"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofFocusPos", [_dec13, _dec14], Object.getOwnPropertyDescriptor(_class2.prototype, "dofFocusPos"), _class2.prototype)), _class2)) || _class) || _class) || _class) || _class) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=50ec684ab28702df18cf262b25c26ec6d899c3a5.js.map
|
||||
@@ -0,0 +1,309 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, Color, Canvas, UITransform, instantiate, Toggle, _decorator, Component, Button, director, Node, Label, RichText, _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _crd, ccclass, property, DebugViewRuntimeControl;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
||||
|
||||
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
Color = _cc.Color;
|
||||
Canvas = _cc.Canvas;
|
||||
UITransform = _cc.UITransform;
|
||||
instantiate = _cc.instantiate;
|
||||
Toggle = _cc.Toggle;
|
||||
_decorator = _cc._decorator;
|
||||
Component = _cc.Component;
|
||||
Button = _cc.Button;
|
||||
director = _cc.director;
|
||||
Node = _cc.Node;
|
||||
Label = _cc.Label;
|
||||
RichText = _cc.RichText;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "b2bd1+njXxJxaFY3ymm06WU", "debug-view-runtime-control", undefined);
|
||||
|
||||
__checkObsolete__(['Color', 'Canvas', 'UITransform', 'instantiate', 'math', 'Toggle', 'TextureCube', '_decorator', 'Component', 'Button', 'labelAssembler', 'game', 'director', 'Node', 'Scene', 'renderer', 'CameraComponent', 'Label', 'ForwardPipeline', 'RichText']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
property
|
||||
} = _decorator);
|
||||
|
||||
_export("DebugViewRuntimeControl", DebugViewRuntimeControl = (_dec = ccclass('internal.DebugViewRuntimeControl'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec(_class = (_class2 = class DebugViewRuntimeControl extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
_initializerDefineProperty(this, "compositeModeToggle", _descriptor, this);
|
||||
|
||||
_initializerDefineProperty(this, "singleModeToggle", _descriptor2, this);
|
||||
|
||||
_initializerDefineProperty(this, "EnableAllCompositeModeButton", _descriptor3, this);
|
||||
|
||||
this._single = 0;
|
||||
this.strSingle = ['No Single Debug', 'Vertex Color', 'Vertex Normal', 'Vertex Tangent', 'World Position', 'Vertex Mirror', 'Face Side', 'UV0', 'UV1', 'UV Lightmap', 'Project Depth', 'Linear Depth', 'Fragment Normal', 'Fragment Tangent', 'Fragment Binormal', 'Base Color', 'Diffuse Color', 'Specular Color', 'Transparency', 'Metallic', 'Roughness', 'Specular Intensity', 'IOR', 'Direct Diffuse', 'Direct Specular', 'Direct All', 'Env Diffuse', 'Env Specular', 'Env All', 'Emissive', 'Light Map', 'Shadow', 'AO', 'Fresnel', 'Direct Transmit Diffuse', 'Direct Transmit Specular', 'Env Transmit Diffuse', 'Env Transmit Specular', 'Transmit All', 'Direct Internal Specular', 'Env Internal Specular', 'Internal All', 'Fog'];
|
||||
this.strComposite = ['Direct Diffuse', 'Direct Specular', 'Env Diffuse', 'Env Specular', 'Emissive', 'Light Map', 'Shadow', 'AO', 'Normal Map', 'Fog', 'Tone Mapping', 'Gamma Correction', 'Fresnel', 'Transmit Diffuse', 'Transmit Specular', 'Internal Specular', 'TT'];
|
||||
this.strMisc = ['CSM Layer Coloration', 'Lighting With Albedo'];
|
||||
this.compositeModeToggleList = [];
|
||||
this.singleModeToggleList = [];
|
||||
this.miscModeToggleList = [];
|
||||
this.textComponentList = [];
|
||||
this.labelComponentList = [];
|
||||
this.textContentList = [];
|
||||
this.hideButtonLabel = void 0;
|
||||
this._currentColorIndex = 0;
|
||||
this.strColor = ['<color=#ffffff>', '<color=#000000>', '<color=#ff0000>', '<color=#00ff00>', '<color=#0000ff>'];
|
||||
this.color = [Color.WHITE, Color.BLACK, Color.RED, Color.GREEN, Color.BLUE];
|
||||
}
|
||||
|
||||
start() {
|
||||
// get canvas resolution
|
||||
const canvas = this.node.parent.getComponent(Canvas);
|
||||
|
||||
if (!canvas) {
|
||||
console.error('debug-view-runtime-control should be child of Canvas');
|
||||
return;
|
||||
}
|
||||
|
||||
const uiTransform = this.node.parent.getComponent(UITransform);
|
||||
const halfScreenWidth = uiTransform.width * 0.5;
|
||||
const halfScreenHeight = uiTransform.height * 0.5;
|
||||
let x = -halfScreenWidth + halfScreenWidth * 0.1,
|
||||
y = halfScreenHeight - halfScreenHeight * 0.1;
|
||||
const width = 200,
|
||||
height = 20; // new nodes
|
||||
|
||||
const miscNode = this.node.getChildByName('MiscMode');
|
||||
const buttonNode = instantiate(miscNode);
|
||||
buttonNode.parent = this.node;
|
||||
buttonNode.name = 'Buttons';
|
||||
const titleNode = instantiate(miscNode);
|
||||
titleNode.parent = this.node;
|
||||
titleNode.name = 'Titles'; // title
|
||||
|
||||
for (let i = 0; i < 2; i++) {
|
||||
const newLabel = instantiate(this.EnableAllCompositeModeButton.getChildByName('Label'));
|
||||
newLabel.setPosition(x + (i > 0 ? 50 + width * 2 : 150), y, 0.0);
|
||||
newLabel.setScale(0.75, 0.75, 0.75);
|
||||
newLabel.parent = titleNode;
|
||||
const labelComponent = newLabel.getComponent(Label);
|
||||
labelComponent.string = i ? '----------Composite Mode----------' : '----------Single Mode----------';
|
||||
labelComponent.color = Color.WHITE;
|
||||
labelComponent.overflow = 0;
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
}
|
||||
|
||||
y -= height; // single
|
||||
|
||||
let currentRow = 0;
|
||||
|
||||
for (let i = 0; i < this.strSingle.length; i++, currentRow++) {
|
||||
if (i === this.strSingle.length >> 1) {
|
||||
x += width;
|
||||
currentRow = 0;
|
||||
}
|
||||
|
||||
const newNode = i ? instantiate(this.singleModeToggle) : this.singleModeToggle;
|
||||
newNode.setPosition(x, y - height * currentRow, 0.0);
|
||||
newNode.setScale(0.5, 0.5, 0.5);
|
||||
newNode.parent = this.singleModeToggle.parent;
|
||||
const textComponent = newNode.getComponentInChildren(RichText);
|
||||
textComponent.string = this.strSingle[i];
|
||||
this.textComponentList[this.textComponentList.length] = textComponent;
|
||||
this.textContentList[this.textContentList.length] = textComponent.string;
|
||||
newNode.on(Toggle.EventType.TOGGLE, this.toggleSingleMode, this);
|
||||
this.singleModeToggleList[i] = newNode;
|
||||
}
|
||||
|
||||
x += width; // buttons
|
||||
|
||||
this.EnableAllCompositeModeButton.setPosition(x + 15, y, 0.0);
|
||||
this.EnableAllCompositeModeButton.setScale(0.5, 0.5, 0.5);
|
||||
this.EnableAllCompositeModeButton.on(Button.EventType.CLICK, this.enableAllCompositeMode, this);
|
||||
this.EnableAllCompositeModeButton.parent = buttonNode;
|
||||
let labelComponent = this.EnableAllCompositeModeButton.getComponentInChildren(Label);
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
const changeColorButton = instantiate(this.EnableAllCompositeModeButton);
|
||||
changeColorButton.setPosition(x + 90, y, 0.0);
|
||||
changeColorButton.setScale(0.5, 0.5, 0.5);
|
||||
changeColorButton.on(Button.EventType.CLICK, this.changeTextColor, this);
|
||||
changeColorButton.parent = buttonNode;
|
||||
labelComponent = changeColorButton.getComponentInChildren(Label);
|
||||
labelComponent.string = 'TextColor';
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
const HideButton = instantiate(this.EnableAllCompositeModeButton);
|
||||
HideButton.setPosition(x + 200, y, 0.0);
|
||||
HideButton.setScale(0.5, 0.5, 0.5);
|
||||
HideButton.on(Button.EventType.CLICK, this.hideUI, this);
|
||||
HideButton.parent = this.node.parent;
|
||||
labelComponent = HideButton.getComponentInChildren(Label);
|
||||
labelComponent.string = 'Hide UI';
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
this.hideButtonLabel = labelComponent; // misc
|
||||
|
||||
y -= 40;
|
||||
|
||||
for (let i = 0; i < this.strMisc.length; i++) {
|
||||
const newNode = instantiate(this.compositeModeToggle);
|
||||
newNode.setPosition(x, y - height * i, 0.0);
|
||||
newNode.setScale(0.5, 0.5, 0.5);
|
||||
newNode.parent = miscNode;
|
||||
const textComponent = newNode.getComponentInChildren(RichText);
|
||||
textComponent.string = this.strMisc[i];
|
||||
this.textComponentList[this.textComponentList.length] = textComponent;
|
||||
this.textContentList[this.textContentList.length] = textComponent.string;
|
||||
const toggleComponent = newNode.getComponent(Toggle);
|
||||
toggleComponent.isChecked = i ? true : false;
|
||||
newNode.on(Toggle.EventType.TOGGLE, i ? this.toggleLightingWithAlbedo : this.toggleCSMColoration, this);
|
||||
this.miscModeToggleList[i] = newNode;
|
||||
} // composite
|
||||
|
||||
|
||||
y -= 150;
|
||||
|
||||
for (let i = 0; i < this.strComposite.length; i++) {
|
||||
const newNode = i ? instantiate(this.compositeModeToggle) : this.compositeModeToggle;
|
||||
newNode.setPosition(x, y - height * i, 0.0);
|
||||
newNode.setScale(0.5, 0.5, 0.5);
|
||||
newNode.parent = this.compositeModeToggle.parent;
|
||||
const textComponent = newNode.getComponentInChildren(RichText);
|
||||
textComponent.string = this.strComposite[i];
|
||||
this.textComponentList[this.textComponentList.length] = textComponent;
|
||||
this.textContentList[this.textContentList.length] = textComponent.string;
|
||||
newNode.on(Toggle.EventType.TOGGLE, this.toggleCompositeMode, this);
|
||||
this.compositeModeToggleList[i] = newNode;
|
||||
}
|
||||
}
|
||||
|
||||
isTextMatched(textUI, textDescription) {
|
||||
let tempText = new String(textUI);
|
||||
const findIndex = tempText.search('>');
|
||||
|
||||
if (findIndex === -1) {
|
||||
return textUI === textDescription;
|
||||
} else {
|
||||
tempText = tempText.substr(findIndex + 1);
|
||||
tempText = tempText.substr(0, tempText.search('<'));
|
||||
return tempText === textDescription;
|
||||
}
|
||||
}
|
||||
|
||||
toggleSingleMode(toggle) {
|
||||
const debugView = director.root.debugView;
|
||||
const textComponent = toggle.getComponentInChildren(RichText);
|
||||
|
||||
for (let i = 0; i < this.strSingle.length; i++) {
|
||||
if (this.isTextMatched(textComponent.string, this.strSingle[i])) {
|
||||
debugView.singleMode = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
toggleCompositeMode(toggle) {
|
||||
const debugView = director.root.debugView;
|
||||
const textComponent = toggle.getComponentInChildren(RichText);
|
||||
|
||||
for (let i = 0; i < this.strComposite.length; i++) {
|
||||
if (this.isTextMatched(textComponent.string, this.strComposite[i])) {
|
||||
debugView.enableCompositeMode(i, toggle.isChecked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
toggleLightingWithAlbedo(toggle) {
|
||||
const debugView = director.root.debugView;
|
||||
debugView.lightingWithAlbedo = toggle.isChecked;
|
||||
}
|
||||
|
||||
toggleCSMColoration(toggle) {
|
||||
const debugView = director.root.debugView;
|
||||
debugView.csmLayerColoration = toggle.isChecked;
|
||||
}
|
||||
|
||||
enableAllCompositeMode(button) {
|
||||
const debugView = director.root.debugView;
|
||||
debugView.enableAllCompositeMode(true);
|
||||
|
||||
for (let i = 0; i < this.compositeModeToggleList.length; i++) {
|
||||
const toggleComponent = this.compositeModeToggleList[i].getComponent(Toggle);
|
||||
toggleComponent.isChecked = true;
|
||||
}
|
||||
|
||||
let toggleComponent = this.miscModeToggleList[0].getComponent(Toggle);
|
||||
toggleComponent.isChecked = false;
|
||||
debugView.csmLayerColoration = false;
|
||||
toggleComponent = this.miscModeToggleList[1].getComponent(Toggle);
|
||||
toggleComponent.isChecked = true;
|
||||
debugView.lightingWithAlbedo = true;
|
||||
}
|
||||
|
||||
hideUI(button) {
|
||||
const titleNode = this.node.getChildByName('Titles');
|
||||
const activeValue = !titleNode.active;
|
||||
this.singleModeToggleList[0].parent.active = activeValue;
|
||||
this.miscModeToggleList[0].parent.active = activeValue;
|
||||
this.compositeModeToggleList[0].parent.active = activeValue;
|
||||
this.EnableAllCompositeModeButton.parent.active = activeValue;
|
||||
titleNode.active = activeValue;
|
||||
this.hideButtonLabel.string = activeValue ? 'Hide UI' : 'Show UI';
|
||||
}
|
||||
|
||||
changeTextColor(button) {
|
||||
this._currentColorIndex++;
|
||||
|
||||
if (this._currentColorIndex >= this.strColor.length) {
|
||||
this._currentColorIndex = 0;
|
||||
}
|
||||
|
||||
for (let i = 0; i < this.textComponentList.length; i++) {
|
||||
this.textComponentList[i].string = this.strColor[this._currentColorIndex] + this.textContentList[i] + '</color>';
|
||||
}
|
||||
|
||||
for (let i = 0; i < this.labelComponentList.length; i++) {
|
||||
this.labelComponentList[i].color = this.color[this._currentColorIndex];
|
||||
}
|
||||
}
|
||||
|
||||
onLoad() {}
|
||||
|
||||
update(deltaTime) {}
|
||||
|
||||
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "compositeModeToggle", [_dec2], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return null;
|
||||
}
|
||||
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "singleModeToggle", [_dec3], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return null;
|
||||
}
|
||||
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "EnableAllCompositeModeButton", [_dec4], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return null;
|
||||
}
|
||||
})), _class2)) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=621a159ce4a7bac550092546e00c97e12458f12b.js.map
|
||||
@@ -0,0 +1,28 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* This is the module which implements circular-reference detection.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reports a circular reference error fired by module import.
|
||||
* @param imported The binding of the import.
|
||||
* @param moduleRequest The module request of the import.
|
||||
* @param importMeta The import.meta of the source module.
|
||||
* @param extras Extra data passed by circular reference detection implementation.
|
||||
*/
|
||||
function report(imported, moduleRequest, importMeta, extras) {
|
||||
console.warn(`Found possible circular reference in "${importMeta.url}", \
|
||||
happened when use "${imported}" imported from "${moduleRequest}" \
|
||||
`, extras.error);
|
||||
}
|
||||
|
||||
_export("report", report);
|
||||
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=6a5019a719a9014c047e67aa1cf34453ab8392ce.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["cce:/internal/code-quality/cr.mjs"],"names":["report","imported","moduleRequest","importMeta","extras","console","warn","url","error"],"mappings":";;;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,WAASA,MAAT,CAAgBC,QAAhB,EAA0BC,aAA1B,EAAyCC,UAAzC,EAAqDC,MAArD,EAA6D;AAChEC,IAAAA,OAAO,CAACC,IAAR,CACK,yCAAwCH,UAAU,CAACI,GAAI;AAChE,qBAAqBN,QAAS,oBAAmBC,aAAc;AAC/D,CAHI,EAIIE,MAAM,CAACI,KAJX;AAMH;;oBAPeR,M","sourcesContent":["\r\n/**\r\n * This is the module which implements circular-reference detection.\r\n */\r\n\r\n/**\r\n * Reports a circular reference error fired by module import.\r\n * @param imported The binding of the import.\r\n * @param moduleRequest The module request of the import.\r\n * @param importMeta The import.meta of the source module.\r\n * @param extras Extra data passed by circular reference detection implementation.\r\n */\r\n\r\nexport function report(imported, moduleRequest, importMeta, extras) {\r\n console.warn(\r\n `Found possible circular reference in \"${importMeta.url}\", \\\r\nhappened when use \"${imported}\" imported from \"${moduleRequest}\" \\\r\n`,\r\n extras.error,\r\n );\r\n}\r\n"]}
|
||||
@@ -0,0 +1,21 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
return {
|
||||
setters: [],
|
||||
execute: async function () {
|
||||
// Auto generated represents the prerequisite imports of project modules.
|
||||
await (async () => {
|
||||
const requests = [() => _context.import("__unresolved_0"), () => _context.import("__unresolved_1"), () => _context.import("__unresolved_2"), () => _context.import("__unresolved_3"), () => _context.import("__unresolved_4"), () => _context.import("__unresolved_5"), () => _context.import("__unresolved_6"), () => _context.import("__unresolved_7"), () => _context.import("__unresolved_8")];
|
||||
|
||||
for (const request of requests) {
|
||||
try {
|
||||
await request();
|
||||
} catch (_err) {// The error should have been caught by executor.
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=6d8fd2b0177941b032ddc0733af48a561fb60657.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["cce:/internal/x/prerequisite-imports"],"names":["requests","request","_err"],"mappings":";;;;;;AACA;AAEA,YAAM,CAAC,YAAY;AACf,cAAMA,QAAQ,GAAG,CAAC,uCAAD,EAA4J,uCAA5J,EAA4T,uCAA5T,EAAge,uCAAhe,EAAioB,uCAAjoB,EAA4xB,uCAA5xB,EAAg7B,uCAAh7B,EAAsiC,uCAAtiC,EAAyqC,uCAAzqC,CAAjB;;AACA,aAAK,MAAMC,OAAX,IAAsBD,QAAtB,EAAgC;AAC5B,cAAI;AACA,kBAAMC,OAAO,EAAb;AACH,WAFD,CAEE,OAAOC,IAAP,EAAa,CACX;AACH;AACJ;AACJ,OATK,GAAN","sourcesContent":["\n// Auto generated represents the prerequisite imports of project modules.\n\nawait (async () => {\n const requests = [() => import(\"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-dof-pass.ts\"), () => import(\"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-pass.ts\"), () => import(\"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-settings.ts\"), () => import(\"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-types.ts\"), () => import(\"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline.ts\"), () => import(\"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/tools/debug-view-runtime-control.ts\"), () => import(\"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/Boot.ts\"), () => import(\"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/alpha/Entry.ts\"), () => import(\"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/beta/Entry.ts\")];\n for (const request of requests) {\n try {\n await request();\n } catch (_err) {\n // The error should have been caught by executor.\n }\n }\n})();\n "]}
|
||||
@@ -0,0 +1,333 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, ccenum, gfx, _crd, SampleCount, BloomType;
|
||||
|
||||
function makeMSAA() {
|
||||
return {
|
||||
enabled: false,
|
||||
sampleCount: SampleCount.X4
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredMSAA(value) {
|
||||
if (value.enabled === undefined) {
|
||||
value.enabled = false;
|
||||
}
|
||||
|
||||
if (value.sampleCount === undefined) {
|
||||
value.sampleCount = SampleCount.X4;
|
||||
}
|
||||
}
|
||||
|
||||
function makeHBAO() {
|
||||
return {
|
||||
enabled: false,
|
||||
radiusScale: 1,
|
||||
angleBiasDegree: 10,
|
||||
blurSharpness: 3,
|
||||
aoSaturation: 1,
|
||||
needBlur: false
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredHBAO(value) {
|
||||
if (value.enabled === undefined) {
|
||||
value.enabled = false;
|
||||
}
|
||||
|
||||
if (value.radiusScale === undefined) {
|
||||
value.radiusScale = 1;
|
||||
}
|
||||
|
||||
if (value.angleBiasDegree === undefined) {
|
||||
value.angleBiasDegree = 10;
|
||||
}
|
||||
|
||||
if (value.blurSharpness === undefined) {
|
||||
value.blurSharpness = 3;
|
||||
}
|
||||
|
||||
if (value.aoSaturation === undefined) {
|
||||
value.aoSaturation = 1;
|
||||
}
|
||||
|
||||
if (value.needBlur === undefined) {
|
||||
value.needBlur = false;
|
||||
}
|
||||
}
|
||||
|
||||
function makeBloom() {
|
||||
return {
|
||||
enabled: false,
|
||||
type: BloomType.KawaseDualFilter,
|
||||
material: null,
|
||||
kawaseFilterMaterial: null,
|
||||
mipmapFilterMaterial: null,
|
||||
enableAlphaMask: false,
|
||||
iterations: 3,
|
||||
threshold: 0.8,
|
||||
intensity: 1
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredBloom(value) {
|
||||
if (value.enabled === undefined) {
|
||||
value.enabled = false;
|
||||
}
|
||||
|
||||
if (value.type === undefined) {
|
||||
value.type = BloomType.KawaseDualFilter;
|
||||
}
|
||||
|
||||
if (value.material === undefined) {
|
||||
value.material = null;
|
||||
}
|
||||
|
||||
if (value.kawaseFilterMaterial === undefined) {
|
||||
value.kawaseFilterMaterial = value.material || null;
|
||||
}
|
||||
|
||||
if (value.mipmapFilterMaterial === undefined) {
|
||||
value.mipmapFilterMaterial = null;
|
||||
}
|
||||
|
||||
if (value.enableAlphaMask === undefined) {
|
||||
value.enableAlphaMask = false;
|
||||
}
|
||||
|
||||
if (value.iterations === undefined) {
|
||||
value.iterations = 3;
|
||||
}
|
||||
|
||||
if (value.threshold === undefined) {
|
||||
value.threshold = 0.8;
|
||||
}
|
||||
|
||||
if (value.intensity === undefined) {
|
||||
value.intensity = 1;
|
||||
}
|
||||
}
|
||||
|
||||
function makeColorGrading() {
|
||||
return {
|
||||
enabled: false,
|
||||
material: null,
|
||||
contribute: 1,
|
||||
colorGradingMap: null
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredColorGrading(value) {
|
||||
if (value.enabled === undefined) {
|
||||
value.enabled = false;
|
||||
}
|
||||
|
||||
if (value.material === undefined) {
|
||||
value.material = null;
|
||||
}
|
||||
|
||||
if (value.contribute === undefined) {
|
||||
value.contribute = 1;
|
||||
}
|
||||
|
||||
if (value.colorGradingMap === undefined) {
|
||||
value.colorGradingMap = null;
|
||||
}
|
||||
}
|
||||
|
||||
function makeFSR() {
|
||||
return {
|
||||
enabled: false,
|
||||
material: null,
|
||||
sharpness: 0.8
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredFSR(value) {
|
||||
if (value.enabled === undefined) {
|
||||
value.enabled = false;
|
||||
}
|
||||
|
||||
if (value.material === undefined) {
|
||||
value.material = null;
|
||||
}
|
||||
|
||||
if (value.sharpness === undefined) {
|
||||
value.sharpness = 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
function makeFXAA() {
|
||||
return {
|
||||
enabled: false,
|
||||
material: null
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredFXAA(value) {
|
||||
if (value.enabled === undefined) {
|
||||
value.enabled = false;
|
||||
}
|
||||
|
||||
if (value.material === undefined) {
|
||||
value.material = null;
|
||||
}
|
||||
}
|
||||
|
||||
function makeToneMapping() {
|
||||
return {
|
||||
material: null
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredToneMapping(value) {
|
||||
if (value.material === undefined) {
|
||||
value.material = null;
|
||||
}
|
||||
}
|
||||
|
||||
function makePipelineSettings() {
|
||||
return {
|
||||
msaa: makeMSAA(),
|
||||
enableShadingScale: false,
|
||||
shadingScale: 0.5,
|
||||
bloom: makeBloom(),
|
||||
toneMapping: makeToneMapping(),
|
||||
colorGrading: makeColorGrading(),
|
||||
fsr: makeFSR(),
|
||||
fxaa: makeFXAA()
|
||||
};
|
||||
}
|
||||
|
||||
function fillRequiredPipelineSettings(value) {
|
||||
if (!value.msaa) {
|
||||
value.msaa = makeMSAA();
|
||||
} else {
|
||||
fillRequiredMSAA(value.msaa);
|
||||
}
|
||||
|
||||
if (value.enableShadingScale === undefined) {
|
||||
value.enableShadingScale = false;
|
||||
}
|
||||
|
||||
if (value.shadingScale === undefined) {
|
||||
value.shadingScale = 0.5;
|
||||
}
|
||||
|
||||
if (!value.bloom) {
|
||||
value.bloom = makeBloom();
|
||||
} else {
|
||||
fillRequiredBloom(value.bloom);
|
||||
}
|
||||
|
||||
if (!value.toneMapping) {
|
||||
value.toneMapping = makeToneMapping();
|
||||
} else {
|
||||
fillRequiredToneMapping(value.toneMapping);
|
||||
}
|
||||
|
||||
if (!value.colorGrading) {
|
||||
value.colorGrading = makeColorGrading();
|
||||
} else {
|
||||
fillRequiredColorGrading(value.colorGrading);
|
||||
}
|
||||
|
||||
if (!value.fsr) {
|
||||
value.fsr = makeFSR();
|
||||
} else {
|
||||
fillRequiredFSR(value.fsr);
|
||||
}
|
||||
|
||||
if (!value.fxaa) {
|
||||
value.fxaa = makeFXAA();
|
||||
} else {
|
||||
fillRequiredFXAA(value.fxaa);
|
||||
}
|
||||
}
|
||||
|
||||
_export({
|
||||
makeMSAA: makeMSAA,
|
||||
fillRequiredMSAA: fillRequiredMSAA,
|
||||
makeHBAO: makeHBAO,
|
||||
fillRequiredHBAO: fillRequiredHBAO,
|
||||
makeBloom: makeBloom,
|
||||
fillRequiredBloom: fillRequiredBloom,
|
||||
makeColorGrading: makeColorGrading,
|
||||
fillRequiredColorGrading: fillRequiredColorGrading,
|
||||
makeFSR: makeFSR,
|
||||
fillRequiredFSR: fillRequiredFSR,
|
||||
makeFXAA: makeFXAA,
|
||||
fillRequiredFXAA: fillRequiredFXAA,
|
||||
makeToneMapping: makeToneMapping,
|
||||
fillRequiredToneMapping: fillRequiredToneMapping,
|
||||
makePipelineSettings: makePipelineSettings,
|
||||
fillRequiredPipelineSettings: fillRequiredPipelineSettings
|
||||
});
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
ccenum = _cc.ccenum;
|
||||
gfx = _cc.gfx;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "cbf30kCUX9A3K+QpVC6wnzx", "builtin-pipeline-types", undefined);
|
||||
/*
|
||||
Copyright (c) 2021-2024 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://www.cocos.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
|
||||
* The following section is auto-generated.
|
||||
* ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
|
||||
*/
|
||||
|
||||
/* eslint-disable max-len */
|
||||
|
||||
|
||||
__checkObsolete__(['Material', 'Texture2D', 'ccenum', 'gfx']);
|
||||
|
||||
({
|
||||
SampleCount
|
||||
} = gfx);
|
||||
|
||||
_export("BloomType", BloomType = /*#__PURE__*/function (BloomType) {
|
||||
BloomType[BloomType["KawaseDualFilter"] = 0] = "KawaseDualFilter";
|
||||
BloomType[BloomType["MipmapFilter"] = 1] = "MipmapFilter";
|
||||
return BloomType;
|
||||
}({}));
|
||||
|
||||
ccenum(BloomType);
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223.js.map
|
||||
@@ -0,0 +1,64 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, director, Director, assetManager, TextAsset, Prefab, instantiate, js, _crd;
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
director = _cc.director;
|
||||
Director = _cc.Director;
|
||||
assetManager = _cc.assetManager;
|
||||
TextAsset = _cc.TextAsset;
|
||||
Prefab = _cc.Prefab;
|
||||
instantiate = _cc.instantiate;
|
||||
js = _cc.js;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "d3a6crOBwVLlLjTY3gqQ3kp", "Boot", undefined);
|
||||
|
||||
__checkObsolete__(['director', 'Director', 'assetManager', 'TextAsset', 'Prefab', 'instantiate', 'js']);
|
||||
|
||||
director.once(Director.EVENT_AFTER_SCENE_LAUNCH, async () => {
|
||||
const report = {
|
||||
ok: false,
|
||||
requests: []
|
||||
};
|
||||
globalThis.__probe = report;
|
||||
|
||||
try {
|
||||
const target = await fetch('./target.json').then(r => {
|
||||
if (!r.ok) throw Error('target missing');
|
||||
return r.json();
|
||||
});
|
||||
report.selected = target.bundle;
|
||||
const bundle = await new Promise((resolve, reject) => assetManager.loadBundle(target.bundle, (e, b) => e ? reject(e) : resolve(b)));
|
||||
const entry = js.getClassByName(target.entry);
|
||||
if (!entry) throw Error('entry missing');
|
||||
report.code = entry.run();
|
||||
const text = await new Promise((resolve, reject) => bundle.load('private', TextAsset, (e, a) => e ? reject(e) : resolve(a)));
|
||||
report.text = text.text;
|
||||
const prefab = await new Promise((resolve, reject) => bundle.load('View', Prefab, (e, a) => e ? reject(e) : resolve(a)));
|
||||
const node = instantiate(prefab);
|
||||
node.parent = director.getScene();
|
||||
report.prefab = node.name;
|
||||
report.otherRegistered = !!js.getClassByName(target.otherEntry);
|
||||
report.ok = true;
|
||||
} catch (e) {
|
||||
report.error = String(e);
|
||||
}
|
||||
|
||||
console.log('PROBE_RESULT', JSON.stringify(report));
|
||||
});
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=8e712b201a7af91e5a41365d538a13080eafb578.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/Boot.ts"],"names":["director","Director","assetManager","TextAsset","Prefab","instantiate","js","once","EVENT_AFTER_SCENE_LAUNCH","report","ok","requests","globalThis","__probe","target","fetch","then","r","Error","json","selected","bundle","Promise","resolve","reject","loadBundle","e","b","entry","getClassByName","code","run","text","load","a","prefab","node","parent","getScene","name","otherRegistered","otherEntry","error","String","console","log","JSON","stringify"],"mappings":";;;;;;;;;;AAAQA,MAAAA,Q,OAAAA,Q;AAASC,MAAAA,Q,OAAAA,Q;AAASC,MAAAA,Y,OAAAA,Y;AAAaC,MAAAA,S,OAAAA,S;AAAUC,MAAAA,M,OAAAA,M;AAAOC,MAAAA,W,OAAAA,W;AAAYC,MAAAA,E,OAAAA,E;;;;;;;;;AACpEN,MAAAA,QAAQ,CAACO,IAAT,CAAcN,QAAQ,CAACO,wBAAvB,EAAgD,YAAS;AACxD,cAAMC,MAAU,GAAC;AAACC,UAAAA,EAAE,EAAC,KAAJ;AAAUC,UAAAA,QAAQ,EAAC;AAAnB,SAAjB;AAAyCC,QAAAA,UAAD,CAAoBC,OAApB,GAA4BJ,MAA5B;;AACxC,YAAG;AAAC,gBAAMK,MAAM,GAAC,MAAMC,KAAK,CAAC,eAAD,CAAL,CAAuBC,IAAvB,CAA4BC,CAAC,IAAE;AAAC,gBAAG,CAACA,CAAC,CAACP,EAAN,EAAS,MAAMQ,KAAK,CAAC,gBAAD,CAAX;AAA8B,mBAAOD,CAAC,CAACE,IAAF,EAAP;AAAiB,WAAxF,CAAnB;AACJV,UAAAA,MAAM,CAACW,QAAP,GAAgBN,MAAM,CAACO,MAAvB;AACA,gBAAMA,MAAM,GAAC,MAAM,IAAIC,OAAJ,CAAiB,CAACC,OAAD,EAASC,MAAT,KAAkBtB,YAAY,CAACuB,UAAb,CAAwBX,MAAM,CAACO,MAA/B,EAAsC,CAACK,CAAD,EAAGC,CAAH,KAAOD,CAAC,GAACF,MAAM,CAACE,CAAD,CAAP,GAAWH,OAAO,CAACI,CAAD,CAAhE,CAAnC,CAAnB;AACA,gBAAMC,KAAS,GAACtB,EAAE,CAACuB,cAAH,CAAkBf,MAAM,CAACc,KAAzB,CAAhB;AAAgD,cAAG,CAACA,KAAJ,EAAU,MAAMV,KAAK,CAAC,eAAD,CAAX;AAA6BT,UAAAA,MAAM,CAACqB,IAAP,GAAYF,KAAK,CAACG,GAAN,EAAZ;AACvF,gBAAMC,IAAI,GAAC,MAAM,IAAIV,OAAJ,CAAuB,CAACC,OAAD,EAASC,MAAT,KAAkBH,MAAM,CAACY,IAAP,CAAY,SAAZ,EAAsB9B,SAAtB,EAAgC,CAACuB,CAAD,EAAGQ,CAAH,KAAOR,CAAC,GAACF,MAAM,CAACE,CAAD,CAAP,GAAWH,OAAO,CAACW,CAAD,CAA1D,CAAzC,CAAjB;AAA0HzB,UAAAA,MAAM,CAACuB,IAAP,GAAYA,IAAI,CAACA,IAAjB;AAC1H,gBAAMG,MAAM,GAAC,MAAM,IAAIb,OAAJ,CAAoB,CAACC,OAAD,EAASC,MAAT,KAAkBH,MAAM,CAACY,IAAP,CAAY,MAAZ,EAAmB7B,MAAnB,EAA0B,CAACsB,CAAD,EAAGQ,CAAH,KAAOR,CAAC,GAACF,MAAM,CAACE,CAAD,CAAP,GAAWH,OAAO,CAACW,CAAD,CAApD,CAAtC,CAAnB;AAAmH,gBAAME,IAAI,GAAC/B,WAAW,CAAC8B,MAAD,CAAtB;AAA+BC,UAAAA,IAAI,CAACC,MAAL,GAAYrC,QAAQ,CAACsC,QAAT,EAAZ;AAAgC7B,UAAAA,MAAM,CAAC0B,MAAP,GAAcC,IAAI,CAACG,IAAnB;AAClL9B,UAAAA,MAAM,CAAC+B,eAAP,GAAuB,CAAC,CAAClC,EAAE,CAACuB,cAAH,CAAkBf,MAAM,CAAC2B,UAAzB,CAAzB;AAA8DhC,UAAAA,MAAM,CAACC,EAAP,GAAU,IAAV;AAC7D,SAPD,CAOC,OAAMgB,CAAN,EAAQ;AAACjB,UAAAA,MAAM,CAACiC,KAAP,GAAaC,MAAM,CAACjB,CAAD,CAAnB;AAAwB;;AAClCkB,QAAAA,OAAO,CAACC,GAAR,CAAY,cAAZ,EAA2BC,IAAI,CAACC,SAAL,CAAetC,MAAf,CAA3B;AACA,OAXD","sourcesContent":["import {director,Director,assetManager,TextAsset,Prefab,instantiate,js} from 'cc';\ndirector.once(Director.EVENT_AFTER_SCENE_LAUNCH,async()=>{\n const report:any={ok:false,requests:[]};(globalThis as any).__probe=report;\n try{const target=await fetch('./target.json').then(r=>{if(!r.ok)throw Error('target missing');return r.json();});\n report.selected=target.bundle;\n const bundle=await new Promise<any>((resolve,reject)=>assetManager.loadBundle(target.bundle,(e,b)=>e?reject(e):resolve(b)));\n const entry:any=js.getClassByName(target.entry);if(!entry)throw Error('entry missing');report.code=entry.run();\n const text=await new Promise<TextAsset>((resolve,reject)=>bundle.load('private',TextAsset,(e,a)=>e?reject(e):resolve(a)));report.text=text.text;\n const prefab=await new Promise<Prefab>((resolve,reject)=>bundle.load('View',Prefab,(e,a)=>e?reject(e):resolve(a)));const node=instantiate(prefab);node.parent=director.getScene();report.prefab=node.name;\n report.otherRegistered=!!js.getClassByName(target.otherEntry);report.ok=true;\n }catch(e){report.error=String(e);}\n console.log('PROBE_RESULT',JSON.stringify(report));\n});\n"]}
|
||||
@@ -0,0 +1,385 @@
|
||||
System.register(["__unresolved_0", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10", "__unresolved_11", "__unresolved_12", "__unresolved_13", "__unresolved_14", "__unresolved_15", "__unresolved_16", "__unresolved_17", "__unresolved_18", "__unresolved_19", "__unresolved_20", "__unresolved_21", "__unresolved_22", "__unresolved_23", "__unresolved_24", "__unresolved_25", "__unresolved_26", "__unresolved_27", "__unresolved_28", "__unresolved_29", "__unresolved_30", "__unresolved_31", "__unresolved_32", "__unresolved_33", "__unresolved_34", "__unresolved_35", "__unresolved_36", "__unresolved_37", "__unresolved_38", "__unresolved_39", "__unresolved_40", "__unresolved_41", "__unresolved_42", "__unresolved_43", "__unresolved_44", "__unresolved_45", "__unresolved_46"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
var _exportObj = {};
|
||||
|
||||
for (var _key in _unresolved_) {
|
||||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _unresolved_[_key];
|
||||
}
|
||||
|
||||
_export(_exportObj);
|
||||
}, function (_unresolved_2) {
|
||||
var _exportObj2 = {};
|
||||
|
||||
for (var _key2 in _unresolved_2) {
|
||||
if (_key2 !== "default" && _key2 !== "__esModule") _exportObj2[_key2] = _unresolved_2[_key2];
|
||||
}
|
||||
|
||||
_export(_exportObj2);
|
||||
}, function (_unresolved_3) {
|
||||
var _exportObj3 = {};
|
||||
|
||||
for (var _key3 in _unresolved_3) {
|
||||
if (_key3 !== "default" && _key3 !== "__esModule") _exportObj3[_key3] = _unresolved_3[_key3];
|
||||
}
|
||||
|
||||
_export(_exportObj3);
|
||||
}, function (_unresolved_4) {
|
||||
var _exportObj4 = {};
|
||||
|
||||
for (var _key4 in _unresolved_4) {
|
||||
if (_key4 !== "default" && _key4 !== "__esModule") _exportObj4[_key4] = _unresolved_4[_key4];
|
||||
}
|
||||
|
||||
_export(_exportObj4);
|
||||
}, function (_unresolved_5) {
|
||||
var _exportObj5 = {};
|
||||
|
||||
for (var _key5 in _unresolved_5) {
|
||||
if (_key5 !== "default" && _key5 !== "__esModule") _exportObj5[_key5] = _unresolved_5[_key5];
|
||||
}
|
||||
|
||||
_export(_exportObj5);
|
||||
}, function (_unresolved_6) {
|
||||
var _exportObj6 = {};
|
||||
|
||||
for (var _key6 in _unresolved_6) {
|
||||
if (_key6 !== "default" && _key6 !== "__esModule") _exportObj6[_key6] = _unresolved_6[_key6];
|
||||
}
|
||||
|
||||
_export(_exportObj6);
|
||||
}, function (_unresolved_7) {
|
||||
var _exportObj7 = {};
|
||||
|
||||
for (var _key7 in _unresolved_7) {
|
||||
if (_key7 !== "default" && _key7 !== "__esModule") _exportObj7[_key7] = _unresolved_7[_key7];
|
||||
}
|
||||
|
||||
_export(_exportObj7);
|
||||
}, function (_unresolved_8) {
|
||||
var _exportObj8 = {};
|
||||
|
||||
for (var _key8 in _unresolved_8) {
|
||||
if (_key8 !== "default" && _key8 !== "__esModule") _exportObj8[_key8] = _unresolved_8[_key8];
|
||||
}
|
||||
|
||||
_export(_exportObj8);
|
||||
}, function (_unresolved_9) {
|
||||
var _exportObj9 = {};
|
||||
|
||||
for (var _key9 in _unresolved_9) {
|
||||
if (_key9 !== "default" && _key9 !== "__esModule") _exportObj9[_key9] = _unresolved_9[_key9];
|
||||
}
|
||||
|
||||
_export(_exportObj9);
|
||||
}, function (_unresolved_10) {
|
||||
var _exportObj10 = {};
|
||||
|
||||
for (var _key10 in _unresolved_10) {
|
||||
if (_key10 !== "default" && _key10 !== "__esModule") _exportObj10[_key10] = _unresolved_10[_key10];
|
||||
}
|
||||
|
||||
_export(_exportObj10);
|
||||
}, function (_unresolved_11) {
|
||||
var _exportObj11 = {};
|
||||
|
||||
for (var _key11 in _unresolved_11) {
|
||||
if (_key11 !== "default" && _key11 !== "__esModule") _exportObj11[_key11] = _unresolved_11[_key11];
|
||||
}
|
||||
|
||||
_export(_exportObj11);
|
||||
}, function (_unresolved_12) {
|
||||
var _exportObj12 = {};
|
||||
|
||||
for (var _key12 in _unresolved_12) {
|
||||
if (_key12 !== "default" && _key12 !== "__esModule") _exportObj12[_key12] = _unresolved_12[_key12];
|
||||
}
|
||||
|
||||
_export(_exportObj12);
|
||||
}, function (_unresolved_13) {
|
||||
var _exportObj13 = {};
|
||||
|
||||
for (var _key13 in _unresolved_13) {
|
||||
if (_key13 !== "default" && _key13 !== "__esModule") _exportObj13[_key13] = _unresolved_13[_key13];
|
||||
}
|
||||
|
||||
_export(_exportObj13);
|
||||
}, function (_unresolved_14) {
|
||||
var _exportObj14 = {};
|
||||
|
||||
for (var _key14 in _unresolved_14) {
|
||||
if (_key14 !== "default" && _key14 !== "__esModule") _exportObj14[_key14] = _unresolved_14[_key14];
|
||||
}
|
||||
|
||||
_export(_exportObj14);
|
||||
}, function (_unresolved_15) {
|
||||
var _exportObj15 = {};
|
||||
|
||||
for (var _key15 in _unresolved_15) {
|
||||
if (_key15 !== "default" && _key15 !== "__esModule") _exportObj15[_key15] = _unresolved_15[_key15];
|
||||
}
|
||||
|
||||
_export(_exportObj15);
|
||||
}, function (_unresolved_16) {
|
||||
var _exportObj16 = {};
|
||||
|
||||
for (var _key16 in _unresolved_16) {
|
||||
if (_key16 !== "default" && _key16 !== "__esModule") _exportObj16[_key16] = _unresolved_16[_key16];
|
||||
}
|
||||
|
||||
_export(_exportObj16);
|
||||
}, function (_unresolved_17) {
|
||||
var _exportObj17 = {};
|
||||
|
||||
for (var _key17 in _unresolved_17) {
|
||||
if (_key17 !== "default" && _key17 !== "__esModule") _exportObj17[_key17] = _unresolved_17[_key17];
|
||||
}
|
||||
|
||||
_export(_exportObj17);
|
||||
}, function (_unresolved_18) {
|
||||
var _exportObj18 = {};
|
||||
|
||||
for (var _key18 in _unresolved_18) {
|
||||
if (_key18 !== "default" && _key18 !== "__esModule") _exportObj18[_key18] = _unresolved_18[_key18];
|
||||
}
|
||||
|
||||
_export(_exportObj18);
|
||||
}, function (_unresolved_19) {
|
||||
var _exportObj19 = {};
|
||||
|
||||
for (var _key19 in _unresolved_19) {
|
||||
if (_key19 !== "default" && _key19 !== "__esModule") _exportObj19[_key19] = _unresolved_19[_key19];
|
||||
}
|
||||
|
||||
_export(_exportObj19);
|
||||
}, function (_unresolved_20) {
|
||||
var _exportObj20 = {};
|
||||
|
||||
for (var _key20 in _unresolved_20) {
|
||||
if (_key20 !== "default" && _key20 !== "__esModule") _exportObj20[_key20] = _unresolved_20[_key20];
|
||||
}
|
||||
|
||||
_export(_exportObj20);
|
||||
}, function (_unresolved_21) {
|
||||
var _exportObj21 = {};
|
||||
|
||||
for (var _key21 in _unresolved_21) {
|
||||
if (_key21 !== "default" && _key21 !== "__esModule") _exportObj21[_key21] = _unresolved_21[_key21];
|
||||
}
|
||||
|
||||
_export(_exportObj21);
|
||||
}, function (_unresolved_22) {
|
||||
var _exportObj22 = {};
|
||||
|
||||
for (var _key22 in _unresolved_22) {
|
||||
if (_key22 !== "default" && _key22 !== "__esModule") _exportObj22[_key22] = _unresolved_22[_key22];
|
||||
}
|
||||
|
||||
_export(_exportObj22);
|
||||
}, function (_unresolved_23) {
|
||||
var _exportObj23 = {};
|
||||
|
||||
for (var _key23 in _unresolved_23) {
|
||||
if (_key23 !== "default" && _key23 !== "__esModule") _exportObj23[_key23] = _unresolved_23[_key23];
|
||||
}
|
||||
|
||||
_export(_exportObj23);
|
||||
}, function (_unresolved_24) {
|
||||
var _exportObj24 = {};
|
||||
|
||||
for (var _key24 in _unresolved_24) {
|
||||
if (_key24 !== "default" && _key24 !== "__esModule") _exportObj24[_key24] = _unresolved_24[_key24];
|
||||
}
|
||||
|
||||
_export(_exportObj24);
|
||||
}, function (_unresolved_25) {
|
||||
var _exportObj25 = {};
|
||||
|
||||
for (var _key25 in _unresolved_25) {
|
||||
if (_key25 !== "default" && _key25 !== "__esModule") _exportObj25[_key25] = _unresolved_25[_key25];
|
||||
}
|
||||
|
||||
_export(_exportObj25);
|
||||
}, function (_unresolved_26) {
|
||||
var _exportObj26 = {};
|
||||
|
||||
for (var _key26 in _unresolved_26) {
|
||||
if (_key26 !== "default" && _key26 !== "__esModule") _exportObj26[_key26] = _unresolved_26[_key26];
|
||||
}
|
||||
|
||||
_export(_exportObj26);
|
||||
}, function (_unresolved_27) {
|
||||
var _exportObj27 = {};
|
||||
|
||||
for (var _key27 in _unresolved_27) {
|
||||
if (_key27 !== "default" && _key27 !== "__esModule") _exportObj27[_key27] = _unresolved_27[_key27];
|
||||
}
|
||||
|
||||
_export(_exportObj27);
|
||||
}, function (_unresolved_28) {
|
||||
var _exportObj28 = {};
|
||||
|
||||
for (var _key28 in _unresolved_28) {
|
||||
if (_key28 !== "default" && _key28 !== "__esModule") _exportObj28[_key28] = _unresolved_28[_key28];
|
||||
}
|
||||
|
||||
_export(_exportObj28);
|
||||
}, function (_unresolved_29) {
|
||||
var _exportObj29 = {};
|
||||
|
||||
for (var _key29 in _unresolved_29) {
|
||||
if (_key29 !== "default" && _key29 !== "__esModule") _exportObj29[_key29] = _unresolved_29[_key29];
|
||||
}
|
||||
|
||||
_export(_exportObj29);
|
||||
}, function (_unresolved_30) {
|
||||
var _exportObj30 = {};
|
||||
|
||||
for (var _key30 in _unresolved_30) {
|
||||
if (_key30 !== "default" && _key30 !== "__esModule") _exportObj30[_key30] = _unresolved_30[_key30];
|
||||
}
|
||||
|
||||
_export(_exportObj30);
|
||||
}, function (_unresolved_31) {
|
||||
var _exportObj31 = {};
|
||||
|
||||
for (var _key31 in _unresolved_31) {
|
||||
if (_key31 !== "default" && _key31 !== "__esModule") _exportObj31[_key31] = _unresolved_31[_key31];
|
||||
}
|
||||
|
||||
_export(_exportObj31);
|
||||
}, function (_unresolved_32) {
|
||||
var _exportObj32 = {};
|
||||
|
||||
for (var _key32 in _unresolved_32) {
|
||||
if (_key32 !== "default" && _key32 !== "__esModule") _exportObj32[_key32] = _unresolved_32[_key32];
|
||||
}
|
||||
|
||||
_export(_exportObj32);
|
||||
}, function (_unresolved_33) {
|
||||
var _exportObj33 = {};
|
||||
|
||||
for (var _key33 in _unresolved_33) {
|
||||
if (_key33 !== "default" && _key33 !== "__esModule") _exportObj33[_key33] = _unresolved_33[_key33];
|
||||
}
|
||||
|
||||
_export(_exportObj33);
|
||||
}, function (_unresolved_34) {
|
||||
var _exportObj34 = {};
|
||||
|
||||
for (var _key34 in _unresolved_34) {
|
||||
if (_key34 !== "default" && _key34 !== "__esModule") _exportObj34[_key34] = _unresolved_34[_key34];
|
||||
}
|
||||
|
||||
_export(_exportObj34);
|
||||
}, function (_unresolved_35) {
|
||||
var _exportObj35 = {};
|
||||
|
||||
for (var _key35 in _unresolved_35) {
|
||||
if (_key35 !== "default" && _key35 !== "__esModule") _exportObj35[_key35] = _unresolved_35[_key35];
|
||||
}
|
||||
|
||||
_export(_exportObj35);
|
||||
}, function (_unresolved_36) {
|
||||
var _exportObj36 = {};
|
||||
|
||||
for (var _key36 in _unresolved_36) {
|
||||
if (_key36 !== "default" && _key36 !== "__esModule") _exportObj36[_key36] = _unresolved_36[_key36];
|
||||
}
|
||||
|
||||
_export(_exportObj36);
|
||||
}, function (_unresolved_37) {
|
||||
var _exportObj37 = {};
|
||||
|
||||
for (var _key37 in _unresolved_37) {
|
||||
if (_key37 !== "default" && _key37 !== "__esModule") _exportObj37[_key37] = _unresolved_37[_key37];
|
||||
}
|
||||
|
||||
_export(_exportObj37);
|
||||
}, function (_unresolved_38) {
|
||||
var _exportObj38 = {};
|
||||
|
||||
for (var _key38 in _unresolved_38) {
|
||||
if (_key38 !== "default" && _key38 !== "__esModule") _exportObj38[_key38] = _unresolved_38[_key38];
|
||||
}
|
||||
|
||||
_export(_exportObj38);
|
||||
}, function (_unresolved_39) {
|
||||
var _exportObj39 = {};
|
||||
|
||||
for (var _key39 in _unresolved_39) {
|
||||
if (_key39 !== "default" && _key39 !== "__esModule") _exportObj39[_key39] = _unresolved_39[_key39];
|
||||
}
|
||||
|
||||
_export(_exportObj39);
|
||||
}, function (_unresolved_40) {
|
||||
var _exportObj40 = {};
|
||||
|
||||
for (var _key40 in _unresolved_40) {
|
||||
if (_key40 !== "default" && _key40 !== "__esModule") _exportObj40[_key40] = _unresolved_40[_key40];
|
||||
}
|
||||
|
||||
_export(_exportObj40);
|
||||
}, function (_unresolved_41) {
|
||||
var _exportObj41 = {};
|
||||
|
||||
for (var _key41 in _unresolved_41) {
|
||||
if (_key41 !== "default" && _key41 !== "__esModule") _exportObj41[_key41] = _unresolved_41[_key41];
|
||||
}
|
||||
|
||||
_export(_exportObj41);
|
||||
}, function (_unresolved_42) {
|
||||
var _exportObj42 = {};
|
||||
|
||||
for (var _key42 in _unresolved_42) {
|
||||
if (_key42 !== "default" && _key42 !== "__esModule") _exportObj42[_key42] = _unresolved_42[_key42];
|
||||
}
|
||||
|
||||
_export(_exportObj42);
|
||||
}, function (_unresolved_43) {
|
||||
var _exportObj43 = {};
|
||||
|
||||
for (var _key43 in _unresolved_43) {
|
||||
if (_key43 !== "default" && _key43 !== "__esModule") _exportObj43[_key43] = _unresolved_43[_key43];
|
||||
}
|
||||
|
||||
_export(_exportObj43);
|
||||
}, function (_unresolved_44) {
|
||||
var _exportObj44 = {};
|
||||
|
||||
for (var _key44 in _unresolved_44) {
|
||||
if (_key44 !== "default" && _key44 !== "__esModule") _exportObj44[_key44] = _unresolved_44[_key44];
|
||||
}
|
||||
|
||||
_export(_exportObj44);
|
||||
}, function (_unresolved_45) {
|
||||
var _exportObj45 = {};
|
||||
|
||||
for (var _key45 in _unresolved_45) {
|
||||
if (_key45 !== "default" && _key45 !== "__esModule") _exportObj45[_key45] = _unresolved_45[_key45];
|
||||
}
|
||||
|
||||
_export(_exportObj45);
|
||||
}, function (_unresolved_46) {
|
||||
var _exportObj46 = {};
|
||||
|
||||
for (var _key46 in _unresolved_46) {
|
||||
if (_key46 !== "default" && _key46 !== "__esModule") _exportObj46[_key46] = _unresolved_46[_key46];
|
||||
}
|
||||
|
||||
_export(_exportObj46);
|
||||
}, function (_unresolved_47) {
|
||||
var _exportObj47 = {};
|
||||
|
||||
for (var _key47 in _unresolved_47) {
|
||||
if (_key47 !== "default" && _key47 !== "__esModule") _exportObj47[_key47] = _unresolved_47[_key47];
|
||||
}
|
||||
|
||||
_export(_exportObj47);
|
||||
}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
||||
@@ -0,0 +1,33 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, _dec, _class, _crd, ProbeEntry_beta;
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "f9f74JUc6lBwoJODpMQQneb", "Entry", undefined);
|
||||
|
||||
__checkObsolete__(['_decorator']);
|
||||
|
||||
_export("ProbeEntry_beta", ProbeEntry_beta = (_dec = _decorator.ccclass('ProbeEntry_beta'), _dec(_class = class ProbeEntry_beta {
|
||||
static run() {
|
||||
return 'PRIVATE_CODE_BETA';
|
||||
}
|
||||
|
||||
}) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=a45626d8cbe59e99c7c3de1eff49663440433fe2.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/beta/Entry.ts"],"names":["_decorator","ProbeEntry_beta","ccclass","run"],"mappings":";;;;;;;;;;AAAQA,MAAAA,U,OAAAA,U;;;;;;;;;iCAEKC,e,WADZD,UAAU,CAACE,OAAX,CAAmB,iBAAnB,C,gBAAD,MACaD,eADb,CAC6B;AAAW,eAAHE,GAAG,GAAE;AAAC,iBAAO,mBAAP;AAA4B;;AAA1C,O","sourcesContent":["import {_decorator} from 'cc';\n@_decorator.ccclass('ProbeEntry_beta')\nexport class ProbeEntry_beta {static run(){return 'PRIVATE_CODE_BETA';}}\n"]}
|
||||
@@ -0,0 +1,126 @@
|
||||
System.register(["__unresolved_0", "cc", "__unresolved_1", "cc/env"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, assert, Component, BuiltinPipelineSettings, EDITOR, _dec, _dec2, _dec3, _class, _crd, ccclass, disallowMultiple, executeInEditMode, menu, requireComponent, BuiltinPipelinePassBuilder;
|
||||
|
||||
function _reportPossibleCrUseOfBuiltinPipelineSettings(extras) {
|
||||
_reporterNs.report("BuiltinPipelineSettings", "./builtin-pipeline-settings", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfPipelineSettings(extras) {
|
||||
_reporterNs.report("PipelineSettings2", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
_reporterNs = _unresolved_;
|
||||
}, function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
assert = _cc.assert;
|
||||
Component = _cc.Component;
|
||||
}, function (_unresolved_2) {
|
||||
BuiltinPipelineSettings = _unresolved_2.BuiltinPipelineSettings;
|
||||
}, function (_ccEnv) {
|
||||
EDITOR = _ccEnv.EDITOR;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "6f940g8/JJDi6Fbog7GFmbH", "builtin-pipeline-pass", undefined);
|
||||
/*
|
||||
Copyright (c) 2021-2024 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://www.cocos.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
__checkObsolete__(['_decorator', 'assert', 'Component', 'rendering']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
disallowMultiple,
|
||||
executeInEditMode,
|
||||
menu,
|
||||
requireComponent
|
||||
} = _decorator);
|
||||
|
||||
_export("BuiltinPipelinePassBuilder", BuiltinPipelinePassBuilder = (_dec = ccclass('BuiltinPipelinePassBuilder'), _dec2 = menu('Rendering/BuiltinPipelinePassBuilder'), _dec3 = requireComponent(_crd && BuiltinPipelineSettings === void 0 ? (_reportPossibleCrUseOfBuiltinPipelineSettings({
|
||||
error: Error()
|
||||
}), BuiltinPipelineSettings) : BuiltinPipelineSettings), _dec(_class = _dec2(_class = _dec3(_class = disallowMultiple(_class = executeInEditMode(_class = class BuiltinPipelinePassBuilder extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
this._parent = void 0;
|
||||
this._settings = void 0;
|
||||
}
|
||||
|
||||
getConfigOrder() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
getRenderOrder() {
|
||||
return 200;
|
||||
}
|
||||
|
||||
onEnable() {
|
||||
this._parent = this.getComponent(_crd && BuiltinPipelineSettings === void 0 ? (_reportPossibleCrUseOfBuiltinPipelineSettings({
|
||||
error: Error()
|
||||
}), BuiltinPipelineSettings) : BuiltinPipelineSettings);
|
||||
this._settings = this._parent.getPipelineSettings();
|
||||
|
||||
if (!Object.prototype.hasOwnProperty.call(this._settings, '_passes')) {
|
||||
Object.defineProperty(this._settings, '_passes', {
|
||||
value: [],
|
||||
configurable: false,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
|
||||
assert(this._settings._passes !== undefined);
|
||||
|
||||
this._settings._passes.push(this);
|
||||
|
||||
if (EDITOR) {
|
||||
this._parent._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
onDisable() {
|
||||
assert(Object.prototype.hasOwnProperty.call(this._settings, '_passes'));
|
||||
const passes = this._settings._passes;
|
||||
assert(passes !== undefined);
|
||||
const idx = passes.indexOf(this);
|
||||
assert(idx >= 0);
|
||||
passes.splice(idx, 1);
|
||||
}
|
||||
|
||||
}) || _class) || _class) || _class) || _class) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=b18130d786bcadd1d0cb653401afdf2ede79b799.js.map
|
||||
@@ -0,0 +1,648 @@
|
||||
System.register(["__unresolved_0", "cc", "cc/env", "__unresolved_1"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Camera, CCBoolean, CCFloat, CCInteger, Component, Material, rendering, Texture2D, EDITOR, BloomType, fillRequiredPipelineSettings, makePipelineSettings, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _class, _class2, _descriptor, _descriptor2, _crd, ccclass, disallowMultiple, executeInEditMode, menu, property, requireComponent, type, BuiltinPipelineSettings;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
||||
|
||||
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
||||
|
||||
function _reportPossibleCrUseOfBloomType(extras) {
|
||||
_reporterNs.report("BloomType", "./builtin-pipeline-types", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOffillRequiredPipelineSettings(extras) {
|
||||
_reporterNs.report("fillRequiredPipelineSettings", "./builtin-pipeline-types", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfmakePipelineSettings(extras) {
|
||||
_reporterNs.report("makePipelineSettings", "./builtin-pipeline-types", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfPipelineSettings(extras) {
|
||||
_reporterNs.report("PipelineSettings", "./builtin-pipeline-types", _context.meta, extras);
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
_reporterNs = _unresolved_;
|
||||
}, function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
Camera = _cc.Camera;
|
||||
CCBoolean = _cc.CCBoolean;
|
||||
CCFloat = _cc.CCFloat;
|
||||
CCInteger = _cc.CCInteger;
|
||||
Component = _cc.Component;
|
||||
Material = _cc.Material;
|
||||
rendering = _cc.rendering;
|
||||
Texture2D = _cc.Texture2D;
|
||||
}, function (_ccEnv) {
|
||||
EDITOR = _ccEnv.EDITOR;
|
||||
}, function (_unresolved_2) {
|
||||
BloomType = _unresolved_2.BloomType;
|
||||
fillRequiredPipelineSettings = _unresolved_2.fillRequiredPipelineSettings;
|
||||
makePipelineSettings = _unresolved_2.makePipelineSettings;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "de1c2EHcMhAIYRZY5nyTQHG", "builtin-pipeline-settings", undefined);
|
||||
/*
|
||||
Copyright (c) 2021-2024 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://www.cocos.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
__checkObsolete__(['_decorator', 'Camera', 'CCBoolean', 'CCFloat', 'CCInteger', 'Component', 'Material', 'rendering', 'Texture2D']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
disallowMultiple,
|
||||
executeInEditMode,
|
||||
menu,
|
||||
property,
|
||||
requireComponent,
|
||||
type
|
||||
} = _decorator);
|
||||
|
||||
_export("BuiltinPipelineSettings", BuiltinPipelineSettings = (_dec = ccclass('BuiltinPipelineSettings'), _dec2 = menu('Rendering/BuiltinPipelineSettings'), _dec3 = requireComponent(Camera), _dec4 = property(CCBoolean), _dec5 = property({
|
||||
displayName: 'Editor Preview (Experimental)',
|
||||
type: CCBoolean
|
||||
}), _dec6 = property({
|
||||
group: {
|
||||
id: 'MSAA',
|
||||
name: 'Multisample Anti-Aliasing'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec7 = property({
|
||||
group: {
|
||||
id: 'MSAA',
|
||||
name: 'Multisample Anti-Aliasing',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCInteger,
|
||||
range: [2, 4, 2]
|
||||
}), _dec8 = property({
|
||||
group: {
|
||||
id: 'ShadingScale',
|
||||
name: 'ShadingScale',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec9 = property({
|
||||
tooltip: 'i18n:postprocess.shadingScale',
|
||||
group: {
|
||||
id: 'ShadingScale',
|
||||
name: 'ShadingScale'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0.01, 4, 0.01],
|
||||
slide: true
|
||||
}), _dec10 = property({
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec11 = type(_crd && BloomType === void 0 ? (_reportPossibleCrUseOfBloomType({
|
||||
error: Error()
|
||||
}), BloomType) : BloomType), _dec12 = property({
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
}
|
||||
}), _dec13 = property({
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material
|
||||
}), _dec14 = property({
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material
|
||||
}), _dec15 = property({
|
||||
tooltip: 'i18n:bloom.enableAlphaMask',
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec16 = property({
|
||||
tooltip: 'i18n:bloom.iterations',
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCInteger,
|
||||
range: [1, 6, 1],
|
||||
slide: true
|
||||
}), _dec17 = property({
|
||||
tooltip: 'i18n:bloom.threshold',
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
min: 0
|
||||
}), _dec18 = type(CCFloat), _dec19 = property({
|
||||
group: {
|
||||
id: 'Bloom',
|
||||
name: 'Bloom (PostProcessing)',
|
||||
style: 'section'
|
||||
}
|
||||
}), _dec20 = property({
|
||||
group: {
|
||||
id: 'Color Grading',
|
||||
name: 'ColorGrading (LDR) (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec21 = property({
|
||||
group: {
|
||||
id: 'Color Grading',
|
||||
name: 'ColorGrading (LDR) (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material
|
||||
}), _dec22 = property({
|
||||
tooltip: 'i18n:color_grading.contribute',
|
||||
group: {
|
||||
id: 'Color Grading',
|
||||
name: 'ColorGrading (LDR) (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0, 1, 0.01],
|
||||
slide: true
|
||||
}), _dec23 = property({
|
||||
tooltip: 'i18n:color_grading.originalMap',
|
||||
group: {
|
||||
id: 'Color Grading',
|
||||
name: 'ColorGrading (LDR) (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Texture2D
|
||||
}), _dec24 = property({
|
||||
group: {
|
||||
id: 'FXAA',
|
||||
name: 'Fast Approximate Anti-Aliasing (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec25 = property({
|
||||
group: {
|
||||
id: 'FXAA',
|
||||
name: 'Fast Approximate Anti-Aliasing (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material
|
||||
}), _dec26 = property({
|
||||
group: {
|
||||
id: 'FSR',
|
||||
name: 'FidelityFX Super Resolution',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean
|
||||
}), _dec27 = property({
|
||||
group: {
|
||||
id: 'FSR',
|
||||
name: 'FidelityFX Super Resolution',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material
|
||||
}), _dec28 = property({
|
||||
group: {
|
||||
id: 'FSR',
|
||||
name: 'FidelityFX Super Resolution',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0, 1, 0.01],
|
||||
slide: true
|
||||
}), _dec29 = property({
|
||||
group: {
|
||||
id: 'ToneMapping',
|
||||
name: 'ToneMapping',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material
|
||||
}), _dec(_class = _dec2(_class = _dec3(_class = disallowMultiple(_class = executeInEditMode(_class = (_class2 = class BuiltinPipelineSettings extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
_initializerDefineProperty(this, "_settings", _descriptor, this);
|
||||
|
||||
// Editor Preview
|
||||
_initializerDefineProperty(this, "_editorPreview", _descriptor2, this);
|
||||
}
|
||||
|
||||
getPipelineSettings() {
|
||||
return this._settings;
|
||||
} // Enable/Disable
|
||||
|
||||
|
||||
onEnable() {
|
||||
(_crd && fillRequiredPipelineSettings === void 0 ? (_reportPossibleCrUseOffillRequiredPipelineSettings({
|
||||
error: Error()
|
||||
}), fillRequiredPipelineSettings) : fillRequiredPipelineSettings)(this._settings);
|
||||
const cameraComponent = this.getComponent(Camera);
|
||||
const camera = cameraComponent.camera;
|
||||
camera.pipelineSettings = this._settings;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
onDisable() {
|
||||
const cameraComponent = this.getComponent(Camera);
|
||||
const camera = cameraComponent.camera;
|
||||
|
||||
if (camera) {
|
||||
camera.pipelineSettings = null;
|
||||
}
|
||||
|
||||
if (EDITOR) {
|
||||
this._disableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get editorPreview() {
|
||||
return this._editorPreview;
|
||||
}
|
||||
|
||||
set editorPreview(v) {
|
||||
this._editorPreview = v;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
_tryEnableEditorPreview() {
|
||||
if (rendering === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this._editorPreview) {
|
||||
rendering.setEditorPipelineSettings(this._settings);
|
||||
} else {
|
||||
this._disableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
_disableEditorPreview() {
|
||||
if (rendering === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
const current = rendering.getEditorPipelineSettings();
|
||||
|
||||
if (current === this._settings) {
|
||||
rendering.setEditorPipelineSettings(null);
|
||||
}
|
||||
} // MSAA
|
||||
|
||||
|
||||
get MsaaEnable() {
|
||||
return this._settings.msaa.enabled;
|
||||
}
|
||||
|
||||
set MsaaEnable(value) {
|
||||
this._settings.msaa.enabled = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
set msaaSampleCount(value) {
|
||||
value = 2 ** Math.ceil(Math.log2(Math.max(value, 2)));
|
||||
value = Math.min(value, 4);
|
||||
this._settings.msaa.sampleCount = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get msaaSampleCount() {
|
||||
return this._settings.msaa.sampleCount;
|
||||
} // Shading Scale
|
||||
|
||||
|
||||
set shadingScaleEnable(value) {
|
||||
this._settings.enableShadingScale = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get shadingScaleEnable() {
|
||||
return this._settings.enableShadingScale;
|
||||
}
|
||||
|
||||
set shadingScale(value) {
|
||||
this._settings.shadingScale = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get shadingScale() {
|
||||
return this._settings.shadingScale;
|
||||
} // Bloom
|
||||
|
||||
|
||||
set bloomEnable(value) {
|
||||
this._settings.bloom.enabled = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get bloomEnable() {
|
||||
return this._settings.bloom.enabled;
|
||||
}
|
||||
|
||||
set bloomType(value) {
|
||||
this._settings.bloom.type = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get bloomType() {
|
||||
return this._settings.bloom.type;
|
||||
}
|
||||
|
||||
set kawaseBloomMaterial(value) {
|
||||
if (this._settings.bloom.kawaseFilterMaterial === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._settings.bloom.kawaseFilterMaterial = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get kawaseBloomMaterial() {
|
||||
return this._settings.bloom.kawaseFilterMaterial;
|
||||
}
|
||||
|
||||
set mipmapBloomMaterial(value) {
|
||||
if (this._settings.bloom.mipmapFilterMaterial === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._settings.bloom.mipmapFilterMaterial = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get mipmapBloomMaterial() {
|
||||
return this._settings.bloom.mipmapFilterMaterial;
|
||||
}
|
||||
|
||||
set bloomEnableAlphaMask(value) {
|
||||
this._settings.bloom.enableAlphaMask = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get bloomEnableAlphaMask() {
|
||||
return this._settings.bloom.enableAlphaMask;
|
||||
}
|
||||
|
||||
set bloomIterations(value) {
|
||||
this._settings.bloom.iterations = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get bloomIterations() {
|
||||
return this._settings.bloom.iterations;
|
||||
}
|
||||
|
||||
set bloomThreshold(value) {
|
||||
this._settings.bloom.threshold = value;
|
||||
}
|
||||
|
||||
get bloomThreshold() {
|
||||
return this._settings.bloom.threshold;
|
||||
}
|
||||
|
||||
set bloomIntensity(value) {
|
||||
this._settings.bloom.intensity = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get bloomIntensity() {
|
||||
return this._settings.bloom.intensity;
|
||||
} // Color Grading (LDR)
|
||||
|
||||
|
||||
set colorGradingEnable(value) {
|
||||
this._settings.colorGrading.enabled = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get colorGradingEnable() {
|
||||
return this._settings.colorGrading.enabled;
|
||||
}
|
||||
|
||||
set colorGradingMaterial(value) {
|
||||
if (this._settings.colorGrading.material === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._settings.colorGrading.material = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get colorGradingMaterial() {
|
||||
return this._settings.colorGrading.material;
|
||||
}
|
||||
|
||||
set colorGradingContribute(value) {
|
||||
this._settings.colorGrading.contribute = value;
|
||||
}
|
||||
|
||||
get colorGradingContribute() {
|
||||
return this._settings.colorGrading.contribute;
|
||||
}
|
||||
|
||||
set colorGradingMap(val) {
|
||||
this._settings.colorGrading.colorGradingMap = val;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get colorGradingMap() {
|
||||
return this._settings.colorGrading.colorGradingMap;
|
||||
} // FXAA
|
||||
|
||||
|
||||
set fxaaEnable(value) {
|
||||
this._settings.fxaa.enabled = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get fxaaEnable() {
|
||||
return this._settings.fxaa.enabled;
|
||||
}
|
||||
|
||||
set fxaaMaterial(value) {
|
||||
if (this._settings.fxaa.material === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._settings.fxaa.material = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get fxaaMaterial() {
|
||||
return this._settings.fxaa.material;
|
||||
} // FSR
|
||||
|
||||
|
||||
set fsrEnable(value) {
|
||||
this._settings.fsr.enabled = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get fsrEnable() {
|
||||
return this._settings.fsr.enabled;
|
||||
}
|
||||
|
||||
set fsrMaterial(value) {
|
||||
if (this._settings.fsr.material === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._settings.fsr.material = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get fsrMaterial() {
|
||||
return this._settings.fsr.material;
|
||||
}
|
||||
|
||||
set fsrSharpness(value) {
|
||||
this._settings.fsr.sharpness = value;
|
||||
}
|
||||
|
||||
get fsrSharpness() {
|
||||
return this._settings.fsr.sharpness;
|
||||
}
|
||||
|
||||
set toneMappingMaterial(value) {
|
||||
if (this._settings.toneMapping.material === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._settings.toneMapping.material = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get toneMappingMaterial() {
|
||||
return this._settings.toneMapping.material;
|
||||
}
|
||||
|
||||
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "_settings", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return (_crd && makePipelineSettings === void 0 ? (_reportPossibleCrUseOfmakePipelineSettings({
|
||||
error: Error()
|
||||
}), makePipelineSettings) : makePipelineSettings)();
|
||||
}
|
||||
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "_editorPreview", [_dec4], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function () {
|
||||
return false;
|
||||
}
|
||||
}), _applyDecoratedDescriptor(_class2.prototype, "editorPreview", [_dec5], Object.getOwnPropertyDescriptor(_class2.prototype, "editorPreview"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "MsaaEnable", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "MsaaEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "msaaSampleCount", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "msaaSampleCount"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "shadingScaleEnable", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "shadingScaleEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "shadingScale", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "shadingScale"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "bloomEnable", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "bloomEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "bloomType", [_dec11, _dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "bloomType"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "kawaseBloomMaterial", [_dec13], Object.getOwnPropertyDescriptor(_class2.prototype, "kawaseBloomMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "mipmapBloomMaterial", [_dec14], Object.getOwnPropertyDescriptor(_class2.prototype, "mipmapBloomMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "bloomEnableAlphaMask", [_dec15], Object.getOwnPropertyDescriptor(_class2.prototype, "bloomEnableAlphaMask"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "bloomIterations", [_dec16], Object.getOwnPropertyDescriptor(_class2.prototype, "bloomIterations"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "bloomThreshold", [_dec17], Object.getOwnPropertyDescriptor(_class2.prototype, "bloomThreshold"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "bloomIntensity", [_dec18, _dec19], Object.getOwnPropertyDescriptor(_class2.prototype, "bloomIntensity"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "colorGradingEnable", [_dec20], Object.getOwnPropertyDescriptor(_class2.prototype, "colorGradingEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "colorGradingMaterial", [_dec21], Object.getOwnPropertyDescriptor(_class2.prototype, "colorGradingMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "colorGradingContribute", [_dec22], Object.getOwnPropertyDescriptor(_class2.prototype, "colorGradingContribute"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "colorGradingMap", [_dec23], Object.getOwnPropertyDescriptor(_class2.prototype, "colorGradingMap"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fxaaEnable", [_dec24], Object.getOwnPropertyDescriptor(_class2.prototype, "fxaaEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fxaaMaterial", [_dec25], Object.getOwnPropertyDescriptor(_class2.prototype, "fxaaMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fsrEnable", [_dec26], Object.getOwnPropertyDescriptor(_class2.prototype, "fsrEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fsrMaterial", [_dec27], Object.getOwnPropertyDescriptor(_class2.prototype, "fsrMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "fsrSharpness", [_dec28], Object.getOwnPropertyDescriptor(_class2.prototype, "fsrSharpness"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "toneMappingMaterial", [_dec29], Object.getOwnPropertyDescriptor(_class2.prototype, "toneMappingMaterial"), _class2.prototype)), _class2)) || _class) || _class) || _class) || _class) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=e2831fde95d58c09916d0f882742b7597544b8d1.js.map
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"imports": {
|
||||
"cce:/internal/x/cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js",
|
||||
"cce:/internal/x/prerequisite-imports": "./chunks/6d/6d8fd2b0177941b032ddc0733af48a561fb60657.js",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-dof-pass.ts": "./chunks/50/50ec684ab28702df18cf262b25c26ec6d899c3a5.js",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-pass.ts": "./chunks/b1/b18130d786bcadd1d0cb653401afdf2ede79b799.js",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-settings.ts": "./chunks/e2/e2831fde95d58c09916d0f882742b7597544b8d1.js",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-types.ts": "./chunks/7d/7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223.js",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline.ts": "./chunks/fd/fd74c742a972dbbcd3691d204a338b19a4515b62.js",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/tools/debug-view-runtime-control.ts": "./chunks/62/621a159ce4a7bac550092546e00c97e12458f12b.js",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/Boot.ts": "./chunks/8e/8e712b201a7af91e5a41365d538a13080eafb578.js",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/alpha/Entry.ts": "./chunks/07/07a95adf538fa6dbf3998fa90cd1518629172d3a.js",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/beta/Entry.ts": "./chunks/a4/a45626d8cbe59e99c7c3de1eff49663440433fe2.js"
|
||||
},
|
||||
"scopes": {
|
||||
"./chunks/a4/a45626d8cbe59e99c7c3de1eff49663440433fe2.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js": {
|
||||
"__unresolved_0": "cce:/internal/x/cc-fu/base",
|
||||
"__unresolved_1": "cce:/internal/x/cc-fu/gfx-webgl",
|
||||
"__unresolved_10": "cce:/internal/x/cc-fu/rich-text",
|
||||
"__unresolved_11": "cce:/internal/x/cc-fu/mask",
|
||||
"__unresolved_12": "cce:/internal/x/cc-fu/graphics",
|
||||
"__unresolved_13": "cce:/internal/x/cc-fu/ui-skew",
|
||||
"__unresolved_14": "cce:/internal/x/cc-fu/ui",
|
||||
"__unresolved_15": "cce:/internal/x/cc-fu/affine-transform",
|
||||
"__unresolved_16": "cce:/internal/x/cc-fu/sorting-2d",
|
||||
"__unresolved_17": "cce:/internal/x/cc-fu/particle",
|
||||
"__unresolved_18": "cce:/internal/x/cc-fu/particle-2d",
|
||||
"__unresolved_19": "cce:/internal/x/cc-fu/physics-framework",
|
||||
"__unresolved_2": "cce:/internal/x/cc-fu/gfx-webgl2",
|
||||
"__unresolved_20": "cce:/internal/x/cc-fu/physics-cannon",
|
||||
"__unresolved_21": "cce:/internal/x/cc-fu/physics-physx",
|
||||
"__unresolved_22": "cce:/internal/x/cc-fu/physics-ammo",
|
||||
"__unresolved_23": "cce:/internal/x/cc-fu/physics-builtin",
|
||||
"__unresolved_24": "cce:/internal/x/cc-fu/physics-2d-framework",
|
||||
"__unresolved_25": "cce:/internal/x/cc-fu/physics-2d-box2d-jsb",
|
||||
"__unresolved_26": "cce:/internal/x/cc-fu/physics-2d-box2d",
|
||||
"__unresolved_27": "cce:/internal/x/cc-fu/physics-2d-builtin",
|
||||
"__unresolved_28": "cce:/internal/x/cc-fu/physics-2d-box2d-wasm",
|
||||
"__unresolved_29": "cce:/internal/x/cc-fu/intersection-2d",
|
||||
"__unresolved_3": "cce:/internal/x/cc-fu/gfx-empty",
|
||||
"__unresolved_30": "cce:/internal/x/cc-fu/primitive",
|
||||
"__unresolved_31": "cce:/internal/x/cc-fu/profiler",
|
||||
"__unresolved_32": "cce:/internal/x/cc-fu/geometry-renderer",
|
||||
"__unresolved_33": "cce:/internal/x/cc-fu/audio",
|
||||
"__unresolved_34": "cce:/internal/x/cc-fu/video",
|
||||
"__unresolved_35": "cce:/internal/x/cc-fu/xr",
|
||||
"__unresolved_36": "cce:/internal/x/cc-fu/light-probe",
|
||||
"__unresolved_37": "cce:/internal/x/cc-fu/terrain",
|
||||
"__unresolved_38": "cce:/internal/x/cc-fu/webview",
|
||||
"__unresolved_39": "cce:/internal/x/cc-fu/tween",
|
||||
"__unresolved_4": "cce:/internal/x/cc-fu/gfx-webgpu",
|
||||
"__unresolved_40": "cce:/internal/x/cc-fu/tiled-map",
|
||||
"__unresolved_41": "cce:/internal/x/cc-fu/vendor-google",
|
||||
"__unresolved_42": "cce:/internal/x/cc-fu/spine",
|
||||
"__unresolved_43": "cce:/internal/x/cc-fu/dragon-bones",
|
||||
"__unresolved_44": "cce:/internal/x/cc-fu/custom-pipeline",
|
||||
"__unresolved_45": "cce:/internal/x/cc-fu/custom-pipeline-post-process",
|
||||
"__unresolved_46": "cce:/internal/x/cc-fu/legacy-pipeline",
|
||||
"__unresolved_5": "cce:/internal/x/cc-fu/3d",
|
||||
"__unresolved_6": "cce:/internal/x/cc-fu/animation",
|
||||
"__unresolved_7": "cce:/internal/x/cc-fu/skeletal-animation",
|
||||
"__unresolved_8": "cce:/internal/x/cc-fu/2d",
|
||||
"__unresolved_9": "cce:/internal/x/cc-fu/sorting"
|
||||
},
|
||||
"./chunks/07/07a95adf538fa6dbf3998fa90cd1518629172d3a.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/8e/8e712b201a7af91e5a41365d538a13080eafb578.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/62/621a159ce4a7bac550092546e00c97e12458f12b.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/fd/fd74c742a972dbbcd3691d204a338b19a4515b62.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/7d/7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223.js",
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/7d/7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/e2/e2831fde95d58c09916d0f882742b7597544b8d1.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/7d/7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223.js",
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/b1/b18130d786bcadd1d0cb653401afdf2ede79b799.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/e2/e2831fde95d58c09916d0f882742b7597544b8d1.js",
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/50/50ec684ab28702df18cf262b25c26ec6d899c3a5.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/e2/e2831fde95d58c09916d0f882742b7597544b8d1.js",
|
||||
"__unresolved_2": "./chunks/b1/b18130d786bcadd1d0cb653401afdf2ede79b799.js",
|
||||
"__unresolved_3": "./chunks/fd/fd74c742a972dbbcd3691d204a338b19a4515b62.js",
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/6d/6d8fd2b0177941b032ddc0733af48a561fb60657.js": {
|
||||
"__unresolved_0": "./chunks/50/50ec684ab28702df18cf262b25c26ec6d899c3a5.js",
|
||||
"__unresolved_1": "./chunks/b1/b18130d786bcadd1d0cb653401afdf2ede79b799.js",
|
||||
"__unresolved_2": "./chunks/e2/e2831fde95d58c09916d0f882742b7597544b8d1.js",
|
||||
"__unresolved_3": "./chunks/7d/7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223.js",
|
||||
"__unresolved_4": "./chunks/fd/fd74c742a972dbbcd3691d204a338b19a4515b62.js",
|
||||
"__unresolved_5": "./chunks/62/621a159ce4a7bac550092546e00c97e12458f12b.js",
|
||||
"__unresolved_6": "./chunks/8e/8e712b201a7af91e5a41365d538a13080eafb578.js",
|
||||
"__unresolved_7": "./chunks/07/07a95adf538fa6dbf3998fa90cd1518629172d3a.js",
|
||||
"__unresolved_8": "./chunks/a4/a45626d8cbe59e99c7c3de1eff49663440433fe2.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -0,0 +1,496 @@
|
||||
{
|
||||
"chunks": {
|
||||
"50ec684ab28702df18cf262b25c26ec6d899c3a5": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "e2831fde95d58c09916d0f882742b7597544b8d1"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "b18130d786bcadd1d0cb653401afdf2ede79b799"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "fd74c742a972dbbcd3691d204a338b19a4515b62"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883840699
|
||||
},
|
||||
"b18130d786bcadd1d0cb653401afdf2ede79b799": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "e2831fde95d58c09916d0f882742b7597544b8d1"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883840821
|
||||
},
|
||||
"e2831fde95d58c09916d0f882742b7597544b8d1": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883841074
|
||||
},
|
||||
"7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883841234
|
||||
},
|
||||
"fd74c742a972dbbcd3691d204a338b19a4515b62": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883842075
|
||||
},
|
||||
"621a159ce4a7bac550092546e00c97e12458f12b": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883842319
|
||||
},
|
||||
"8e712b201a7af91e5a41365d538a13080eafb578": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883842433
|
||||
},
|
||||
"07a95adf538fa6dbf3998fa90cd1518629172d3a": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883842496
|
||||
},
|
||||
"a45626d8cbe59e99c7c3de1eff49663440433fe2": {
|
||||
"imports": {
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788883842550
|
||||
},
|
||||
"93ba276ea7b26ffcdc433fab14afc1ed6f05647b": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/sorting"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_10": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/graphics"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_11": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/intersection-2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_12": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/light-probe"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_13": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/mask"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_14": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/particle"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_15": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/particle-2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_16": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-box2d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_17": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-2d-framework"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_18": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-ammo"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_19": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/physics-framework"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/3d"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_20": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/primitive"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_21": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/profiler"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_22": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/rich-text"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_23": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/skeletal-animation"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_24": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/spine"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_25": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/terrain"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_26": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/tiled-map"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_27": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/tween"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_28": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/ui"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_29": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/ui-skew"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/affine-transform"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_30": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/video"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_31": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/webview"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/animation"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/audio"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/base"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/custom-pipeline"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/dragon-bones"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_9": {
|
||||
"resolved": {
|
||||
"type": "external",
|
||||
"specifierOrURL": "cce:/internal/x/cc-fu/gfx-webgl"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788884452507
|
||||
},
|
||||
"6a5019a719a9014c047e67aa1cf34453ab8392ce": {
|
||||
"imports": {},
|
||||
"timestamp": 1788884452609
|
||||
},
|
||||
"6d8fd2b0177941b032ddc0733af48a561fb60657": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "50ec684ab28702df18cf262b25c26ec6d899c3a5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "b18130d786bcadd1d0cb653401afdf2ede79b799"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "e2831fde95d58c09916d0f882742b7597544b8d1"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "fd74c742a972dbbcd3691d204a338b19a4515b62"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "621a159ce4a7bac550092546e00c97e12458f12b"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "8e712b201a7af91e5a41365d538a13080eafb578"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "07a95adf538fa6dbf3998fa90cd1518629172d3a"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "a45626d8cbe59e99c7c3de1eff49663440433fe2"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1788884454269
|
||||
}
|
||||
},
|
||||
"entries": {
|
||||
"cce:/internal/x/cc": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b",
|
||||
"cce:/internal/x/prerequisite-imports": "6d8fd2b0177941b032ddc0733af48a561fb60657",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-dof-pass.ts": "50ec684ab28702df18cf262b25c26ec6d899c3a5",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-pass.ts": "b18130d786bcadd1d0cb653401afdf2ede79b799",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-settings.ts": "e2831fde95d58c09916d0f882742b7597544b8d1",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline-types.ts": "7dd5f1b51da4ae6cb44c6f9d41d8fc719b109223",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/default_renderpipeline/builtin-pipeline.ts": "fd74c742a972dbbcd3691d204a338b19a4515b62",
|
||||
"file:///C:/ProgramData/cocos/editors/Creator/3.8.8/resources/resources/3d/engine/editor/assets/tools/debug-view-runtime-control.ts": "621a159ce4a7bac550092546e00c97e12458f12b",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/Boot.ts": "8e712b201a7af91e5a41365d538a13080eafb578",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/alpha/Entry.ts": "07a95adf538fa6dbf3998fa90cd1518629172d3a",
|
||||
"file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/beta/Entry.ts": "a45626d8cbe59e99c7c3de1eff49663440433fe2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, _dec, _class, _crd, ProbeEntry_alpha;
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "34050VwvZJJLLqkmTAadrS3", "Entry", undefined);
|
||||
|
||||
__checkObsolete__(['_decorator']);
|
||||
|
||||
_export("ProbeEntry_alpha", ProbeEntry_alpha = (_dec = _decorator.ccclass('ProbeEntry_alpha'), _dec(_class = class ProbeEntry_alpha {
|
||||
static run() {
|
||||
return 'PRIVATE_CODE_ALPHA';
|
||||
}
|
||||
|
||||
}) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=07a95adf538fa6dbf3998fa90cd1518629172d3a.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["file:///G:/Works/YouleGamesCocosCreator/out/single-game-bundle-probe-20260909/project/assets/games/alpha/Entry.ts"],"names":["_decorator","ProbeEntry_alpha","ccclass","run"],"mappings":";;;;;;;;;;AAAQA,MAAAA,U,OAAAA,U;;;;;;;;;kCAEKC,gB,WADZD,UAAU,CAACE,OAAX,CAAmB,kBAAnB,C,gBAAD,MACaD,gBADb,CAC8B;AAAW,eAAHE,GAAG,GAAE;AAAC,iBAAO,oBAAP;AAA6B;;AAA3C,O","sourcesContent":["import {_decorator} from 'cc';\n@_decorator.ccclass('ProbeEntry_alpha')\nexport class ProbeEntry_alpha {static run(){return 'PRIVATE_CODE_ALPHA';}}\n"]}
|
||||
@@ -0,0 +1,442 @@
|
||||
System.register(["__unresolved_0", "cc", "cc/env", "__unresolved_1", "__unresolved_2", "__unresolved_3"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, assert, CCBoolean, CCFloat, CCInteger, gfx, Material, rendering, Vec3, Vec4, EDITOR, BuiltinPipelineSettings, BuiltinPipelinePassBuilder, getPingPongRenderTarget, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _crd, ccclass, disallowMultiple, executeInEditMode, menu, property, requireComponent, type, Color, LoadOp, StoreOp, BuiltinDepthOfFieldPass;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
||||
|
||||
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
||||
|
||||
function _reportPossibleCrUseOfBuiltinPipelineSettings(extras) {
|
||||
_reporterNs.report("BuiltinPipelineSettings", "./builtin-pipeline-settings", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfBuiltinPipelinePassBuilder(extras) {
|
||||
_reporterNs.report("BuiltinPipelinePassBuilder", "./builtin-pipeline-pass", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfCameraConfigs(extras) {
|
||||
_reporterNs.report("CameraConfigs", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfgetPingPongRenderTarget(extras) {
|
||||
_reporterNs.report("getPingPongRenderTarget", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfPipelineConfigs(extras) {
|
||||
_reporterNs.report("PipelineConfigs", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfPipelineContext(extras) {
|
||||
_reporterNs.report("PipelineContext", "./builtin-pipeline", _context.meta, extras);
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
_reporterNs = _unresolved_;
|
||||
}, function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
_decorator = _cc._decorator;
|
||||
assert = _cc.assert;
|
||||
CCBoolean = _cc.CCBoolean;
|
||||
CCFloat = _cc.CCFloat;
|
||||
CCInteger = _cc.CCInteger;
|
||||
gfx = _cc.gfx;
|
||||
Material = _cc.Material;
|
||||
rendering = _cc.rendering;
|
||||
Vec3 = _cc.Vec3;
|
||||
Vec4 = _cc.Vec4;
|
||||
}, function (_ccEnv) {
|
||||
EDITOR = _ccEnv.EDITOR;
|
||||
}, function (_unresolved_2) {
|
||||
BuiltinPipelineSettings = _unresolved_2.BuiltinPipelineSettings;
|
||||
}, function (_unresolved_3) {
|
||||
BuiltinPipelinePassBuilder = _unresolved_3.BuiltinPipelinePassBuilder;
|
||||
}, function (_unresolved_4) {
|
||||
getPingPongRenderTarget = _unresolved_4.getPingPongRenderTarget;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "11f31MOwIxHu6IJcdEUWU5t", "builtin-dof-pass", undefined);
|
||||
/*
|
||||
Copyright (c) 2021-2024 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://www.cocos.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
__checkObsolete__(['_decorator', 'assert', 'CCBoolean', 'CCFloat', 'CCInteger', 'gfx', 'Material', 'renderer', 'rendering', 'Vec3', 'Vec4']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
disallowMultiple,
|
||||
executeInEditMode,
|
||||
menu,
|
||||
property,
|
||||
requireComponent,
|
||||
type
|
||||
} = _decorator);
|
||||
({
|
||||
Color,
|
||||
LoadOp,
|
||||
StoreOp
|
||||
} = gfx);
|
||||
|
||||
_export("BuiltinDepthOfFieldPass", BuiltinDepthOfFieldPass = (_dec = ccclass('BuiltinDepthOfFieldPass'), _dec2 = menu('Rendering/BuiltinDepthOfFieldPass'), _dec3 = requireComponent(_crd && BuiltinPipelineSettings === void 0 ? (_reportPossibleCrUseOfBuiltinPipelineSettings({
|
||||
error: Error()
|
||||
}), BuiltinPipelineSettings) : BuiltinPipelineSettings), _dec4 = property({
|
||||
group: {
|
||||
id: 'BuiltinPass',
|
||||
name: 'Pass Settings',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCInteger
|
||||
}), _dec5 = property({
|
||||
group: {
|
||||
id: 'BuiltinPass',
|
||||
name: 'Pass Settings',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCInteger
|
||||
}), _dec6 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCBoolean,
|
||||
visible: true
|
||||
}), _dec7 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Material,
|
||||
visible: true
|
||||
}), _dec8 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
min: 0,
|
||||
visible: true
|
||||
}), _dec9 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
min: 0,
|
||||
visible: true
|
||||
}), _dec10 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0.0, 2, 0.01],
|
||||
slide: true,
|
||||
visible: true
|
||||
}), _dec11 = type(CCFloat), _dec12 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: CCFloat,
|
||||
range: [0.01, 10, 0.01],
|
||||
slide: true,
|
||||
visible: true
|
||||
}), _dec13 = type(Vec3), _dec14 = property({
|
||||
group: {
|
||||
id: 'DepthOfField',
|
||||
name: 'DepthOfField (PostProcessing)',
|
||||
style: 'section'
|
||||
},
|
||||
type: Vec3,
|
||||
visible: true
|
||||
}), _dec(_class = _dec2(_class = _dec3(_class = disallowMultiple(_class = executeInEditMode(_class = (_class2 = class BuiltinDepthOfFieldPass extends (_crd && BuiltinPipelinePassBuilder === void 0 ? (_reportPossibleCrUseOfBuiltinPipelinePassBuilder({
|
||||
error: Error()
|
||||
}), BuiltinPipelinePassBuilder) : BuiltinPipelinePassBuilder) {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
|
||||
_initializerDefineProperty(this, "configOrder", _descriptor, this);
|
||||
|
||||
_initializerDefineProperty(this, "renderOrder", _descriptor2, this);
|
||||
|
||||
_initializerDefineProperty(this, "_enableDof", _descriptor3, this);
|
||||
|
||||
_initializerDefineProperty(this, "_material", _descriptor4, this);
|
||||
|
||||
_initializerDefineProperty(this, "_minRange", _descriptor5, this);
|
||||
|
||||
_initializerDefineProperty(this, "_maxRange", _descriptor6, this);
|
||||
|
||||
_initializerDefineProperty(this, "_blurRadius", _descriptor7, this);
|
||||
|
||||
_initializerDefineProperty(this, "_intensity", _descriptor8, this);
|
||||
|
||||
_initializerDefineProperty(this, "_focusPos", _descriptor9, this);
|
||||
|
||||
// Runtime members
|
||||
this._clearColorTransparentBlack = new Color(0, 0, 0, 0);
|
||||
this._cocParams = new Vec4(0, 0, 0, 0);
|
||||
this._focusPosVec4 = new Vec4(0, 0, 0, 1);
|
||||
this._cocTexSize = new Vec4(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
// DepthOfField
|
||||
set dofEnable(value) {
|
||||
this._enableDof = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._parent._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get dofEnable() {
|
||||
return this._enableDof;
|
||||
}
|
||||
|
||||
set dofMaterial(value) {
|
||||
if (this._material === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._material = value;
|
||||
|
||||
if (EDITOR) {
|
||||
this._parent._tryEnableEditorPreview();
|
||||
}
|
||||
}
|
||||
|
||||
get dofMaterial() {
|
||||
return this._material;
|
||||
}
|
||||
|
||||
set dofMinRange(value) {
|
||||
this._minRange = value;
|
||||
}
|
||||
|
||||
get dofMinRange() {
|
||||
return this._minRange;
|
||||
}
|
||||
|
||||
set dofMaxRange(value) {
|
||||
this._maxRange = value;
|
||||
}
|
||||
|
||||
get dofMaxRange() {
|
||||
return this._maxRange;
|
||||
}
|
||||
|
||||
set dofIntensity(value) {
|
||||
this._intensity = value;
|
||||
}
|
||||
|
||||
get dofIntensity() {
|
||||
return this._intensity;
|
||||
}
|
||||
|
||||
set dofBlurRadius(value) {
|
||||
this._blurRadius = value;
|
||||
}
|
||||
|
||||
get dofBlurRadius() {
|
||||
return this._blurRadius;
|
||||
}
|
||||
|
||||
set dofFocusPos(value) {
|
||||
this._focusPos = value;
|
||||
}
|
||||
|
||||
get dofFocusPos() {
|
||||
return this._focusPos;
|
||||
} // PipelinePassBuilder
|
||||
|
||||
|
||||
getConfigOrder() {
|
||||
return this.configOrder;
|
||||
}
|
||||
|
||||
getRenderOrder() {
|
||||
return this.renderOrder;
|
||||
}
|
||||
|
||||
configCamera(camera, pplConfigs, cameraConfigs) {
|
||||
cameraConfigs.enableDof = pplConfigs.supportDepthSample && this._enableDof && !!this._material;
|
||||
|
||||
if (cameraConfigs.enableDof) {
|
||||
// Output scene depth, this is allowed but has performance impact
|
||||
cameraConfigs.enableStoreSceneDepth = true;
|
||||
++cameraConfigs.remainingPasses;
|
||||
}
|
||||
}
|
||||
|
||||
windowResize(ppl, pplConfigs, cameraConfigs, window) {
|
||||
var id = window.renderWindowId;
|
||||
|
||||
if (cameraConfigs.enableDof) {
|
||||
ppl.addRenderTarget("DofRadiance" + id, cameraConfigs.radianceFormat, cameraConfigs.width, cameraConfigs.height);
|
||||
}
|
||||
}
|
||||
|
||||
setup(ppl, pplConfigs, cameraConfigs, camera, context, prevRenderPass) {
|
||||
if (!cameraConfigs.enableDof) {
|
||||
return prevRenderPass;
|
||||
}
|
||||
|
||||
--cameraConfigs.remainingPasses;
|
||||
assert(!!this._material);
|
||||
|
||||
if (cameraConfigs.remainingPasses === 0) {
|
||||
return this._addDepthOfFieldPasses(ppl, pplConfigs, cameraConfigs, this._material, camera, cameraConfigs.width, cameraConfigs.height, context.colorName, context.depthStencilName, cameraConfigs.colorName);
|
||||
} else {
|
||||
var prefix = cameraConfigs.enableShadingScale ? "ScaledRadiance" : "Radiance";
|
||||
var outputRadianceName = (_crd && getPingPongRenderTarget === void 0 ? (_reportPossibleCrUseOfgetPingPongRenderTarget({
|
||||
error: Error()
|
||||
}), getPingPongRenderTarget) : getPingPongRenderTarget)(context.colorName, prefix, cameraConfigs.renderWindowId);
|
||||
var inputRadianceName = context.colorName;
|
||||
context.colorName = outputRadianceName;
|
||||
return this._addDepthOfFieldPasses(ppl, pplConfigs, cameraConfigs, this._material, camera, cameraConfigs.width, cameraConfigs.height, inputRadianceName, context.depthStencilName, outputRadianceName);
|
||||
}
|
||||
}
|
||||
|
||||
_addDepthOfFieldPasses(ppl, pplConfigs, cameraConfigs, dofMaterial, camera, width, height, inputRadiance, inputDepthStencil, outputRadianceName) {
|
||||
this._cocParams.x = this._minRange;
|
||||
this._cocParams.y = this._maxRange;
|
||||
this._cocParams.z = this._blurRadius;
|
||||
this._cocParams.w = this._intensity;
|
||||
this._focusPosVec4.x = this._focusPos.x;
|
||||
this._focusPosVec4.y = this._focusPos.y;
|
||||
this._focusPosVec4.z = this._focusPos.z;
|
||||
this._cocTexSize.x = 1.0 / width;
|
||||
this._cocTexSize.y = 1.0 / height;
|
||||
this._cocTexSize.z = width;
|
||||
this._cocTexSize.w = height;
|
||||
var id = cameraConfigs.renderWindowId;
|
||||
var tempRadiance = "DofRadiance" + id; // Blur Pass
|
||||
|
||||
var blurPass = ppl.addRenderPass(width, height, 'cc-dof-blur');
|
||||
blurPass.addRenderTarget(tempRadiance, LoadOp.CLEAR, StoreOp.STORE, this._clearColorTransparentBlack);
|
||||
blurPass.addTexture(inputRadiance, 'screenTex');
|
||||
blurPass.setVec4('blurParams', this._cocParams);
|
||||
blurPass.setVec4('mainTexTexelSize', this._cocTexSize);
|
||||
blurPass.addQueue(rendering.QueueHint.OPAQUE).addCameraQuad(camera, dofMaterial, 0); // addCameraQuad will set camera related UBOs
|
||||
// coc pass
|
||||
|
||||
var cocPass = ppl.addRenderPass(width, height, 'cc-dof-coc');
|
||||
cocPass.addRenderTarget(outputRadianceName, LoadOp.CLEAR, StoreOp.STORE, this._clearColorTransparentBlack);
|
||||
cocPass.addTexture(tempRadiance, 'colorTex');
|
||||
cocPass.addTexture(inputDepthStencil, "DepthTex");
|
||||
cocPass.addTexture(inputRadiance, "screenTex");
|
||||
cocPass.setMat4('proj', camera.matProj);
|
||||
cocPass.setMat4('invProj', camera.matProjInv);
|
||||
cocPass.setMat4('viewMatInv', camera.node.worldMatrix);
|
||||
cocPass.setVec4('cocParams', this._cocParams);
|
||||
cocPass.setVec4('focus', this._focusPosVec4);
|
||||
cocPass.addQueue(rendering.QueueHint.OPAQUE).addCameraQuad(camera, dofMaterial, 1);
|
||||
return cocPass;
|
||||
}
|
||||
|
||||
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "configOrder", [_dec4], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return 0;
|
||||
}
|
||||
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "renderOrder", [_dec5], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return 150;
|
||||
}
|
||||
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "_enableDof", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return false;
|
||||
}
|
||||
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "_material", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return null;
|
||||
}
|
||||
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "_minRange", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return 0;
|
||||
}
|
||||
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "_maxRange", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return 2;
|
||||
}
|
||||
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "_blurRadius", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return 1;
|
||||
}
|
||||
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, "_intensity", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return 1;
|
||||
}
|
||||
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, "_focusPos", [property], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return new Vec3(0, 0, 0);
|
||||
}
|
||||
}), _applyDecoratedDescriptor(_class2.prototype, "dofEnable", [_dec6], Object.getOwnPropertyDescriptor(_class2.prototype, "dofEnable"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofMaterial", [_dec7], Object.getOwnPropertyDescriptor(_class2.prototype, "dofMaterial"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofMinRange", [_dec8], Object.getOwnPropertyDescriptor(_class2.prototype, "dofMinRange"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofMaxRange", [_dec9], Object.getOwnPropertyDescriptor(_class2.prototype, "dofMaxRange"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofIntensity", [_dec10], Object.getOwnPropertyDescriptor(_class2.prototype, "dofIntensity"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofBlurRadius", [_dec11, _dec12], Object.getOwnPropertyDescriptor(_class2.prototype, "dofBlurRadius"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, "dofFocusPos", [_dec13, _dec14], Object.getOwnPropertyDescriptor(_class2.prototype, "dofFocusPos"), _class2.prototype)), _class2)) || _class) || _class) || _class) || _class) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=50ec684ab28702df18cf262b25c26ec6d899c3a5.js.map
|
||||
@@ -0,0 +1,328 @@
|
||||
System.register(["cc"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, Color, Canvas, UITransform, instantiate, Toggle, _decorator, Component, Button, director, Node, Label, RichText, _dec, _dec2, _dec3, _dec4, _class, _class2, _descriptor, _descriptor2, _descriptor3, _crd, ccclass, property, DebugViewRuntimeControl;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
||||
|
||||
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
||||
|
||||
return {
|
||||
setters: [function (_cc) {
|
||||
_cclegacy = _cc.cclegacy;
|
||||
__checkObsolete__ = _cc.__checkObsolete__;
|
||||
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
||||
Color = _cc.Color;
|
||||
Canvas = _cc.Canvas;
|
||||
UITransform = _cc.UITransform;
|
||||
instantiate = _cc.instantiate;
|
||||
Toggle = _cc.Toggle;
|
||||
_decorator = _cc._decorator;
|
||||
Component = _cc.Component;
|
||||
Button = _cc.Button;
|
||||
director = _cc.director;
|
||||
Node = _cc.Node;
|
||||
Label = _cc.Label;
|
||||
RichText = _cc.RichText;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "b2bd1+njXxJxaFY3ymm06WU", "debug-view-runtime-control", undefined);
|
||||
|
||||
__checkObsolete__(['Color', 'Canvas', 'UITransform', 'instantiate', 'math', 'Toggle', 'TextureCube', '_decorator', 'Component', 'Button', 'labelAssembler', 'game', 'director', 'Node', 'Scene', 'renderer', 'CameraComponent', 'Label', 'ForwardPipeline', 'RichText']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
property
|
||||
} = _decorator);
|
||||
|
||||
_export("DebugViewRuntimeControl", DebugViewRuntimeControl = (_dec = ccclass('internal.DebugViewRuntimeControl'), _dec2 = property(Node), _dec3 = property(Node), _dec4 = property(Node), _dec(_class = (_class2 = class DebugViewRuntimeControl extends Component {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
|
||||
_initializerDefineProperty(this, "compositeModeToggle", _descriptor, this);
|
||||
|
||||
_initializerDefineProperty(this, "singleModeToggle", _descriptor2, this);
|
||||
|
||||
_initializerDefineProperty(this, "EnableAllCompositeModeButton", _descriptor3, this);
|
||||
|
||||
this._single = 0;
|
||||
this.strSingle = ['No Single Debug', 'Vertex Color', 'Vertex Normal', 'Vertex Tangent', 'World Position', 'Vertex Mirror', 'Face Side', 'UV0', 'UV1', 'UV Lightmap', 'Project Depth', 'Linear Depth', 'Fragment Normal', 'Fragment Tangent', 'Fragment Binormal', 'Base Color', 'Diffuse Color', 'Specular Color', 'Transparency', 'Metallic', 'Roughness', 'Specular Intensity', 'IOR', 'Direct Diffuse', 'Direct Specular', 'Direct All', 'Env Diffuse', 'Env Specular', 'Env All', 'Emissive', 'Light Map', 'Shadow', 'AO', 'Fresnel', 'Direct Transmit Diffuse', 'Direct Transmit Specular', 'Env Transmit Diffuse', 'Env Transmit Specular', 'Transmit All', 'Direct Internal Specular', 'Env Internal Specular', 'Internal All', 'Fog'];
|
||||
this.strComposite = ['Direct Diffuse', 'Direct Specular', 'Env Diffuse', 'Env Specular', 'Emissive', 'Light Map', 'Shadow', 'AO', 'Normal Map', 'Fog', 'Tone Mapping', 'Gamma Correction', 'Fresnel', 'Transmit Diffuse', 'Transmit Specular', 'Internal Specular', 'TT'];
|
||||
this.strMisc = ['CSM Layer Coloration', 'Lighting With Albedo'];
|
||||
this.compositeModeToggleList = [];
|
||||
this.singleModeToggleList = [];
|
||||
this.miscModeToggleList = [];
|
||||
this.textComponentList = [];
|
||||
this.labelComponentList = [];
|
||||
this.textContentList = [];
|
||||
this.hideButtonLabel = void 0;
|
||||
this._currentColorIndex = 0;
|
||||
this.strColor = ['<color=#ffffff>', '<color=#000000>', '<color=#ff0000>', '<color=#00ff00>', '<color=#0000ff>'];
|
||||
this.color = [Color.WHITE, Color.BLACK, Color.RED, Color.GREEN, Color.BLUE];
|
||||
}
|
||||
|
||||
start() {
|
||||
// get canvas resolution
|
||||
var canvas = this.node.parent.getComponent(Canvas);
|
||||
|
||||
if (!canvas) {
|
||||
console.error('debug-view-runtime-control should be child of Canvas');
|
||||
return;
|
||||
}
|
||||
|
||||
var uiTransform = this.node.parent.getComponent(UITransform);
|
||||
var halfScreenWidth = uiTransform.width * 0.5;
|
||||
var halfScreenHeight = uiTransform.height * 0.5;
|
||||
var x = -halfScreenWidth + halfScreenWidth * 0.1,
|
||||
y = halfScreenHeight - halfScreenHeight * 0.1;
|
||||
var width = 200,
|
||||
height = 20; // new nodes
|
||||
|
||||
var miscNode = this.node.getChildByName('MiscMode');
|
||||
var buttonNode = instantiate(miscNode);
|
||||
buttonNode.parent = this.node;
|
||||
buttonNode.name = 'Buttons';
|
||||
var titleNode = instantiate(miscNode);
|
||||
titleNode.parent = this.node;
|
||||
titleNode.name = 'Titles'; // title
|
||||
|
||||
for (var i = 0; i < 2; i++) {
|
||||
var newLabel = instantiate(this.EnableAllCompositeModeButton.getChildByName('Label'));
|
||||
newLabel.setPosition(x + (i > 0 ? 50 + width * 2 : 150), y, 0.0);
|
||||
newLabel.setScale(0.75, 0.75, 0.75);
|
||||
newLabel.parent = titleNode;
|
||||
|
||||
var _labelComponent = newLabel.getComponent(Label);
|
||||
|
||||
_labelComponent.string = i ? '----------Composite Mode----------' : '----------Single Mode----------';
|
||||
_labelComponent.color = Color.WHITE;
|
||||
_labelComponent.overflow = 0;
|
||||
this.labelComponentList[this.labelComponentList.length] = _labelComponent;
|
||||
}
|
||||
|
||||
y -= height; // single
|
||||
|
||||
var currentRow = 0;
|
||||
|
||||
for (var _i = 0; _i < this.strSingle.length; _i++, currentRow++) {
|
||||
if (_i === this.strSingle.length >> 1) {
|
||||
x += width;
|
||||
currentRow = 0;
|
||||
}
|
||||
|
||||
var newNode = _i ? instantiate(this.singleModeToggle) : this.singleModeToggle;
|
||||
newNode.setPosition(x, y - height * currentRow, 0.0);
|
||||
newNode.setScale(0.5, 0.5, 0.5);
|
||||
newNode.parent = this.singleModeToggle.parent;
|
||||
var textComponent = newNode.getComponentInChildren(RichText);
|
||||
textComponent.string = this.strSingle[_i];
|
||||
this.textComponentList[this.textComponentList.length] = textComponent;
|
||||
this.textContentList[this.textContentList.length] = textComponent.string;
|
||||
newNode.on(Toggle.EventType.TOGGLE, this.toggleSingleMode, this);
|
||||
this.singleModeToggleList[_i] = newNode;
|
||||
}
|
||||
|
||||
x += width; // buttons
|
||||
|
||||
this.EnableAllCompositeModeButton.setPosition(x + 15, y, 0.0);
|
||||
this.EnableAllCompositeModeButton.setScale(0.5, 0.5, 0.5);
|
||||
this.EnableAllCompositeModeButton.on(Button.EventType.CLICK, this.enableAllCompositeMode, this);
|
||||
this.EnableAllCompositeModeButton.parent = buttonNode;
|
||||
var labelComponent = this.EnableAllCompositeModeButton.getComponentInChildren(Label);
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
var changeColorButton = instantiate(this.EnableAllCompositeModeButton);
|
||||
changeColorButton.setPosition(x + 90, y, 0.0);
|
||||
changeColorButton.setScale(0.5, 0.5, 0.5);
|
||||
changeColorButton.on(Button.EventType.CLICK, this.changeTextColor, this);
|
||||
changeColorButton.parent = buttonNode;
|
||||
labelComponent = changeColorButton.getComponentInChildren(Label);
|
||||
labelComponent.string = 'TextColor';
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
var HideButton = instantiate(this.EnableAllCompositeModeButton);
|
||||
HideButton.setPosition(x + 200, y, 0.0);
|
||||
HideButton.setScale(0.5, 0.5, 0.5);
|
||||
HideButton.on(Button.EventType.CLICK, this.hideUI, this);
|
||||
HideButton.parent = this.node.parent;
|
||||
labelComponent = HideButton.getComponentInChildren(Label);
|
||||
labelComponent.string = 'Hide UI';
|
||||
this.labelComponentList[this.labelComponentList.length] = labelComponent;
|
||||
this.hideButtonLabel = labelComponent; // misc
|
||||
|
||||
y -= 40;
|
||||
|
||||
for (var _i2 = 0; _i2 < this.strMisc.length; _i2++) {
|
||||
var _newNode = instantiate(this.compositeModeToggle);
|
||||
|
||||
_newNode.setPosition(x, y - height * _i2, 0.0);
|
||||
|
||||
_newNode.setScale(0.5, 0.5, 0.5);
|
||||
|
||||
_newNode.parent = miscNode;
|
||||
|
||||
var _textComponent = _newNode.getComponentInChildren(RichText);
|
||||
|
||||
_textComponent.string = this.strMisc[_i2];
|
||||
this.textComponentList[this.textComponentList.length] = _textComponent;
|
||||
this.textContentList[this.textContentList.length] = _textComponent.string;
|
||||
|
||||
var toggleComponent = _newNode.getComponent(Toggle);
|
||||
|
||||
toggleComponent.isChecked = _i2 ? true : false;
|
||||
|
||||
_newNode.on(Toggle.EventType.TOGGLE, _i2 ? this.toggleLightingWithAlbedo : this.toggleCSMColoration, this);
|
||||
|
||||
this.miscModeToggleList[_i2] = _newNode;
|
||||
} // composite
|
||||
|
||||
|
||||
y -= 150;
|
||||
|
||||
for (var _i3 = 0; _i3 < this.strComposite.length; _i3++) {
|
||||
var _newNode2 = _i3 ? instantiate(this.compositeModeToggle) : this.compositeModeToggle;
|
||||
|
||||
_newNode2.setPosition(x, y - height * _i3, 0.0);
|
||||
|
||||
_newNode2.setScale(0.5, 0.5, 0.5);
|
||||
|
||||
_newNode2.parent = this.compositeModeToggle.parent;
|
||||
|
||||
var _textComponent2 = _newNode2.getComponentInChildren(RichText);
|
||||
|
||||
_textComponent2.string = this.strComposite[_i3];
|
||||
this.textComponentList[this.textComponentList.length] = _textComponent2;
|
||||
this.textContentList[this.textContentList.length] = _textComponent2.string;
|
||||
|
||||
_newNode2.on(Toggle.EventType.TOGGLE, this.toggleCompositeMode, this);
|
||||
|
||||
this.compositeModeToggleList[_i3] = _newNode2;
|
||||
}
|
||||
}
|
||||
|
||||
isTextMatched(textUI, textDescription) {
|
||||
var tempText = new String(textUI);
|
||||
var findIndex = tempText.search('>');
|
||||
|
||||
if (findIndex === -1) {
|
||||
return textUI === textDescription;
|
||||
} else {
|
||||
tempText = tempText.substr(findIndex + 1);
|
||||
tempText = tempText.substr(0, tempText.search('<'));
|
||||
return tempText === textDescription;
|
||||
}
|
||||
}
|
||||
|
||||
toggleSingleMode(toggle) {
|
||||
var debugView = director.root.debugView;
|
||||
var textComponent = toggle.getComponentInChildren(RichText);
|
||||
|
||||
for (var i = 0; i < this.strSingle.length; i++) {
|
||||
if (this.isTextMatched(textComponent.string, this.strSingle[i])) {
|
||||
debugView.singleMode = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
toggleCompositeMode(toggle) {
|
||||
var debugView = director.root.debugView;
|
||||
var textComponent = toggle.getComponentInChildren(RichText);
|
||||
|
||||
for (var i = 0; i < this.strComposite.length; i++) {
|
||||
if (this.isTextMatched(textComponent.string, this.strComposite[i])) {
|
||||
debugView.enableCompositeMode(i, toggle.isChecked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
toggleLightingWithAlbedo(toggle) {
|
||||
var debugView = director.root.debugView;
|
||||
debugView.lightingWithAlbedo = toggle.isChecked;
|
||||
}
|
||||
|
||||
toggleCSMColoration(toggle) {
|
||||
var debugView = director.root.debugView;
|
||||
debugView.csmLayerColoration = toggle.isChecked;
|
||||
}
|
||||
|
||||
enableAllCompositeMode(button) {
|
||||
var debugView = director.root.debugView;
|
||||
debugView.enableAllCompositeMode(true);
|
||||
|
||||
for (var i = 0; i < this.compositeModeToggleList.length; i++) {
|
||||
var _toggleComponent = this.compositeModeToggleList[i].getComponent(Toggle);
|
||||
|
||||
_toggleComponent.isChecked = true;
|
||||
}
|
||||
|
||||
var toggleComponent = this.miscModeToggleList[0].getComponent(Toggle);
|
||||
toggleComponent.isChecked = false;
|
||||
debugView.csmLayerColoration = false;
|
||||
toggleComponent = this.miscModeToggleList[1].getComponent(Toggle);
|
||||
toggleComponent.isChecked = true;
|
||||
debugView.lightingWithAlbedo = true;
|
||||
}
|
||||
|
||||
hideUI(button) {
|
||||
var titleNode = this.node.getChildByName('Titles');
|
||||
var activeValue = !titleNode.active;
|
||||
this.singleModeToggleList[0].parent.active = activeValue;
|
||||
this.miscModeToggleList[0].parent.active = activeValue;
|
||||
this.compositeModeToggleList[0].parent.active = activeValue;
|
||||
this.EnableAllCompositeModeButton.parent.active = activeValue;
|
||||
titleNode.active = activeValue;
|
||||
this.hideButtonLabel.string = activeValue ? 'Hide UI' : 'Show UI';
|
||||
}
|
||||
|
||||
changeTextColor(button) {
|
||||
this._currentColorIndex++;
|
||||
|
||||
if (this._currentColorIndex >= this.strColor.length) {
|
||||
this._currentColorIndex = 0;
|
||||
}
|
||||
|
||||
for (var i = 0; i < this.textComponentList.length; i++) {
|
||||
this.textComponentList[i].string = this.strColor[this._currentColorIndex] + this.textContentList[i] + '</color>';
|
||||
}
|
||||
|
||||
for (var _i4 = 0; _i4 < this.labelComponentList.length; _i4++) {
|
||||
this.labelComponentList[_i4].color = this.color[this._currentColorIndex];
|
||||
}
|
||||
}
|
||||
|
||||
onLoad() {}
|
||||
|
||||
update(deltaTime) {}
|
||||
|
||||
}, (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "compositeModeToggle", [_dec2], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return null;
|
||||
}
|
||||
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "singleModeToggle", [_dec3], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return null;
|
||||
}
|
||||
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "EnableAllCompositeModeButton", [_dec4], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
initializer: function initializer() {
|
||||
return null;
|
||||
}
|
||||
})), _class2)) || _class));
|
||||
|
||||
_cclegacy._RF.pop();
|
||||
|
||||
_crd = false;
|
||||
}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=621a159ce4a7bac550092546e00c97e12458f12b.js.map
|
||||
@@ -0,0 +1,26 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* This is the module which implements circular-reference detection.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Reports a circular reference error fired by module import.
|
||||
* @param imported The binding of the import.
|
||||
* @param moduleRequest The module request of the import.
|
||||
* @param importMeta The import.meta of the source module.
|
||||
* @param extras Extra data passed by circular reference detection implementation.
|
||||
*/
|
||||
function report(imported, moduleRequest, importMeta, extras) {
|
||||
console.warn("Found possible circular reference in \"" + importMeta.url + "\", happened when use \"" + imported + "\" imported from \"" + moduleRequest + "\" ", extras.error);
|
||||
}
|
||||
|
||||
_export("report", report);
|
||||
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=6a5019a719a9014c047e67aa1cf34453ab8392ce.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["cce:/internal/code-quality/cr.mjs"],"names":["report","imported","moduleRequest","importMeta","extras","console","warn","url","error"],"mappings":";;;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,WAASA,MAAT,CAAgBC,QAAhB,EAA0BC,aAA1B,EAAyCC,UAAzC,EAAqDC,MAArD,EAA6D;AAChEC,IAAAA,OAAO,CAACC,IAAR,6CAC6CH,UAAU,CAACI,GADxD,gCAEiBN,QAFjB,2BAE6CC,aAF7C,UAIIE,MAAM,CAACI,KAJX;AAMH;;oBAPeR,M","sourcesContent":["\r\n/**\r\n * This is the module which implements circular-reference detection.\r\n */\r\n\r\n/**\r\n * Reports a circular reference error fired by module import.\r\n * @param imported The binding of the import.\r\n * @param moduleRequest The module request of the import.\r\n * @param importMeta The import.meta of the source module.\r\n * @param extras Extra data passed by circular reference detection implementation.\r\n */\r\n\r\nexport function report(imported, moduleRequest, importMeta, extras) {\r\n console.warn(\r\n `Found possible circular reference in \"${importMeta.url}\", \\\r\nhappened when use \"${imported}\" imported from \"${moduleRequest}\" \\\r\n`,\r\n extras.error,\r\n );\r\n}\r\n"]}
|
||||
@@ -0,0 +1,9 @@
|
||||
System.register(["__unresolved_0", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {}, function (_unresolved_2) {}, function (_unresolved_3) {}, function (_unresolved_4) {}, function (_unresolved_5) {}, function (_unresolved_6) {}, function (_unresolved_7) {}, function (_unresolved_8) {}, function (_unresolved_9) {}],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
//# sourceMappingURL=6d8fd2b0177941b032ddc0733af48a561fb60657.js.map
|
||||