Skip to content

Commit 3aa2b9c

Browse files
committed
Add a skybox
1 parent c392856 commit 3aa2b9c

File tree

7 files changed

+65
-20
lines changed

7 files changed

+65
-20
lines changed

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

Lines changed: 65 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,54 @@
643643
"identifier": "https://asset-resources.gdevelop.io/staging/public-resources/Menu buttons/928c3ea4db1da835c9f8cc5b7089a47228350209d2ff489e1484c31e5ce41b3d_Yellow Button_Pressed.png",
644644
"name": "Yellow Button_Pressed.png"
645645
}
646+
},
647+
{
648+
"file": "assets/Cubemap_Sky_04-512x512_Back.png",
649+
"kind": "image",
650+
"metadata": "",
651+
"name": "assets\\Cubemap_Sky_02-512x512_Back.png",
652+
"smoothed": true,
653+
"userAdded": false
654+
},
655+
{
656+
"file": "assets/Cubemap_Sky_04-512x512_Bottom.png",
657+
"kind": "image",
658+
"metadata": "",
659+
"name": "assets\\Cubemap_Sky_02-512x512_Bottom.png",
660+
"smoothed": true,
661+
"userAdded": false
662+
},
663+
{
664+
"file": "assets/Cubemap_Sky_04-512x512_Front.png",
665+
"kind": "image",
666+
"metadata": "",
667+
"name": "assets\\Cubemap_Sky_02-512x512_Front.png",
668+
"smoothed": true,
669+
"userAdded": false
670+
},
671+
{
672+
"file": "assets/Cubemap_Sky_04-512x512_Left.png",
673+
"kind": "image",
674+
"metadata": "",
675+
"name": "assets\\Cubemap_Sky_02-512x512_Left.png",
676+
"smoothed": true,
677+
"userAdded": false
678+
},
679+
{
680+
"file": "assets/Cubemap_Sky_04-512x512_Right.png",
681+
"kind": "image",
682+
"metadata": "",
683+
"name": "assets\\Cubemap_Sky_02-512x512_Right.png",
684+
"smoothed": true,
685+
"userAdded": false
686+
},
687+
{
688+
"file": "assets/Cubemap_Sky_04-512x512_Top.png",
689+
"kind": "image",
690+
"metadata": "",
691+
"name": "assets\\Cubemap_Sky_02-512x512_Top.png",
692+
"smoothed": true,
693+
"userAdded": false
646694
}
647695
],
648696
"resourceFolders": []
@@ -1477,23 +1525,6 @@
14771525
"numberProperties": [],
14781526
"stringProperties": [],
14791527
"initialVariables": []
1480-
},
1481-
{
1482-
"angle": 0,
1483-
"customSize": true,
1484-
"depth": 1,
1485-
"height": 203,
1486-
"keepRatio": true,
1487-
"layer": "Background",
1488-
"name": "Sky",
1489-
"persistentUuid": "69a0e10c-4cb2-4f66-832f-e8590d4aac59",
1490-
"width": 1281,
1491-
"x": 0,
1492-
"y": 0,
1493-
"zOrder": 44,
1494-
"numberProperties": [],
1495-
"stringProperties": [],
1496-
"initialVariables": []
14971528
}
14981529
],
14991530
"objects": [
@@ -4308,7 +4339,7 @@
43084339
"ambientLightColorB": 200,
43094340
"ambientLightColorG": 200,
43104341
"ambientLightColorR": 200,
4311-
"camera3DFarPlaneDistance": 3000,
4342+
"camera3DFarPlaneDistance": 5000,
43124343
"camera3DFieldOfView": 45,
43134344
"camera3DNearPlaneDistance": 0.1,
43144345
"cameraType": "perspective",
@@ -4358,7 +4389,7 @@
43584389
"density": 0.0006
43594390
},
43604391
"stringParameters": {
4361-
"color": "221;221;215"
4392+
"color": "255;255;255"
43624393
},
43634394
"booleanParameters": {}
43644395
},
@@ -4368,14 +4399,28 @@
43684399
"doubleParameters": {
43694400
"elevation": 80,
43704401
"intensity": 0.33,
4371-
"rotation": 300
4402+
"rotation": 120
43724403
},
43734404
"stringParameters": {
43744405
"groundColor": "128;128;128",
43754406
"skyColor": "255;255;255",
43764407
"top": "Z+"
43774408
},
43784409
"booleanParameters": {}
4410+
},
4411+
{
4412+
"effectType": "Scene3D::Skybox",
4413+
"name": "Skybox",
4414+
"doubleParameters": {},
4415+
"stringParameters": {
4416+
"backFaceResourceName": "assets\\Cubemap_Sky_02-512x512_Back.png",
4417+
"bottomFaceResourceName": "assets\\Cubemap_Sky_02-512x512_Bottom.png",
4418+
"frontFaceResourceName": "assets\\Cubemap_Sky_02-512x512_Front.png",
4419+
"leftFaceResourceName": "assets\\Cubemap_Sky_02-512x512_Left.png",
4420+
"rightFaceResourceName": "assets\\Cubemap_Sky_02-512x512_Right.png",
4421+
"topFaceResourceName": "assets\\Cubemap_Sky_02-512x512_Top.png"
4422+
},
4423+
"booleanParameters": {}
43794424
}
43804425
]
43814426
},
155 KB
Loading
158 KB
Loading
213 KB
Loading
167 KB
Loading
185 KB
Loading
190 KB
Loading

0 commit comments

Comments
 (0)