more special effects #3

Merged
Brazly merged 2 commits from environment into main 2026-01-13 17:10:20 +00:00
13 changed files with 1452 additions and 4 deletions
Showing only changes of commit 6312be9f50 - Show all commits

1
.gitattributes vendored
View File

@@ -1,3 +1,2 @@
# Normalize EOL for all files that Git considers text files. # Normalize EOL for all files that Git considers text files.
* text=auto eol=lf * text=auto eol=lf
*.glb filter=lfs diff=lfs merge=lfs -text

View File

@@ -0,0 +1,11 @@
shader_type canvas_item;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable;
uniform float saturation : hint_range(0.0, 1.0) = 1.0; // 0 = grayscale, 1 = full color
void fragment() {
vec4 tex = texture(screen_texture, SCREEN_UV);
float gray = dot(tex.rgb, vec3(0.299, 0.587, 0.114)); // luminance weights
vec3 result = mix(vec3(gray), tex.rgb, saturation);
COLOR = vec4(result, tex.a);
}

View File

@@ -0,0 +1 @@
uid://xinbgyk6acog

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=22 format=3 uid="uid://cqtabc6coc58l"] [gd_scene load_steps=25 format=3 uid="uid://cqtabc6coc58l"]
[ext_resource type="Script" uid="uid://dmtpstry0o0a3" path="res://Assets/Scripts/Player Controls/player_movement.gd" id="1_48dl1"] [ext_resource type="Script" uid="uid://dmtpstry0o0a3" path="res://Assets/Scripts/Player Controls/player_movement.gd" id="1_48dl1"]
[ext_resource type="PackedScene" uid="uid://b2mhoeubwtkuo" path="res://Scenes/UI/fade_in_transition.tscn" id="2_cx0fw"] [ext_resource type="PackedScene" uid="uid://b2mhoeubwtkuo" path="res://Scenes/UI/fade_in_transition.tscn" id="2_cx0fw"]
@@ -7,9 +7,15 @@
[ext_resource type="PackedScene" uid="uid://b54u8nvjd4p6l" path="res://Scenes/UI/pause_menu.tscn" id="3_cx0fw"] [ext_resource type="PackedScene" uid="uid://b54u8nvjd4p6l" path="res://Scenes/UI/pause_menu.tscn" id="3_cx0fw"]
[ext_resource type="Script" uid="uid://chb1dyhl7cyg1" path="res://Assets/Scripts/UI/crosshair.gd" id="3_vwrhx"] [ext_resource type="Script" uid="uid://chb1dyhl7cyg1" path="res://Assets/Scripts/UI/crosshair.gd" id="3_vwrhx"]
[ext_resource type="PackedScene" uid="uid://cmyf6lhbn1x6p" path="res://Scenes/Models/Interior/security_office_model.tscn" id="4_vwrhx"] [ext_resource type="PackedScene" uid="uid://cmyf6lhbn1x6p" path="res://Scenes/Models/Interior/security_office_model.tscn" id="4_vwrhx"]
[ext_resource type="Shader" uid="uid://xinbgyk6acog" path="res://Assets/Scripts/Shaders/grayscale.gdshader" id="5_bn2ya"]
[ext_resource type="Script" uid="uid://bfsaxhnb0qpuk" path="res://Assets/Scripts/Misc/flickering_light.gd" id="5_nmbs0"] [ext_resource type="Script" uid="uid://bfsaxhnb0qpuk" path="res://Assets/Scripts/Misc/flickering_light.gd" id="5_nmbs0"]
[ext_resource type="Texture2D" uid="uid://c0qenaw8wxlbv" path="res://Assets/MISC_Textures/DustMote.png" id="6_ayt7b"] [ext_resource type="Texture2D" uid="uid://c0qenaw8wxlbv" path="res://Assets/MISC_Textures/DustMote.png" id="6_ayt7b"]
[ext_resource type="PackedScene" uid="uid://c670wtpi4n22q" path="res://Scenes/UI/terminal.tscn" id="10_gba58"] [ext_resource type="Script" uid="uid://ckagscjkf3iiu" path="res://Assets/Scripts/UI/terminal/terminal_controls.gd" id="10_gba58"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bn2ya"]
resource_local_to_scene = true
shader = ExtResource("5_bn2ya")
shader_parameter/saturation = 0.0
[sub_resource type="Environment" id="Environment_cumm5"] [sub_resource type="Environment" id="Environment_cumm5"]
background_mode = 1 background_mode = 1
@@ -77,6 +83,9 @@ size = Vector3(0.0644531, 0.530029, 0.4646)
[sub_resource type="ViewportTexture" id="ViewportTexture_vwrhx"] [sub_resource type="ViewportTexture" id="ViewportTexture_vwrhx"]
viewport_path = NodePath("Interactables/PC/Sprite3D/SubViewport") viewport_path = NodePath("Interactables/PC/Sprite3D/SubViewport")
[sub_resource type="LabelSettings" id="LabelSettings_nmbs0"]
font_size = 42
[node name="Node3D" type="Node3D"] [node name="Node3D" type="Node3D"]
[node name="PlayerController" type="Node3D" parent="."] [node name="PlayerController" type="Node3D" parent="."]
@@ -121,6 +130,14 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
script = ExtResource("3_vwrhx") script = ExtResource("3_vwrhx")
[node name="ColorRect" type="ColorRect" parent="PlayerController/Camera3D/CanvasLayer"]
material = SubResource("ShaderMaterial_bn2ya")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="PauseMenu" type="CanvasLayer" parent="."] [node name="PauseMenu" type="CanvasLayer" parent="."]
[node name="Transition" parent="PauseMenu" instance=ExtResource("2_cx0fw")] [node name="Transition" parent="PauseMenu" instance=ExtResource("2_cx0fw")]
@@ -210,10 +227,46 @@ shape = SubResource("BoxShape3D_nmbs0")
[node name="Sprite3D" type="Sprite3D" parent="Interactables/PC"] [node name="Sprite3D" type="Sprite3D" parent="Interactables/PC"]
transform = Transform3D(0.024902493, 0.0022058422, 0, -0.0022058422, 0.024902493, 0, 0, 0, 0.024999999, 0.053893626, 0.2870214, 0.041617036) transform = Transform3D(0.024902493, 0.0022058422, 0, -0.0022058422, 0.024902493, 0, 0, 0, 0.024999999, 0.053893626, 0.2870214, 0.041617036)
layers = 2
flip_h = true flip_h = true
axis = 0 axis = 0
texture = SubResource("ViewportTexture_vwrhx") texture = SubResource("ViewportTexture_vwrhx")
[node name="SubViewport" parent="Interactables/PC/Sprite3D" instance=ExtResource("10_gba58")] [node name="SubViewport" type="SubViewport" parent="Interactables/PC/Sprite3D" node_paths=PackedStringArray("terminalLine")]
transparent_bg = true
size = Vector2i(1830, 1680)
script = ExtResource("10_gba58")
terminalLine = NodePath("MarginContainer/ScrollContainer/VBoxContainer/Label")
[node name="MarginContainer" type="MarginContainer" parent="Interactables/PC/Sprite3D/SubViewport"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ScrollContainer" type="ScrollContainer" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer"]
clip_contents = true
custom_minimum_size = Vector2(1800, 0)
layout_mode = 2
text = "a0ifjaojkfna"
label_settings = SubResource("LabelSettings_nmbs0")
autowrap_mode = 3
[node name="Caret" type="ColorRect" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer/Label"]
layout_mode = 0
offset_right = 24.0
offset_bottom = 42.0
[node name="CaretTimer" type="Timer" parent="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer/Label"]
wait_time = 0.5
autostart = true
[connection signal="timeout" from="Lighting/OmniLight3D3/Timer" to="Lighting/OmniLight3D3" method="_on_timer_timeout"] [connection signal="timeout" from="Lighting/OmniLight3D3/Timer" to="Lighting/OmniLight3D3" method="_on_timer_timeout"]
[connection signal="timeout" from="Interactables/PC/Sprite3D/SubViewport/MarginContainer/ScrollContainer/VBoxContainer/Label/CaretTimer" to="Interactables/PC/Sprite3D/SubViewport" method="_on_caret_timer_timeout"]

View File

@@ -3,6 +3,7 @@
[ext_resource type="Shader" uid="uid://uo56rpfskail" path="res://Assets/Scripts/Shaders/psx.gdshader" id="1_54yrn"] [ext_resource type="Shader" uid="uid://uo56rpfskail" path="res://Assets/Scripts/Shaders/psx.gdshader" id="1_54yrn"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_vwrhx"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_vwrhx"]
resource_local_to_scene = true
shader = ExtResource("1_54yrn") shader = ExtResource("1_54yrn")
shader_parameter/pixel_resolution = 240.0 shader_parameter/pixel_resolution = 240.0
shader_parameter/color_steps = 16 shader_parameter/color_steps = 16

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2016-2023 The Godot Engine community
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
[configuration]
entry_symbol = "git_plugin_init"
compatibility_minimum = "4.2.0"
[libraries]
linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so"
macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib"
windows.editor.x86_64 = "windows/libgit_plugin.windows.editor.x86_64.dll"

View File

@@ -0,0 +1 @@
uid://dxk2quklou2u7

View File

@@ -24,6 +24,11 @@ GlobalSettings="*res://Assets/Scripts/Player Controls/global_settings.gd"
window/size/viewport_width=1920 window/size/viewport_width=1920
window/size/viewport_height=1080 window/size/viewport_height=1080
[editor]
version_control/plugin_name="GitPlugin"
version_control/autoload_on_startup=true
[editor_plugins] [editor_plugins]
enabled=PackedStringArray("res://addons/godot-vim/plugin.cfg") enabled=PackedStringArray("res://addons/godot-vim/plugin.cfg")