Initial commit

This commit is contained in:
2023-10-26 15:27:25 +02:00
commit 7ed5f3155e
25 changed files with 1565 additions and 0 deletions

64
scenes/main.tscn Normal file
View File

@@ -0,0 +1,64 @@
[gd_scene load_steps=7 format=3 uid="uid://dgfh1lgxud87u"]
[ext_resource type="PackedScene" uid="uid://c4orppao35wg6" path="res://prefabs/character.tscn" id="2_v34ds"]
[ext_resource type="Script" path="res://src/spawner.gd" id="3_xxi2i"]
[sub_resource type="GDScript" id="GDScript_12xd3"]
script/source = "extends Node3D
func _ready() -> void:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
"
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xxbnc"]
albedo_color = Color(0.266667, 0.145098, 0.0823529, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_uelfv"]
material = SubResource("StandardMaterial3D_xxbnc")
size = Vector2(50, 50)
[sub_resource type="BoxShape3D" id="BoxShape3D_vbj2x"]
size = Vector3(50, 1, 50)
[node name="Main" type="Node3D"]
script = SubResource("GDScript_12xd3")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.276457, -0.764665, 0.582116, 0.11662, 0.62794, 0.769474, -0.953924, -0.14484, 0.262774, 0, 0, 0)
light_energy = 2.0
shadow_enabled = true
directional_shadow_fade_start = 1.0
directional_shadow_max_distance = 50.0
[node name="Spawner" type="Node3D" parent="."]
script = ExtResource("3_xxi2i")
object_to_spawn = ExtResource("2_v34ds")
[node name="CSGMesh3D" type="CSGMesh3D" parent="."]
mesh = SubResource("PlaneMesh_uelfv")
[node name="StaticBody3D" type="StaticBody3D" parent="CSGMesh3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="CSGMesh3D/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
shape = SubResource("BoxShape3D_vbj2x")
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
use_collision = true
[node name="Box" type="CSGBox3D" parent="CSGCombiner3D"]
[node name="Box5" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.37539, 1.21157, -5.02753)
[node name="Box2" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.5, 0.5)
[node name="Box4" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.06635, 1.17009, -1.15682)
size = Vector3(1, 1, 4.31364)
[node name="Box3" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.15636, 1.09924, 0.824171)
size = Vector3(3.28895, 0.716575, 1)

View File

@@ -0,0 +1,34 @@
[gd_resource type="Environment" load_steps=4 format=3 uid="uid://b8fqed8jo6yqj"]
[ext_resource type="CompressedTexture3D" uid="uid://bus418i6c6y3w" path="res://luts/lut_saturated.png" id="1_3f5y7"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_rxwic"]
sky_top_color = Color(0.317647, 0.415686, 0.643137, 1)
sky_horizon_color = Color(0.878431, 0.929412, 1, 1)
ground_bottom_color = Color(0.439216, 0.290196, 0.239216, 1)
ground_horizon_color = Color(0.988235, 0.890196, 0.823529, 1)
sun_angle_max = 0.0
sun_curve = 1e-05
[sub_resource type="Sky" id="Sky_wbc5y"]
sky_material = SubResource("ProceduralSkyMaterial_rxwic")
[resource]
background_mode = 2
sky = SubResource("Sky_wbc5y")
tonemap_mode = 2
tonemap_white = 6.0
ssao_enabled = true
ssao_ao_channel_affect = 1.0
sdfgi_use_occlusion = true
sdfgi_bounce_feedback = 0.9
glow_enabled = true
glow_levels/4 = 1.0
glow_levels/6 = 1.0
glow_levels/7 = 1.0
glow_blend_mode = 4
fog_sun_scatter = 0.5
fog_aerial_perspective = 0.9
volumetric_fog_albedo = Color(0.960784, 0.984314, 1, 1)
adjustment_enabled = true
adjustment_color_correction = ExtResource("1_3f5y7")