reversed tubes on the hub, other hub world tweaks
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=4 uid="uid://otkecr0hcyon"]
|
||||
[gd_scene load_steps=26 format=4 uid="uid://otkecr0hcyon"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bj1y0fbjtul4a" path="res://post_processing.tscn" id="1_48lr2"]
|
||||
[ext_resource type="PackedScene" uid="uid://drwae3loscbw7" path="res://assets/player.tscn" id="1_ibypk"]
|
||||
@@ -16,6 +16,9 @@
|
||||
[ext_resource type="PackedScene" uid="uid://eujx0yilqqcp" path="res://assets/level_sign.tscn" id="13_ng05k"]
|
||||
[ext_resource type="PackedScene" uid="uid://bcmd7elfjhppe" path="res://assets/tree_1.tscn" id="15_mucqr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyhvgk0vnb8ir" path="res://assets/Models/TerrainAlbedo.exr" id="16_h075e"]
|
||||
[ext_resource type="PackedScene" uid="uid://bycbdb5u5ewgl" path="res://assets/tree_2.tscn" id="17_0m8yy"]
|
||||
[ext_resource type="PackedScene" uid="uid://20csd6dmwj4y" path="res://assets/jump_platform.tscn" id="18_e0i8x"]
|
||||
[ext_resource type="PackedScene" uid="uid://c6bpysq1tjhy4" path="res://vendingmahcine.tscn" id="19_brrhm"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_v0ka4"]
|
||||
length = 0.001
|
||||
@@ -134,7 +137,6 @@ gamemode = ExtResource("2_pxx7p")
|
||||
|
||||
[node name="Realtime Day Night Cycle" parent="." instance=ExtResource("3_cyqa2")]
|
||||
transform = Transform3D(-0.513781, 0, -0.857921, 0, 1, 0, 0.857921, 0, -0.513781, 0, 0, 0)
|
||||
realtime = false
|
||||
set_time = 12.0
|
||||
|
||||
[node name="LEVEL UTILS" type="Node" parent="."]
|
||||
@@ -276,64 +278,40 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.6736, 6.57787, -17.6494)
|
||||
[node name="Tubes" type="Node3D" parent="."]
|
||||
|
||||
[node name="Scene Changer" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.07024, -64.2195, -11.6417)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.07024, 121.128, -16.6069)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.1473, -116.532, 0.926201)
|
||||
|
||||
[node name="Scene Changer2" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.07024, -64.2195, -19.1273)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.82225, 121.128, -28.4086)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer2" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -1.75876, -116.862, 0.36809)
|
||||
|
||||
[node name="Scene Changer3" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.07024, -64.2195, -27.1599)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.5162, 121.128, -37.3171)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer3" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -1.84139, -117.121, -0.559673)
|
||||
|
||||
[node name="Scene Changer4" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.07024, -64.2195, -34.7607)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.67952, 121.128, -39.1949)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer4" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
transform = Transform3D(-0.104893, 0, -0.994484, 0, 1, 0, 0.994484, 0, -0.104893, 2.5791, -118.774, 0.193653)
|
||||
|
||||
[node name="Scene Changer5" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.07024, -64.2195, -42.1311)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.5486, 121.128, -28.3873)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer5" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
transform = Transform3D(0.000872742, 0, -1, 0, 1, 0, 1, 0, 0.000872742, 1.24594, -119.116, 0.455086)
|
||||
|
||||
[node name="Scene Changer6" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 9.17812, -64.2195, -42.2864)
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 10.4383, 121.128, -17.0011)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer6" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
|
||||
[node name="Scene Changer7" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 9.21706, -64.2195, -34.8009)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer7" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
|
||||
[node name="Scene Changer8" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 9.25883, -64.2195, -26.7684)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer8" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
|
||||
[node name="Scene Changer9" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 9.29837, -64.2195, -19.1677)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer9" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
|
||||
[node name="Scene Changer10" parent="Tubes" instance=ExtResource("11_titu4")]
|
||||
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 9.3367, -64.2195, -11.7974)
|
||||
|
||||
[node name="Level Sign" parent="Tubes/Scene Changer10" instance=ExtResource("13_ng05k")]
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.91949, 65.7011, -0.162403)
|
||||
transform = Transform3D(-0.00479963, 0, 0.999989, 0, 1, 0, -0.999989, 0, -0.00479963, -2.059, -119.116, -0.128061)
|
||||
|
||||
[node name="Tree1" parent="." instance=ExtResource("15_mucqr")]
|
||||
transform = Transform3D(2.32459, 0, 3.49204, 0, 4.195, 0, -3.49204, 0, 2.32459, -4.84405, 0.460491, 9.93028)
|
||||
@@ -348,3 +326,37 @@ transform = Transform3D(-1.13165, 0, -4.03948, 0, 4.195, 0, 4.03948, 0, -1.13165
|
||||
transform = Transform3D(5000, 0, 0, 0, 5000, 0, 0, 0, 5000, 808.771, -59.62, 108.786)
|
||||
mesh = SubResource("ArrayMesh_2pdmy")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="Tree4" parent="." instance=ExtResource("17_0m8yy")]
|
||||
transform = Transform3D(0.410609, 0, 0.285307, 0, 0.5, 0, -0.285307, 0, 0.410609, 9.59042, -0.23711, 2.98266)
|
||||
|
||||
[node name="Tree5" parent="." instance=ExtResource("17_0m8yy")]
|
||||
transform = Transform3D(0.603596, 0, 0.419401, 0, 0.735, 0, -0.419401, 0, 0.603596, 0.373024, -0.23711, -21.8524)
|
||||
|
||||
[node name="JumpPlatform" parent="." instance=ExtResource("18_e0i8x")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 9.367, -0.108128, -37.9591)
|
||||
jump_amount = 125
|
||||
|
||||
[node name="JumpPlatform2" parent="." instance=ExtResource("18_e0i8x")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 9.367, -0.108128, -28.0669)
|
||||
jump_amount = 125
|
||||
|
||||
[node name="JumpPlatform3" parent="." instance=ExtResource("18_e0i8x")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 9.367, -0.108128, -16.5705)
|
||||
jump_amount = 125
|
||||
|
||||
[node name="JumpPlatform4" parent="." instance=ExtResource("18_e0i8x")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -9.39259, -0.108128, -37.9591)
|
||||
jump_amount = 125
|
||||
|
||||
[node name="JumpPlatform5" parent="." instance=ExtResource("18_e0i8x")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -9.39259, -0.108128, -28.0669)
|
||||
jump_amount = 125
|
||||
|
||||
[node name="JumpPlatform6" parent="." instance=ExtResource("18_e0i8x")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -9.39259, -0.108128, -16.5705)
|
||||
jump_amount = 125
|
||||
|
||||
[node name="vendingmachine" parent="." instance=ExtResource("19_brrhm")]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 15.7521, -0.13327, -23.4152)
|
||||
item_name = "revolver"
|
||||
|
||||
10
assets/level_bounds.tscn
Normal file
10
assets/level_bounds.tscn
Normal file
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://24slv0pyxcd5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bdxonkxnmxe6n" path="res://scripts/level_bounds.gd" id="1_k48kn"]
|
||||
|
||||
[node name="LevelBounds" type="Area3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 4
|
||||
script = ExtResource("1_k48kn")
|
||||
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
18
assets/materials/FrostedGlass.tres
Normal file
18
assets/materials/FrostedGlass.tres
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=5 format=3 uid="uid://bb0beroi2p3gd"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://igy6srcqsvi8" path="res://assets/materials/frostedGlass.gdshader" id="1_thve0"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_thve0"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_748hl"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_0bs8y"]
|
||||
color_ramp = SubResource("Gradient_thve0")
|
||||
noise = SubResource("FastNoiseLite_748hl")
|
||||
|
||||
[resource]
|
||||
shader = ExtResource("1_thve0")
|
||||
shader_parameter/warp_texture = SubResource("NoiseTexture2D_0bs8y")
|
||||
shader_parameter/intensity = 0.01
|
||||
shader_parameter/tint_color = Color(0, 0, 0, 0)
|
||||
shader_parameter/tint_amount = 0.4
|
||||
29
assets/materials/frostedGlass.gdshader
Normal file
29
assets/materials/frostedGlass.gdshader
Normal file
@@ -0,0 +1,29 @@
|
||||
shader_type canvas_item;
|
||||
|
||||
// mipmap is neaded for textureLod
|
||||
uniform sampler2D screen_texture: hint_screen_texture, repeat_disable, filter_nearest_mipmap;
|
||||
// works better as a normal with warping
|
||||
uniform sampler2D warp_texture: repeat_enable;
|
||||
|
||||
uniform float intensity: hint_range(0.0, 0.3) = 0.01;
|
||||
uniform vec4 tint_color: source_color = vec4(0.0, 0.0, 0.0, 1.0);
|
||||
uniform float tint_amount: hint_range(0.0, 1.0) = 0.4;
|
||||
|
||||
void fragment() {
|
||||
// get our normal warp
|
||||
vec2 warp = texture(warp_texture, UV).xy - 0.5;
|
||||
// sample based on warp and intensity and blur based on intensity
|
||||
vec4 screen = textureLod(screen_texture, UV + warp * intensity, intensity * 4.0);
|
||||
// tint our image
|
||||
screen = mix(screen, tint_color, tint_amount);
|
||||
// get a random-ish value for some speckle noise
|
||||
float noise = fract(sin(dot(UV, vec2(12.9898, 78.233))) * 43758.5453);
|
||||
// light diffusion for glass shape highlights
|
||||
float diff = max(dot(warp, normalize(vec2(1.0, 1.0))), 0.0);
|
||||
// apply diffusion based on intensity
|
||||
screen += diff * intensity;
|
||||
// apply speckle noise based on intensity
|
||||
screen += noise * intensity;
|
||||
// yarp
|
||||
COLOR = screen;
|
||||
}
|
||||
1
assets/materials/frostedGlass.gdshader.uid
Normal file
1
assets/materials/frostedGlass.gdshader.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://igy6srcqsvi8
|
||||
@@ -1,11 +1,39 @@
|
||||
[gd_resource type="StandardMaterial3D" format=3 uid="uid://hg5phpsguoh5"]
|
||||
[gd_resource type="StandardMaterial3D" load_steps=7 format=3 uid="uid://hg5phpsguoh5"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_wmskm"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_cprqi"]
|
||||
noise_type = 2
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_twkyn"]
|
||||
width = 1024
|
||||
height = 1024
|
||||
as_normal_map = true
|
||||
color_ramp = SubResource("Gradient_wmskm")
|
||||
noise = SubResource("FastNoiseLite_cprqi")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_vbylo"]
|
||||
offsets = PackedFloat32Array(0.42069, 0.993103, 1)
|
||||
colors = PackedColorArray(0, 0, 0, 1, 0.926175, 0.926175, 0.926175, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_wmskm"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_cprqi"]
|
||||
width = 1024
|
||||
height = 1024
|
||||
seamless = true
|
||||
color_ramp = SubResource("Gradient_vbylo")
|
||||
noise = SubResource("FastNoiseLite_wmskm")
|
||||
|
||||
[resource]
|
||||
transparency = 1
|
||||
cull_mode = 2
|
||||
albedo_color = Color(0.6364, 0.763107, 0.86, 0.352941)
|
||||
albedo_color = Color(0.1782, 0.55728, 0.81, 0.568627)
|
||||
metallic = 1.0
|
||||
roughness = 0.0
|
||||
backlight_enabled = true
|
||||
metallic_specular = 1.0
|
||||
roughness_texture = SubResource("NoiseTexture2D_cprqi")
|
||||
normal_enabled = true
|
||||
normal_scale = 0.1
|
||||
normal_texture = SubResource("NoiseTexture2D_twkyn")
|
||||
backlight = Color(1, 1, 1, 1)
|
||||
refraction_enabled = true
|
||||
uv1_scale = Vector3(0.08, 0.08, 0.08)
|
||||
uv1_triplanar = true
|
||||
|
||||
Reference in New Issue
Block a user