-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.tscn
121 lines (95 loc) · 3.72 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[gd_scene load_steps=6 format=2]
[ext_resource path="res://monu10.ply" type="ArrayMesh" id=1]
[sub_resource type="Animation" id=1]
resource_name = "Rotate"
length = 5.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rotation_degrees")
tracks/0/interp = 2
tracks/0/loop_wrap = false
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 2.5, 5 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector3( -15, 0, 0 ), Vector3( 0, 360, 0 ), Vector3( -15, 0, 0 ) ]
}
[sub_resource type="GDScript" id=2]
script/source = "extends AnimationPlayer;
func _ready():
play(\"Rotate\");"
[sub_resource type="GDScript" id=3]
script/source = "extends Label
func _process(delta):
text = \"Frame time (ms): \" + String((Performance.get_monitor(Performance.TIME_PROCESS) * 1000)) + \"\\nFPS: \" + String((Performance.get_monitor(Performance.TIME_FPS)))
"
[sub_resource type="GDScript" id=4]
script/source = "extends Label
func _process(delta):
text = \"Verts: \" + String((Performance.get_monitor(Performance.RENDER_VERTICES_IN_FRAME))) + \"\\nDraw calls: \" + String((Performance.get_monitor(Performance.RENDER_DRAW_CALLS_IN_FRAME)))"
[node name="SceneRoot" type="Spatial"]
[node name="VoxelObjects" type="Spatial" parent="."]
[node name="Models" type="Spatial" parent="VoxelObjects"]
[node name="monu10" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )
mesh = ExtResource( 1 )
[node name="monu11" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -2, -10 )
mesh = ExtResource( 1 )
[node name="monu12" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -2, 10 )
mesh = ExtResource( 1 )
[node name="monu13" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, -10, -2, 0 )
mesh = ExtResource( 1 )
[node name="monu14" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 10, -2, 0 )
mesh = ExtResource( 1 )
[node name="monu15" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 12, 0 )
mesh = ExtResource( 1 )
[node name="monu16" type="MeshInstance" parent="VoxelObjects/Models"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -16, 0 )
mesh = ExtResource( 1 )
[node name="CameraRig" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 0.965926, 0.258819, 0, -0.258819, 0.965926, 0, 0, 0 )
[node name="Camera" type="Camera" parent="CameraRig"]
transform = Transform( 1, 0, 0, 0, 1, -1.49012e-08, 0, 1.49012e-08, 1, 0, 1, 15 )
fov = 90.0
size = 20.0
[node name="AnimationPlayer" type="AnimationPlayer" parent="CameraRig"]
playback_speed = 0.25
anims/Rotate = SubResource( 1 )
script = SubResource( 2 )
[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.78198, 1.81319, 0 )
light_color = Color( 0, 0, 1, 1 )
light_energy = 10.0
omni_range = 6.0
[node name="OmniLight2" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 1, 0 )
light_color = Color( 1, 0, 0, 1 )
light_energy = 10.0
omni_range = 6.0
[node name="Debug UI" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
[node name="FrameTime" type="Label" parent="Debug UI"]
margin_left = 20.0
margin_top = 20.0
margin_right = 230.0
margin_bottom = 60.0
text = "Frame time (MS): 0.00
FPS: 00"
script = SubResource( 3 )
[node name="3D debug" type="Label" parent="Debug UI"]
margin_left = 20.0
margin_top = 70.0
margin_right = 230.0
margin_bottom = 160.0
text = "Verts: 0
Draw calls: 0
"
script = SubResource( 4 )