Skip to content

Commit 32aeb4c

Browse files
added shadow support on all 4 examples
1 parent af6a3ab commit 32aeb4c

File tree

4 files changed

+553
-436
lines changed

4 files changed

+553
-436
lines changed

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"firstLayout": "Menu",
33
"gdVersion": {
4-
"build": 231,
4+
"build": 229,
55
"major": 5,
66
"minor": 5,
77
"revision": 0
@@ -1293,7 +1293,7 @@
12931293
"gridColor": 10401023,
12941294
"gridAlpha": 0.8,
12951295
"snap": false,
1296-
"zoomFactor": 0.6455105703311483,
1296+
"zoomFactor": 0.5843784410740933,
12971297
"windowMask": false
12981298
},
12991299
"objectsGroups": [
@@ -2094,6 +2094,8 @@
20942094
"crossfadeDuration": 0,
20952095
"depth": 74,
20962096
"height": 74,
2097+
"isCastingShadow": true,
2098+
"isReceivingShadow": true,
20972099
"keepAspectRatio": true,
20982100
"materialType": "StandardWithoutMetalness",
20992101
"modelResourceName": "Sedan Sports.glb",
@@ -2146,6 +2148,8 @@
21462148
"crossfadeDuration": 0,
21472149
"depth": 282,
21482150
"height": 128,
2151+
"isCastingShadow": true,
2152+
"isReceivingShadow": true,
21492153
"keepAspectRatio": false,
21502154
"materialType": "StandardWithoutMetalness",
21512155
"modelResourceName": "Large Building F2.glb",
@@ -2198,6 +2202,8 @@
21982202
"crossfadeDuration": 0,
21992203
"depth": 316,
22002204
"height": 256,
2205+
"isCastingShadow": true,
2206+
"isReceivingShadow": true,
22012207
"keepAspectRatio": false,
22022208
"materialType": "StandardWithoutMetalness",
22032209
"modelResourceName": "Large Building A.glb",
@@ -2250,6 +2256,8 @@
22502256
"crossfadeDuration": 0,
22512257
"depth": 84,
22522258
"height": 84,
2259+
"isCastingShadow": true,
2260+
"isReceivingShadow": true,
22532261
"keepAspectRatio": true,
22542262
"materialType": "StandardWithoutMetalness",
22552263
"modelResourceName": "Suv Luxury5.glb",
@@ -2302,6 +2310,8 @@
23022310
"crossfadeDuration": 0,
23032311
"depth": 79,
23042312
"height": 79,
2313+
"isCastingShadow": true,
2314+
"isReceivingShadow": true,
23052315
"keepAspectRatio": true,
23062316
"materialType": "StandardWithoutMetalness",
23072317
"modelResourceName": "Van2.glb",
@@ -2389,6 +2399,8 @@
23892399
"crossfadeDuration": 0,
23902400
"depth": 8,
23912401
"height": 384,
2402+
"isCastingShadow": true,
2403+
"isReceivingShadow": true,
23922404
"keepAspectRatio": false,
23932405
"materialType": "StandardWithoutMetalness",
23942406
"modelResourceName": "Road Straight.glb",
@@ -2412,6 +2424,8 @@
24122424
"crossfadeDuration": 0,
24132425
"depth": 8,
24142426
"height": 384,
2427+
"isCastingShadow": true,
2428+
"isReceivingShadow": true,
24152429
"keepAspectRatio": false,
24162430
"materialType": "StandardWithoutMetalness",
24172431
"modelResourceName": "Road Crossroad Path.glb",
@@ -2435,6 +2449,8 @@
24352449
"crossfadeDuration": 0,
24362450
"depth": 8,
24372451
"height": 384,
2452+
"isCastingShadow": true,
2453+
"isReceivingShadow": true,
24382454
"keepAspectRatio": false,
24392455
"materialType": "StandardWithoutMetalness",
24402456
"modelResourceName": "Road Intersection Path.glb",
@@ -2458,6 +2474,8 @@
24582474
"crossfadeDuration": 0,
24592475
"depth": 8,
24602476
"height": 384,
2477+
"isCastingShadow": true,
2478+
"isReceivingShadow": true,
24612479
"keepAspectRatio": false,
24622480
"materialType": "StandardWithoutMetalness",
24632481
"modelResourceName": "Road Bend.glb",
@@ -2510,6 +2528,8 @@
25102528
"crossfadeDuration": 0,
25112529
"depth": 250,
25122530
"height": 250,
2531+
"isCastingShadow": true,
2532+
"isReceivingShadow": true,
25132533
"keepAspectRatio": true,
25142534
"materialType": "StandardWithoutMetalness",
25152535
"modelResourceName": "Common Tree 1.glb",
@@ -2826,6 +2846,8 @@
28262846
"crossfadeDuration": 0,
28272847
"depth": 31,
28282848
"height": 31,
2849+
"isCastingShadow": true,
2850+
"isReceivingShadow": true,
28292851
"keepAspectRatio": true,
28302852
"materialType": "StandardWithoutMetalness",
28312853
"modelResourceName": "Coin.glb",
@@ -4297,33 +4319,34 @@
42974319
],
42984320
"effects": [
42994321
{
4300-
"effectType": "Scene3D::HemisphereLight",
4322+
"effectType": "Scene3D::AmbientLight",
43014323
"name": "Effect3",
43024324
"doubleParameters": {
4303-
"elevation": 90,
4304-
"intensity": 0.75,
4305-
"rotation": 0
4325+
"intensity": 0.75
43064326
},
43074327
"stringParameters": {
4308-
"groundColor": "177;177;177",
4309-
"skyColor": "255;255;255",
4310-
"top": "Z+"
4328+
"color": "255;255;255"
43114329
},
43124330
"booleanParameters": {}
43134331
},
43144332
{
43154333
"effectType": "Scene3D::DirectionalLight",
43164334
"name": "Effect",
43174335
"doubleParameters": {
4336+
"distanceFromCamera": 1500,
43184337
"elevation": 45,
4319-
"intensity": 0.5,
4338+
"frustumSize": 4000,
4339+
"intensity": 1,
43204340
"rotation": 45
43214341
},
43224342
"stringParameters": {
43234343
"color": "255;255;255",
4344+
"shadowQuality": "Medium",
43244345
"top": "Z+"
43254346
},
4326-
"booleanParameters": {}
4347+
"booleanParameters": {
4348+
"isCastingShadow": true
4349+
}
43274350
},
43284351
{
43294352
"effectType": "Scene3D::ExponentialFog",
@@ -4651,6 +4674,8 @@
46514674
"crossfadeDuration": 0,
46524675
"depth": 64,
46534676
"height": 64,
4677+
"isCastingShadow": false,
4678+
"isReceivingShadow": false,
46544679
"keepAspectRatio": true,
46554680
"materialType": "StandardWithoutMetalness",
46564681
"modelResourceName": "Coin.glb",

0 commit comments

Comments
 (0)