summaryrefslogtreecommitdiffstats
path: root/world/chunk/Chunk.tscn
blob: 5377ae915c498133fa4cced36db9af23075885ae (plain) (blame)
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
[gd_scene load_steps=7 format=2]

[ext_resource path="res://world/chunk/Chunk.gd" type="Script" id=1]
[ext_resource path="res://world/chunk/helper/ChunkedCSGMesh.gd" type="Script" id=2]

[sub_resource type="SphereShape" id=1]
radius = 50.0

[sub_resource type="SpatialMaterial" id=3]
flags_unshaded = true
params_cull_mode = 2
albedo_color = Color( 0.937255, 0, 1, 1 )

[sub_resource type="PlaneMesh" id=2]
size = Vector2( 100, 100 )

[sub_resource type="PlaneMesh" id=4]
size = Vector2( 98, 98 )

[node name="Chunk" type="Area"]
collision_layer = 32
collision_mask = 0
script = ExtResource( 1 )

[node name="Size" type="CollisionShape" parent="."]
shape = SubResource( 1 )

[node name="Border" type="CSGMesh" parent="."]
material_override = SubResource( 3 )
script = ExtResource( 2 )
_mesh = SubResource( 2 )

[node name="CSGMesh" type="CSGMesh" parent="Border"]
operation = 2
script = ExtResource( 2 )
_mesh = SubResource( 4 )

[node name="gen_tree" type="Spatial" parent="."]

[node name="lod_distance" type="Spatial" parent="gen_tree"]

[node name="lod_mid" type="Spatial" parent="gen_tree"]

[node name="lod_close" type="StaticBody" parent="gen_tree"]
collision_layer = 8
collision_mask = 0