Skip to content

Commit 7d863f4

Browse files
stanleyljllijilin
and
lijilin
authored
add occlusion query example (#190)
Co-authored-by: lijilin <[email protected]>
1 parent 9de37b0 commit 7d863f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+27043
-0
lines changed

Diff for: occlusion-query/assets/material.meta

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ver": "1.1.0",
3+
"importer": "directory",
4+
"imported": true,
5+
"uuid": "bcb14f34-8131-435f-a8f5-29612c45af59",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {
9+
"compressionType": {},
10+
"isRemoteBundle": {}
11+
}
12+
}

Diff for: occlusion-query/assets/material/hdcSky.mtl

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"__type__": "cc.Material",
3+
"_name": "",
4+
"_objFlags": 0,
5+
"_native": "",
6+
"_effectAsset": {
7+
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
8+
},
9+
"_techIdx": 0,
10+
"_defines": [
11+
{
12+
"USE_TEXTURE": true
13+
}
14+
],
15+
"_states": [
16+
{
17+
"blendState": {
18+
"targets": [
19+
{}
20+
]
21+
},
22+
"depthStencilState": {},
23+
"rasterizerState": {}
24+
}
25+
],
26+
"_props": [
27+
{
28+
"mainTexture": {
29+
"__uuid__": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a"
30+
},
31+
"alphaThreshold": 0
32+
}
33+
]
34+
}

Diff for: occlusion-query/assets/material/hdcSky.mtl.meta

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ver": "1.0.9",
3+
"importer": "material",
4+
"imported": true,
5+
"uuid": "482a5162-dad9-446c-b548-8486c7598ee1",
6+
"files": [
7+
".json"
8+
],
9+
"subMetas": {},
10+
"userData": {}
11+
}

Diff for: occlusion-query/assets/material/plane.mtl

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"__type__": "cc.Material",
3+
"_name": "",
4+
"_objFlags": 0,
5+
"_native": "",
6+
"_effectAsset": {
7+
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
8+
},
9+
"_techIdx": 0,
10+
"_defines": [
11+
{
12+
"USE_TEXTURE": true
13+
}
14+
],
15+
"_states": [
16+
{
17+
"blendState": {
18+
"targets": [
19+
{}
20+
]
21+
},
22+
"depthStencilState": {},
23+
"rasterizerState": {}
24+
}
25+
],
26+
"_props": [
27+
{
28+
"mainTexture": {
29+
"__uuid__": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a"
30+
},
31+
"alphaThreshold": 0
32+
}
33+
]
34+
}

Diff for: occlusion-query/assets/material/plane.mtl.meta

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ver": "1.0.9",
3+
"importer": "material",
4+
"imported": true,
5+
"uuid": "23e988d0-7168-4fe2-9d46-f29c114e9e33",
6+
"files": [
7+
".json"
8+
],
9+
"subMetas": {},
10+
"userData": {}
11+
}

Diff for: occlusion-query/assets/material/seafloor.mtl

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"__type__": "cc.Material",
3+
"_name": "seafloor",
4+
"_objFlags": 0,
5+
"_native": "",
6+
"_effectAsset": {
7+
"__uuid__": "1baf0fc9-befa-459c-8bdd-af1a450a0319"
8+
},
9+
"_techIdx": 0,
10+
"_defines": [
11+
{
12+
"USE_ALBEDO_MAP": true
13+
}
14+
],
15+
"_states": [
16+
{
17+
"rasterizerState": {},
18+
"blendState": {
19+
"targets": [
20+
{}
21+
]
22+
},
23+
"depthStencilState": {}
24+
}
25+
],
26+
"_props": [
27+
{
28+
"mainTexture": {
29+
"__uuid__": "0ab3142a-6968-4073-95af-026bc3b23623@2df3a"
30+
},
31+
"albedoScale": {
32+
"__type__": "cc.Vec3",
33+
"x": 1,
34+
"y": 1,
35+
"z": 1
36+
},
37+
"metallic": 0.400000005960464,
38+
"roughness": 0.70710676908493,
39+
"alphaThreshold": 0
40+
}
41+
]
42+
}

Diff for: occlusion-query/assets/material/seafloor.mtl.meta

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ver": "1.0.9",
3+
"importer": "material",
4+
"imported": true,
5+
"uuid": "70d33758-1c1e-424d-b0ab-eac7410559bf",
6+
"files": [
7+
".json"
8+
],
9+
"subMetas": {},
10+
"userData": {}
11+
}

