generated from krampus/template-godot4
129 lines
9.4 KiB
Plaintext
129 lines
9.4 KiB
Plaintext
[gd_scene load_steps=21 format=3 uid="uid://oowut88kr2ox"]
|
|
|
|
[ext_resource type="Script" uid="uid://lfd36ps52xgk" path="res://levels/ghost_ship/player_ship/player_ship.gd" id="1_0r2ng"]
|
|
[ext_resource type="ArrayMesh" uid="uid://dq4aj5ph31rce" path="res://assets/level/player_ship/player_ship.obj" id="1_nafoa"]
|
|
[ext_resource type="Texture2D" uid="uid://cg6dpd6dhcowu" path="res://assets/level/player_ship/tank_facade_C.png" id="2_xgclp"]
|
|
[ext_resource type="Texture2D" uid="uid://duo8ph784g4gd" path="res://assets/level/player_ship/tank_facade_M.png" id="3_e4hmc"]
|
|
[ext_resource type="Texture2D" uid="uid://ccnk8eicahcw8" path="res://assets/level/player_ship/tank_facade_N.png" id="4_0r2ng"]
|
|
[ext_resource type="Texture2D" uid="uid://dv2876ywyq6rf" path="res://assets/level/player_ship/tank_facade_R.png" id="5_22nd2"]
|
|
[ext_resource type="Script" uid="uid://deg5xd87cy8rg" path="res://src/props/interactive.gd" id="6_e4hmc"]
|
|
[ext_resource type="ArrayMesh" uid="uid://djgqnuxrja1mo" path="res://assets/level/player_ship/player_ship_tank_facade.obj" id="8_2mvif"]
|
|
[ext_resource type="Shader" uid="uid://ckxc0ngd37rtk" path="res://src/shaders/gunk.gdshader" id="8_al8ma"]
|
|
[ext_resource type="ArrayMesh" uid="uid://bc8457r4rxpey" path="res://assets/level/player_ship/grunk_liquid.obj" id="8_xuj2g"]
|
|
[ext_resource type="Texture2D" uid="uid://cm1jrvx7ftx4c" path="res://assets/black.png" id="9_xuj2g"]
|
|
[ext_resource type="FastNoiseLite" uid="uid://cnlvdtx68giv6" path="res://assets/materials/gunk_noise.tres" id="10_2mvif"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xpsdy"]
|
|
transparency = 1
|
|
albedo_texture = ExtResource("2_xgclp")
|
|
metallic = 1.0
|
|
metallic_texture = ExtResource("3_e4hmc")
|
|
roughness_texture = ExtResource("5_22nd2")
|
|
normal_enabled = true
|
|
normal_texture = ExtResource("4_0r2ng")
|
|
texture_filter = 2
|
|
|
|
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_nafoa"]
|
|
data = PackedVector3Array(2.5, 1, 5.5, 2.5, 1, -4.5001, 2.5, 2, 5.5, 2.5, 2, 5.5, 2.5, 1, -4.5001, 2.5, 2, -4.5001, 1.5, 3, 4.4999, 1.5, 3, -4.5001, -1.5, 3, 4.4999, -1.5, 3, 4.4999, 1.5, 3, -4.5001, -1.5, 3, -4.5001, -1.5, 3, -4.5001, 1.5, 3, -4.5001, -0.625, 3, -4.5001, -0.625, 3, -4.5001, 1.5, 3, -4.5001, 0.625, 3, -4.5001, -2.5, 1, -4.5001, -2.5, 1, 5.5, -2.5, 2, -4.5001, -2.5, 2, -4.5001, -2.5, 1, 5.5, -2.5, 2, 5.5, 2.5, 1, -4.5001, 1.5, 0, -4.5001, 2.5, 2, -4.5001, 2.5, 2, -4.5001, 1.5, 0, -4.5001, 1.5, 3, -4.5001, 0.625, 0, -4.5001, 1.5, 3, -4.5001, 1.5, 0, -4.5001, 0.625, 2.5, -4.5001, 1.5, 3, -4.5001, 0.625, 0, -4.5001, 0.625, 3, -4.5001, 1.5, 3, -4.5001, 0.625, 2.5, -4.5001, 0.625, 2.5, -4.5001, -0.625, 2.5, -4.5001, 0.625, 3, -4.5001, 0.625, 3, -4.5001, -0.625, 2.5, -4.5001, -0.625, 3, -4.5001, -0.625, 3, -4.5001, -0.625, 2.5, -4.5001, -1.5, 3, -4.5001, -1.5, 3, -4.5001, -0.625, 2.5, -4.5001, -1.5, 0, -4.5001, -1.5, 0, -4.5001, -0.625, 2.5, -4.5001, -0.625, 0, -4.5001, -1.5, 0, -4.5001, -2.5, 1, -4.5001, -1.5, 3, -4.5001, -1.5, 3, -4.5001, -2.5, 1, -4.5001, -2.5, 2, -4.5001, -2.5, 1, -4.5001, -1.5, 0, -4.5001, -2.5, 1, 5.5, -2.5, 1, 5.5, -1.5, 0, -4.5001, -1.5, 0, 4.4999, -2.5, 2, 5.5, -1.5, 3, 4.4999, -2.5, 2, -4.5001, -2.5, 2, -4.5001, -1.5, 3, 4.4999, -1.5, 3, -4.5001, 2.5, 1, 5.5, 1.5, 0, 4.4999, 2.5, 1, -4.5001, 2.5, 1, -4.5001, 1.5, 0, 4.4999, 1.5, 0, -4.5001, 2.5, 2, -4.5001, 1.5, 3, -4.5001, 2.5, 2, 5.5, 2.5, 2, 5.5, 1.5, 3, -4.5001, 1.5, 3, 4.4999, -1.5, 0, 4.4999, -1.5, 0, -4.5001, 1.5, 0, 4.4999, 1.5, 0, 4.4999, -1.5, 0, -4.5001, 1.5, 0, -4.5001, 1.5, 0, -4.5001, -1.5, 0, -4.5001, 0.625, 0, -4.5001, 0.625, 0, -4.5001, -1.5, 0, -4.5001, -0.625, 0, -4.5001, 0.625, 0, -4.5001, -0.625, 0, -4.5001, 0.625, 0, -4.75, 0.625, 0, -4.75, -0.625, 0, -4.5001, -0.625, 0, -4.75, -0.625, 2.5, -4.5001, 0.625, 2.5, -4.5001, -0.625, 2.5, -4.75, -0.625, 2.5, -4.75, 0.625, 2.5, -4.5001, 0.625, 2.5, -4.75, -0.625, 0, -4.5001, -0.625, 2.5, -4.5001, -0.625, 0, -4.75, -0.625, 0, -4.75, -0.625, 2.5, -4.5001, -0.625, 2.5, -4.75, 0.625, 2.5, -4.5001, 0.625, 0, -4.5001, 0.625, 2.5, -4.75, 0.625, 2.5, -4.75, 0.625, 0, -4.5001, 0.625, 0, -4.75, -1.5, 3, 4.5, -2.5, 2, 5.5, -1.5, 3, 7.5, -1.5, 3, 7.5, -2.5, 2, 5.5, -2.5, 2, 7.5, -1.5, 0, 7.5, 1.5, 0, 7.5, -2.5, 1, 7.5, -2.5, 1, 7.5, 1.5, 0, 7.5, -2.5, 2, 7.5, -2.5, 2, 7.5, 1.5, 0, 7.5, -1.5, 3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, -4.75, 0.625, 2.5, -4.75, 1.25, 3, -4.75, -0.625, 2.5, -4.75, -0.625, 2.5, -4.75, 1.25, 3, -4.75, -1.25, 2.5, -4.75, -1.25, 2.5, -4.75, 1.25, 3, -4.75, -1.25, 3, -4.75, -1.25, 0, -4.75, -0.625, 2.5, -4.75, -1.25, 2.5, -4.75, -0.625, 0, -4.75, -0.625, 2.5, -4.75, -1.25, 0, -4.75, -1.25, 2.5, -4.75, -1.25, 3, -4.75, -1.25, 0, -4.75, -1.25, 0, -4.75, -1.25, 3, -4.75, -1.25, 0, -6.75, -1.25, 0, -6.75, -1.25, 3, -4.75, -1.25, 3, -6.75, -1.25, 3, -4.75, 1.25, 3, -4.75, -1.25, 3, -6.75, -1.25, 3, -6.75, 1.25, 3, -4.75, 1.25, 3, -6.75, 1.25, 0, -4.75, 0.625, 0, -4.75, 1.25, 0, -6.75, 1.25, 0, -6.75, 0.625, 0, -4.75, -1.25, 0, -6.75, -1.25, 0, -6.75, 0.625, 0, -4.75, -1.25, 0, -4.75, -1.25, 0, -4.75, 0.625, 0, -4.75, -0.625, 0, -4.75, 1.25, 2.5, -4.75, 1.25, 0, -4.75, 1.25, 3, -4.75, 1.25, 3, -4.75, 1.25, 0, -4.75, 1.25, 3, -6.75, 1.25, 3, -6.75, 1.25, 0, -4.75, 1.25, 0, -6.75)
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_e4hmc"]
|
|
radius = 0.3
|
|
|
|
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_2roq2"]
|
|
width = 256
|
|
height = 256
|
|
depth = 32
|
|
seamless = true
|
|
seamless_blend_skirt = 0.5
|
|
noise = ExtResource("10_2mvif")
|
|
|
|
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_fk1xc"]
|
|
width = 256
|
|
height = 256
|
|
depth = 32
|
|
seamless = true
|
|
seamless_blend_skirt = 0.5
|
|
noise = ExtResource("10_2mvif")
|
|
|
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_7fplw"]
|
|
frequency = 0.0703
|
|
|
|
[sub_resource type="NoiseTexture3D" id="NoiseTexture3D_omayi"]
|
|
width = 32
|
|
height = 32
|
|
depth = 128
|
|
noise = SubResource("FastNoiseLite_7fplw")
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3trrp"]
|
|
resource_local_to_scene = true
|
|
render_priority = 0
|
|
shader = ExtResource("8_al8ma")
|
|
shader_parameter/color_1 = Color(0, 0.03, 0.1, 1)
|
|
shader_parameter/color_2 = Color(0, 0.1, 0.3, 1)
|
|
shader_parameter/emission_color = Color(0.25, 0.88, 1, 1)
|
|
shader_parameter/pixellation = 128.0
|
|
shader_parameter/time_pixellation = 30.0
|
|
shader_parameter/roughness = 0.15
|
|
shader_parameter/specular_contribution = 0.8
|
|
shader_parameter/emission_strength = 0.02
|
|
shader_parameter/uv_scale = Vector2(2, 2)
|
|
shader_parameter/time_scale = 0.2
|
|
shader_parameter/edge_bleed = 0.25
|
|
shader_parameter/gunk_mask = ExtResource("9_xuj2g")
|
|
shader_parameter/gunk_noise = SubResource("NoiseTexture3D_2roq2")
|
|
shader_parameter/gunk_normal_map = SubResource("NoiseTexture3D_fk1xc")
|
|
shader_parameter/jitter_magnitude = 0.1
|
|
shader_parameter/jitter_time_scale = 0.1
|
|
shader_parameter/jitter_noise = SubResource("NoiseTexture3D_omayi")
|
|
shader_parameter/vertex_inflation = 0.0
|
|
shader_parameter/inflation_pixellation = 10.0
|
|
|
|
[node name="PlayerShip" type="Node3D"]
|
|
script = ExtResource("1_0r2ng")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
|
collision_layer = 5
|
|
|
|
[node name="PlayerShipMesh" type="MeshInstance3D" parent="StaticBody3D"]
|
|
sorting_offset = 3.0
|
|
mesh = ExtResource("1_nafoa")
|
|
|
|
[node name="TankFacadeMesh" type="MeshInstance3D" parent="StaticBody3D"]
|
|
mesh = ExtResource("8_2mvif")
|
|
skeleton = NodePath("../..")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_xpsdy")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
|
shape = SubResource("ConcavePolygonShape3D_nafoa")
|
|
|
|
[node name="TankInteractor" type="StaticBody3D" parent="."]
|
|
unique_name_in_owner = true
|
|
collision_layer = 2
|
|
collision_mask = 0
|
|
script = ExtResource("6_e4hmc")
|
|
label = "GRUNK TANK"
|
|
verb = "deposit"
|
|
metadata/_custom_type_script = "uid://deg5xd87cy8rg"
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="TankInteractor"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.85, 1.35, 4.5)
|
|
shape = SubResource("SphereShape3D_e4hmc")
|
|
|
|
[node name="LiquidOffset" type="Node3D" parent="."]
|
|
transform = Transform3D(0.95, 0, 0, 0, 0.95, 0, 0, 0, 0.95, 0, -2.8, 6)
|
|
|
|
[node name="GrunkLiquid" type="MeshInstance3D" parent="LiquidOffset"]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
|
mesh = ExtResource("8_xuj2g")
|
|
skeleton = NodePath("../..")
|
|
surface_material_override/0 = SubResource("ShaderMaterial_3trrp")
|
|
|
|
[node name="OmniLight3D" type="OmniLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.9, 0)
|
|
light_energy = 2.0
|
|
light_indirect_energy = 8.0
|
|
omni_range = 10.0
|
|
|
|
[connection signal="activated" from="TankInteractor" to="." method="deposit_grunk"]
|