|
| 1 | +[gd_scene load_steps=11 format=2] |
| 2 | + |
| 3 | +[ext_resource path="res://scripts/3D_example.gd" type="Script" id=1] |
| 4 | + |
| 5 | +[sub_resource type="CubeMesh" id=1] |
| 6 | + |
| 7 | +[sub_resource type="SpatialMaterial" id=7] |
| 8 | +albedo_color = Color( 0.0705882, 0.517647, 0.811765, 1 ) |
| 9 | +roughness = 0.6 |
| 10 | +ao_enabled = true |
| 11 | +ao_light_affect = 0.0 |
| 12 | +ao_on_uv2 = false |
| 13 | +ao_texture_channel = 0 |
| 14 | +subsurf_scatter_enabled = true |
| 15 | +subsurf_scatter_strength = 0.0 |
| 16 | + |
| 17 | +[sub_resource type="CylinderMesh" id=2] |
| 18 | + |
| 19 | +[sub_resource type="SpatialMaterial" id=8] |
| 20 | +albedo_color = Color( 0.898039, 0.176471, 0.141176, 1 ) |
| 21 | +metallic = 0.13 |
| 22 | +roughness = 0.3 |
| 23 | +ao_enabled = true |
| 24 | +ao_light_affect = 0.0 |
| 25 | +ao_on_uv2 = false |
| 26 | +ao_texture_channel = 0 |
| 27 | +subsurf_scatter_enabled = true |
| 28 | +subsurf_scatter_strength = 0.0 |
| 29 | + |
| 30 | +[sub_resource type="PlaneMesh" id=5] |
| 31 | +size = Vector2( 50, 50 ) |
| 32 | + |
| 33 | +[sub_resource type="SpatialMaterial" id=6] |
| 34 | +albedo_color = Color( 0.282353, 0.282353, 0.282353, 1 ) |
| 35 | +metallic = 0.22 |
| 36 | +roughness = 0.57 |
| 37 | + |
| 38 | +[sub_resource type="CubeMesh" id=9] |
| 39 | +size = Vector3( 1, 6, 5 ) |
| 40 | + |
| 41 | +[sub_resource type="ProceduralSky" id=3] |
| 42 | + |
| 43 | +[sub_resource type="Environment" id=4] |
| 44 | +background_mode = 2 |
| 45 | +background_sky = SubResource( 3 ) |
| 46 | +tonemap_mode = 4 |
| 47 | +ss_reflections_enabled = true |
| 48 | +ssao_enabled = true |
| 49 | + |
| 50 | +[node name="3DExample" type="Spatial"] |
| 51 | +script = ExtResource( 1 ) |
| 52 | + |
| 53 | +[node name="MeshInstance" type="MeshInstance" parent="."] |
| 54 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.84518, 0 ) |
| 55 | +mesh = SubResource( 1 ) |
| 56 | +material/0 = SubResource( 7 ) |
| 57 | + |
| 58 | +[node name="MeshInstance2" type="MeshInstance" parent="."] |
| 59 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.51597, -1.84518, 0.752246 ) |
| 60 | +mesh = SubResource( 2 ) |
| 61 | +material/0 = SubResource( 8 ) |
| 62 | + |
| 63 | +[node name="MeshInstance3" type="MeshInstance" parent="."] |
| 64 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.79911, 0 ) |
| 65 | +mesh = SubResource( 5 ) |
| 66 | +material/0 = SubResource( 6 ) |
| 67 | + |
| 68 | +[node name="Wall" type="MeshInstance" parent="."] |
| 69 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.14242, 0.169752, 7.50346 ) |
| 70 | +visible = false |
| 71 | +mesh = SubResource( 9 ) |
| 72 | + |
| 73 | +[node name="Camera1" type="Camera" parent="."] |
| 74 | +transform = Transform( 0.93138, 0.11162, -0.346514, 0, 0.951836, 0.306609, 0.364048, -0.28557, 0.886521, -2.28311, 1.85818, 8.48474 ) |
| 75 | +current = true |
| 76 | + |
| 77 | +[node name="Camera2" type="Camera" parent="."] |
| 78 | +transform = Transform( 0.653183, 0, 0.7572, 0, 1, 0, -0.7572, 0, 0.653183, 6.71706, 0, 5.28411 ) |
| 79 | +fov = 110.0 |
| 80 | + |
| 81 | +[node name="WorldEnvironment" type="WorldEnvironment" parent="."] |
| 82 | +environment = SubResource( 4 ) |
| 83 | + |
| 84 | +[node name="DirectionalLight" type="DirectionalLight" parent="WorldEnvironment"] |
| 85 | +transform = Transform( 0.830751, 0.310514, -0.461989, 0, 0.829954, 0.557832, 0.556644, -0.46342, 0.689485, 0, 7.0162, 0 ) |
| 86 | +shadow_enabled = true |
| 87 | +shadow_color = Color( 0.537255, 0.537255, 0.537255, 1 ) |
0 commit comments