Diff for: occlusion-query/assets/material/shield.mtl

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"__type__": "cc.Material",
3+
"_name": "",
4+
"_objFlags": 0,
5+
"_native": "",
6+
"_effectAsset": {
7+
"__uuid__": "1baf0fc9-befa-459c-8bdd-af1a450a0319"
8+
},
9+
"_techIdx": 0,
10+
"_defines": [
11+
{
12+
"USE_ALBEDO_MAP": true
13+
},
14+
{
15+
"USE_ALBEDO_MAP": true
16+
},
17+
{
18+
"USE_ALBEDO_MAP": true
19+
}
20+
],
21+
"_states": [
22+
{
23+
"blendState": {
24+
"targets": [
25+
{}
26+
]
27+
},
28+
"depthStencilState": {},
29+
"rasterizerState": {}
30+
},
31+
{
32+
"blendState": {
33+
"targets": [
34+
{}
35+
]
36+
},
37+
"depthStencilState": {},
38+
"rasterizerState": {}
39+
},
40+
{
41+
"blendState": {
42+
"targets": [
43+
{}
44+
]
45+
},
46+
"depthStencilState": {},
47+
"rasterizerState": {}
48+
}
49+
],
50+
"_props": [
51+
{
52+
"alphaThreshold": 0,
53+
"roughness": 0.70710676908493,
54+
"metallic": 0.400000005960464,
55+
"mainTexture": {
56+
"__uuid__": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a"
57+
}
58+
},
59+
{},
60+
{}
61+
]
62+
}

Diff for: occlusion-query/assets/material/shield.mtl.meta

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ver": "1.0.9",
3+
"importer": "material",
4+
"imported": true,
5+
"uuid": "8e047178-f61c-4322-a2f6-d1adb28b6ae2",
6+
"files": [
7+
".json"
8+
],
9+
"subMetas": {},
10+
"userData": {}
11+
}

Diff for: occlusion-query/assets/material/soldier.mtl

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"__type__": "cc.Material",
3+
"_name": "",
4+
"_objFlags": 0,
5+
"_native": "",
6+
"_effectAsset": {
7+
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
8+
},
9+
"_techIdx": 0,
10+
"_defines": [
11+
{
12+
"USE_OUTLINE_PASS": true
13+
},
14+
{
15+
"USE_BASE_COLOR_MAP": true,
16+
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
17+
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
18+
},
19+
{
20+
"USE_BASE_COLOR_MAP": true,
21+
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
22+
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
23+
},
24+
{
25+
"USE_BASE_COLOR_MAP": true
26+
}
27+
],
28+
"_states": [
29+
{
30+
"blendState": {
31+
"targets": [
32+
{}
33+
]
34+
},
35+
"depthStencilState": {},
36+
"rasterizerState": {}
37+
},
38+
{
39+
"blendState": {
40+
"targets": [
41+
{}
42+
]
43+
},
44+
"depthStencilState": {},
45+
"rasterizerState": {}
46+
},
47+
{
48+
"blendState": {
49+
"targets": [
50+
{}
51+
]
52+
},
53+
"depthStencilState": {},
54+
"rasterizerState": {}
55+
},
56+
{
57+
"blendState": {
58+
"targets": [
59+
{}
60+
]
61+
},
62+
"depthStencilState": {},
63+
"rasterizerState": {}
64+
}
65+
],
66+
"_props": [
67+
{},
68+
{
69+
"specular": {
70+
"__type__": "cc.Color",
71+
"r": 255,
72+
"g": 255,
73+
"b": 255,
74+
"a": 0
75+
},
76+
"mainTexture": {
77+
"__uuid__": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a"
78+
}
79+
},
80+
{},
81+
{}
82+
]
83+
}

Diff for: occlusion-query/assets/material/soldier.mtl.meta

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ver": "1.0.9",
3+
"importer": "material",
4+
"imported": true,
5+
"uuid": "8a58ddec-f437-40b9-8ec0-1fc87de97fb5",
6+
"files": [
7+
".json"
8+
],
9+
"subMetas": {},
10+
"userData": {}
11+
}

0 commit comments

Comments
 (0)