grunk/levels/sandbox/sandbox.tscn

139 lines
75 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=23 format=3 uid="uid://16ds4fvv72xk"]
2025-02-28 15:20:52 -07:00
[ext_resource type="PackedScene" uid="uid://c2omlx4ptrc01" path="res://src/world/gunk_body/gunk_body.tscn" id="1_a67lu"]
2025-02-28 15:20:52 -07:00
[ext_resource type="PackedScene" uid="uid://bwe2jdmvinhqd" path="res://src/player/player.tscn" id="1_h436a"]
2025-03-01 14:40:02 -07:00
[ext_resource type="ArrayMesh" uid="uid://lvats6ptrcxt" path="res://assets/props/icosahedron/icosahedron.obj" id="1_kvwui"]
[ext_resource type="Shader" path="res://src/shaders/gunk.gdshader" id="2_utxkh"]
[ext_resource type="Material" uid="uid://byyjoruj8mwe0" path="res://levels/sandbox/debug_gunk_mat.tres" id="3_o7v4k"]
[ext_resource type="ArrayMesh" uid="uid://e6syamfwiitk" path="res://assets/props/monkey/monkey.obj" id="4_o55bf"]
2025-02-28 15:20:52 -07:00
[sub_resource type="Environment" id="Environment_cc548"]
background_mode = 1
2025-03-01 14:40:02 -07:00
ambient_light_source = 2
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_energy = 0.03
2025-02-28 15:20:52 -07:00
tonemap_mode = 3
fog_enabled = true
fog_light_color = Color(0, 0, 0, 1)
fog_density = 0.2
[sub_resource type="PlaneMesh" id="PlaneMesh_4afx3"]
size = Vector2(50, 50)
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_c8g65"]
[sub_resource type="BoxMesh" id="BoxMesh_mer5b"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hx5n6"]
[sub_resource type="CylinderMesh" id="CylinderMesh_a1koa"]
top_radius = 1.0
bottom_radius = 1.0
height = 4.0
[sub_resource type="CylinderShape3D" id="CylinderShape3D_uo57d"]
height = 4.0
radius = 1.0
2025-03-01 14:40:02 -07:00
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_nxc47"]
data = PackedVector3Array(0.7236, -0.4472, 0.5257, 0, -1, 0, -0.2764, -0.4472, 0.8506, 0, -1, 0, 0.7236, -0.4472, 0.5257, 0.7236, -0.4472, -0.5257, -0.2764, -0.4472, 0.8506, 0, -1, 0, -0.8944, -0.4472, 0, -0.8944, -0.4472, 0, 0, -1, 0, -0.2764, -0.4472, -0.8506, -0.2764, -0.4472, -0.8506, 0, -1, 0, 0.7236, -0.4472, -0.5257, 0.7236, -0.4472, -0.5257, 0.7236, -0.4472, 0.5257, 0.8944, 0.4472, 0, 0.7236, -0.4472, 0.5257, -0.2764, -0.4472, 0.8506, 0.2764, 0.4472, 0.8506, -0.2764, -0.4472, 0.8506, -0.8944, -0.4472, 0, -0.7236, 0.4472, 0.5257, -0.8944, -0.4472, 0, -0.2764, -0.4472, -0.8506, -0.7236, 0.4472, -0.5257, -0.2764, -0.4472, -0.8506, 0.7236, -0.4472, -0.5257, 0.2764, 0.4472, -0.8506, 0.8944, 0.4472, 0, 0.7236, -0.4472, 0.5257, 0.2764, 0.4472, 0.8506, 0.2764, 0.4472, 0.8506, -0.2764, -0.4472, 0.8506, -0.7236, 0.4472, 0.5257, -0.7236, 0.4472, 0.5257, -0.8944, -0.4472, 0, -0.7236, 0.4472, -0.5257, -0.7236, 0.4472, -0.5257, -0.2764, -0.4472, -0.8506, 0.2764, 0.4472, -0.8506, 0.2764, 0.4472, -0.8506, 0.7236, -0.4472, -0.5257, 0.8944, 0.4472, 0, 0.8944, 0.4472, 0, 0.2764, 0.4472, 0.8506, 0, 1, 0, 0.2764, 0.4472, 0.8506, -0.7236, 0.4472, 0.5257, 0, 1, 0, -0.7236, 0.4472, 0.5257, -0.7236, 0.4472, -0.5257, 0, 1, 0, -0.7236, 0.4472, -0.5257, 0.2764, 0.4472, -0.8506, 0, 1, 0, 0.2764, 0.4472, -0.8506, 0.8944, 0.4472, 0, 0, 1, 0)
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_whjd0"]
size = Vector2(256, 256)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_jkyxy"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_lu8il"]
seamless = true
noise = SubResource("FastNoiseLite_jkyxy")
[sub_resource type="FastNoiseLite" id="FastNoiseLite_pownp"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_giaip"]
seamless = true
as_normal_map = true
noise = SubResource("FastNoiseLite_pownp")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_x87q2"]
render_priority = 0
shader = ExtResource("2_utxkh")
shader_parameter/color_1 = Color(0, 0.03, 0.1, 1)
shader_parameter/color_2 = Color(0, 0.1, 0.3, 1)
shader_parameter/roughness = 0.15
shader_parameter/specular_contribution = 0.2
shader_parameter/gunk_mask = SubResource("PlaceholderTexture2D_whjd0")
shader_parameter/gunk_noise = SubResource("NoiseTexture2D_lu8il")
shader_parameter/gunk_normal_map = SubResource("NoiseTexture2D_giaip")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7cwtv"]
next_pass = SubResource("ShaderMaterial_x87q2")
albedo_color = Color(1, 0.403922, 1, 1)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_hvf6a"]
data = PackedVector3Array(0.4375, 0.164, 0.7656, 0.4687, 0.2422, 0.7578, 0.5, 0.0937, 0.6875, 0.5, 0.0937, 0.6875, 0.4687, 0.2422, 0.7578, 0.5625, 0.2422, 0.6719, -0.4375, 0.164, 0.7656, -0.5, 0.0937, 0.6875, -0.4688, 0.2422, 0.7578, -0.4688, 0.2422, 0.7578, -0.5, 0.0937, 0.6875, -0.5625, 0.2422, 0.6719, 0.5, 0.0937, 0.6875, 0.5625, 0.2422, 0.6719, 0.5469, 0.0547, 0.5781, 0.5469, 0.0547, 0.5781, 0.5625, 0.2422, 0.6719, 0.625, 0.2422, 0.5625, -0.5, 0.0937, 0.6875, -0.5469, 0.0547, 0.5781, -0.5625, 0.2422, 0.6719, -0.5625, 0.2422, 0.6719, -0.5469, 0.0547, 0.5781, -0.625, 0.2422, 0.5625, 0.3515, 0.0312, 0.7187, 0.5, 0.0937, 0.6875, 0.3515, -0.0234, 0.6172, 0.3515, -0.0234, 0.6172, 0.5, 0.0937, 0.6875, 0.5469, 0.0547, 0.5781, -0.3516, 0.0312, 0.7187, -0.3516, -0.0234, 0.6172, -0.5, 0.0937, 0.6875, -0.5, 0.0937, 0.6875, -0.3516, -0.0234, 0.6172, -0.5469, 0.0547, 0.5781, 0.3515, 0.1328, 0.7812, 0.4375, 0.164, 0.7656, 0.3515, 0.0312, 0.7187, 0.3515, 0.0312, 0.7187, 0.4375, 0.164, 0.7656, 0.5, 0.0937, 0.6875, -0.3516, 0.1328, 0.7812, -0.3516, 0.0312, 0.7187, -0.4375, 0.164, 0.7656, -0.4375, 0.164, 0.7656, -0.3516, 0.0312, 0.7187, -0.5, 0.0937, 0.6875, 0.2734, 0.164, 0.7969, 0.3515, 0.1328, 0.7812, 0.2031, 0.0937, 0.7422, 0.2031, 0.0937, 0.7422, 0.3515, 0.1328, 0.7812, 0.3515, 0.0312, 0.7187, -0.2735, 0.164, 0.7969, -0.2031, 0.0937, 0.7422, -0.3516, 0.1328, 0.7812, -0.3516, 0.1328, 0.7812, -0.2031, 0.0937, 0.7422, -0.3516, 0.0312, 0.7187, 0.2031, 0.0937, 0.7422, 0.3515, 0.0312, 0.7187, 0.1562, 0.0547, 0.6484, 0.1562, 0.0547, 0.6484, 0.3515, 0.0312, 0.7187, 0.3515, -0.0234, 0.6172, -0.2031, 0.0937, 0.7422, -0.1563, 0.0547, 0.6484, -0.3516, 0.0312, 0.7187, -0.3516, 0.0312, 0.7187, -0.1563, 0.0547, 0.6484, -0.3516, -0.0234, 0.6172, 0.1406, 0.2422, 0.7422, 0.2031, 0.0937, 0.7422, 0.0781, 0.2422, 0.6562, 0.0781, 0.2422, 0.6562, 0.2031, 0.0937, 0.7422, 0.1562, 0.0547, 0.6484, -0.1406, 0.2422, 0.7422, -0.0781, 0.2422, 0.6562, -0.2031, 0.0937, 0.7422, -0.2031, 0.0937, 0.7422, -0.0781, 0.2422, 0.6562, -0.1563, 0.0547, 0.6484, 0.2422, 0.2422, 0.7969, 0.2734, 0.164, 0.7969, 0.1406, 0.2422, 0.7422, 0.1406, 0.2422, 0.7422, 0.2734, 0.164, 0.7969, 0.2031, 0.0937, 0.7422, -0.2422, 0.2422, 0.7969, -0.1406, 0.2422, 0.7422, -0.2735, 0.164, 0.7969, -0.2735, 0.164, 0.7969, -0.1406, 0.2422, 0.7422, -0.2031, 0.0937, 0.7422, 0.2734, 0.3281, 0.7969, 0.2422, 0.2422, 0.7969, 0.2031, 0.3906, 0.7422, 0.2031, 0.3906, 0.7422, 0.2422, 0.2422, 0.7969, 0.1406, 0.2422, 0.7422, -0.2735, 0.3281, 0.7969, -0.2031, 0.3906, 0.7422, -0.2422, 0.2422, 0.7969, -0.2422, 0.2422, 0.7969, -0.2031, 0.3906, 0.7422, -0.1406, 0.2422, 0.7422, 0.2031, 0.3906, 0.7422, 0.1406, 0.2422, 0.7422, 0.1562, 0.4375, 0.6484, 0.1562, 0.4375, 0.6484, 0.1406, 0.2422, 0.7422, 0.0781, 0.2422, 0.6562, -0.2031, 0.3906, 0.7422, -0.1563, 0.4375, 0.6484, -0.1406, 0.2422, 0.7422, -0.1406, 0.2422, 0.7422, -0.1563, 0.4375, 0.6484, -0.0781, 0.2422, 0.6562, 0.3515, 0.4531, 0.7187, 0.2031, 0.3906, 0.7422, 0.3515, 0.5156, 0.6172, 0.3515, 0.5156, 0.6172, 0.2031, 0.3906, 0.7422, 0.1562, 0.4375, 0.6484, -0.3516, 0.4531, 0.7187, -0.3516, 0.5156, 0.6172, -0.2031, 0.3906, 0.7422, -0.2031, 0.3906, 0.7422, -0.3516, 0.5156, 0.6172, -0.1563, 0.4375, 0.6484, 0.3515, 0.3594, 0.7812, 0.2734, 0.3281, 0.7969, 0.3515, 0.4531, 0.7187, 0.3515, 0.4531, 0.7187, 0.2734, 0.3281, 0.7969, 0.2031, 0.3906, 0.7422, -0.3516, 0.3594, 0.7812, -0.3516, 0.4531, 0.7187, -0.2735, 0.3281, 0.7969, -0.2735, 0.3281, 0.7969, -0.3516, 0.4531, 0.7187, -0.2031, 0.3906, 0.7422, 0.4375, 0.3281, 0.7656, 0.3515, 0.3594, 0.7812, 0.5, 0.3906, 0.6875, 0.5, 0.3906, 0.6875, 0.3515, 0.3594, 0.7812, 0.3515, 0.4531, 0.7187, -0.4375, 0.3281, 0.7656, -0.5, 0.3906, 0.6875, -0.3516, 0.3594, 0.7812, -0.3516, 0.3594, 0.7812, -0.5, 0.3906, 0.6875, -0.3516, 0.4531, 0.7187, 0.5, 0.3906, 0.6875, 0.3515, 0.4531, 0.7187, 0.5469, 0.4375, 0.5781, 0.5469, 0.4375, 0.5781, 0.3515, 0.4531, 0.7187, 0.3515, 0.5156, 0.6172, -0.5, 0.3906, 0.6875, -0.5469, 0.4375, 0.5781, -0.3516, 0.4531, 0.7187, -0.3516, 0.4531, 0.7187, -0.5469, 0.4375, 0.5781, -0.3516, 0.5156, 0.6172, 0.5625, 0.2422,
2025-02-28 15:20:52 -07:00
[node name="Sandbox" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_cc548")
[node name="SpotLight3D" type="SpotLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 10, 0)
light_energy = 16.0
shadow_enabled = true
spot_range = 20.0
spot_angle_attenuation = 0.05
[node name="Geometry" type="Node3D" parent="."]
[node name="Floor" type="StaticBody3D" parent="Geometry"]
[node name="MeshInstance3D" type="MeshInstance3D" parent="Geometry/Floor"]
mesh = SubResource("PlaneMesh_4afx3")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Geometry/Floor"]
shape = SubResource("WorldBoundaryShape3D_c8g65")
[node name="Box" type="StaticBody3D" parent="Geometry"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0.5, 4)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Geometry/Box"]
mesh = SubResource("BoxMesh_mer5b")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Geometry/Box"]
shape = SubResource("BoxShape3D_hx5n6")
[node name="Cylinder" type="StaticBody3D" parent="Geometry"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 2, -2)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Geometry/Cylinder"]
mesh = SubResource("CylinderMesh_a1koa")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Geometry/Cylinder"]
shape = SubResource("CylinderShape3D_uo57d")
[node name="Icosahedron" parent="Geometry" instance=ExtResource("1_a67lu")]
2025-03-01 14:40:02 -07:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.35498, 1.13294, -2.81423)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Geometry/Icosahedron"]
mesh = ExtResource("1_kvwui")
skeleton = NodePath("../../..")
surface_material_override/0 = ExtResource("3_o7v4k")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Geometry/Icosahedron"]
shape = SubResource("ConcavePolygonShape3D_nxc47")
[node name="Monkey" parent="Geometry" instance=ExtResource("1_a67lu")]
2025-03-01 14:40:02 -07:00
transform = Transform3D(-0.616239, 0, 0.787559, 0, 1, 0, -0.787559, 0, -0.616239, -2.22512, 1.41158, 2.88581)
[node name="MeshInstance3D" type="MeshInstance3D" parent="Geometry/Monkey"]
mesh = ExtResource("4_o55bf")
skeleton = NodePath("")
2025-03-01 14:40:02 -07:00
surface_material_override/0 = SubResource("StandardMaterial3D_7cwtv")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Geometry/Monkey"]
shape = SubResource("ConcavePolygonShape3D_hvf6a")
2025-02-28 15:20:52 -07:00
[node name="Player" parent="." instance=ExtResource("1_h436a")]