configured voxel system.

This commit is contained in:
douwe
2025-08-27 16:48:59 +02:00
parent 6051b289ac
commit 5dd9a0f252
979 changed files with 110 additions and 572280 deletions

View File

@@ -1,33 +1,18 @@
[gd_scene load_steps=11 format=3 uid="uid://7q00x01xdsal"]
[ext_resource type="Material" uid="uid://d0j8ohshig3ev" path="res://assets/polygon_prototype/materials/material_polygon_prototype_texture_A1.tres" id="1_o5qli"]
[ext_resource type="VoxelBlockyLibrary" uid="uid://bsue4rd3wdfsl" path="res://BlockLibrary.tres" id="1_0wfyh"]
[ext_resource type="Material" uid="uid://de6s8en5fcyyw" path="res://BlockMaterial.tres" id="1_o5qli"]
[sub_resource type="Gradient" id="Gradient_o5qli"]
offsets = PackedFloat32Array(0.386792, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_0wfyh"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_sugp2"]
seamless = true
color_ramp = SubResource("Gradient_o5qli")
noise = SubResource("FastNoiseLite_0wfyh")
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_jyhfs"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_o5qli"]
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
sky_cover = SubResource("NoiseTexture2D_sugp2")
ground_curve = 0.0721003
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
[sub_resource type="Sky" id="Sky_tbgi4"]
sky_material = SubResource("ProceduralSkyMaterial_jyhfs")
[sub_resource type="Sky" id="Sky_0wfyh"]
sky_material = SubResource("ProceduralSkyMaterial_o5qli")
[sub_resource type="Environment" id="Environment_tefeu"]
[sub_resource type="Environment" id="Environment_sugp2"]
background_mode = 2
sky = SubResource("Sky_tbgi4")
tonemap_mode = 2
glow_enabled = true
[sub_resource type="PlaneMesh" id="PlaneMesh_be8jq"]
size = Vector2(50, 50)
sky = SubResource("Sky_0wfyh")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_o5qli"]
albedo_color = Color(0.313808, 0.455394, 0.721014, 1)
@@ -35,20 +20,28 @@ albedo_color = Color(0.313808, 0.455394, 0.721014, 1)
[sub_resource type="BoxMesh" id="BoxMesh_o5qli"]
material = SubResource("StandardMaterial3D_o5qli")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_sgp6g"]
[sub_resource type="VoxelGeneratorNoise2D" id="VoxelGeneratorNoise2D_o5qli"]
channel = 0
height_start = 0.0
height_range = 20.0
noise = SubResource("FastNoiseLite_sgp6g")
[sub_resource type="VoxelMesherBlocky" id="VoxelMesherBlocky_tefeu"]
library = ExtResource("1_0wfyh")
[node name="Main" type="Node"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_sugp2")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 0, 0)
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
shadow_enabled = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_tefeu")
[node name="floor" type="MeshInstance3D" parent="."]
material_override = ExtResource("1_o5qli")
mesh = SubResource("PlaneMesh_be8jq")
[node name="Robot" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.5, 14, 2.5)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Robot"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
@@ -57,12 +50,12 @@ mesh = SubResource("BoxMesh_o5qli")
[node name="Camera3D" type="Camera3D" parent="Robot"]
transform = Transform3D(-0.996038, -0.0493504, 0.0739856, 0, 0.831912, 0.554908, -0.0889344, 0.552709, -0.828616, 0.617269, 2.49481, -3.59337)
[node name="VoxelViewer" type="VoxelViewer" parent="Robot/Camera3D"]
[node name="Control" type="PanelContainer" parent="."]
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchors_preset = 9
anchor_bottom = 1.0
grow_horizontal = 0
offset_right = 227.0
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Control"]
@@ -152,3 +145,10 @@ text = "Pause"
[node name="StepButton" type="Button" parent="Control/VBoxContainer/HBoxContainer2"]
layout_mode = 2
text = "Step"
[node name="VoxelTerrain" type="VoxelTerrain" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0)
generator = SubResource("VoxelGeneratorNoise2D_o5qli")
mesher = SubResource("VoxelMesherBlocky_tefeu")
bounds = AABB(-1040, -32, -1040, 2080, 96, 2080)
material_override = ExtResource("1_o5qli")