-
Notifications
You must be signed in to change notification settings - Fork 0
/
VoxelTerrain.tscn
37 lines (30 loc) · 983 Bytes
/
VoxelTerrain.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
[gd_scene load_steps=7 format=2]
[sub_resource type="VoxelGeneratorWaves" id=1]
channel = 0
[sub_resource type="Voxel" id=2]
voxel_name = "air"
transparent = true
transparency_index = 1
[sub_resource type="Voxel" id=3]
voxel_name = "solid"
geometry_type = 1
collision_aabbs = [ AABB( 0, 0, 0, 1, 1, 1 ) ]
cube_geometry/padding_y = null
cube_tiles/left = Vector2( 0, 0 )
cube_tiles/right = Vector2( 0, 0 )
cube_tiles/bottom = Vector2( 0, 0 )
cube_tiles/top = Vector2( 0, 0 )
cube_tiles/back = Vector2( 0, 0 )
cube_tiles/front = Vector2( 0, 0 )
[sub_resource type="VoxelLibrary" id=4]
voxels/0 = SubResource( 2 )
voxels/1 = SubResource( 3 )
[sub_resource type="VoxelMesherBlocky" id=5]
library = SubResource( 4 )
[sub_resource type="SpatialMaterial" id=6]
vertex_color_use_as_albedo = true
albedo_color = Color( 0.721569, 0.968627, 0.364706, 1 )
[node name="VoxelTerrain" type="VoxelTerrain"]
generator = SubResource( 1 )
mesher = SubResource( 5 )
material/0 = SubResource( 6 )