godot-visual-effects/camera-effects.tscn

299 lines
14 KiB
Plaintext
Raw Permalink Normal View History

2023-12-16 06:58:06 +08:00
[gd_scene load_steps=22 format=3 uid="uid://c051w6upl0t16"]
2023-12-14 04:47:08 +08:00
2023-12-14 23:58:33 +08:00
[ext_resource type="Script" path="res://camera-effects/camera-effects-scene.gd" id="1_ct3xk"]
2023-12-15 14:07:20 +08:00
[ext_resource type="PackedScene" uid="uid://bvk23npqj2u2a" path="res://commons/halloween_village.tscn" id="2_8870h"]
[ext_resource type="PackedScene" uid="uid://sy04esp2kle1" path="res://camera-effects/chromatic_aberration.tscn" id="7_uoado"]
[ext_resource type="PackedScene" uid="uid://djsrvtsqjesw8" path="res://camera-effects/pixelate.tscn" id="8_fshcg"]
[ext_resource type="PackedScene" uid="uid://ds5xw2us1br3q" path="res://camera-effects/vignette.tscn" id="9_q1phu"]
2023-12-14 06:03:37 +08:00
[ext_resource type="PackedScene" uid="uid://dv3o1u4hc11vn" path="res://camera-effects/sepia.tscn" id="10_rqewe"]
[ext_resource type="PackedScene" uid="uid://cf1adbox8xy7e" path="res://camera-effects/grain_noise.tscn" id="11_3qobw"]
2023-12-15 16:06:36 +08:00
[ext_resource type="PackedScene" uid="uid://dfy4v47aijqqp" path="res://camera-effects/under_water.tscn" id="12_76kh0"]
2023-12-19 02:03:51 +08:00
[ext_resource type="PackedScene" uid="uid://dwppksddt4t0x" path="res://camera-effects/hexagon_mosaic.tscn" id="12_uvrob"]
[ext_resource type="PackedScene" uid="uid://0ef8k2idbr15" path="res://camera-effects/mirage.tscn" id="13_rc6we"]
[ext_resource type="PackedScene" uid="uid://b3uydqubrgd0g" path="res://camera-effects/color_correction.tscn" id="14_71y06"]
[ext_resource type="PackedScene" uid="uid://dxnm4sgbeu22g" path="res://camera-effects/camera_shake.tscn" id="14_qhoe5"]
2023-12-14 23:58:33 +08:00
[ext_resource type="Texture2D" uid="uid://etnwfy334jt" path="res://addons/kenney_particle_pack/window_03.png" id="14_ydbvf"]
2023-12-16 06:58:06 +08:00
[ext_resource type="PackedScene" uid="uid://0f6ab8y0i26l" path="res://camera-effects/monocolor.tscn" id="15_e7wly"]
2023-12-15 06:00:04 +08:00
[ext_resource type="PackedScene" uid="uid://kli822acdl5m" path="res://camera-effects/blur.tscn" id="15_kmr3r"]
2023-12-15 06:19:07 +08:00
[ext_resource type="PackedScene" uid="uid://pm0p6yeqy50d" path="res://camera-effects/fish_eye.tscn" id="16_nmfpv"]
2023-12-15 05:38:34 +08:00
[ext_resource type="ButtonGroup" uid="uid://2yjsq45hqgit" path="res://camera-effects/camera_button_group.tres" id="16_r0ag1"]
2023-12-14 02:56:18 +08:00
[sub_resource type="Environment" id="Environment_tln01"]
glow_blend_mode = 4
2023-12-14 23:58:33 +08:00
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_24bae"]
2023-12-16 06:58:06 +08:00
bg_color = Color(0.278431, 0, 0.141176, 0.470588)
2023-12-14 23:58:33 +08:00
[sub_resource type="Animation" id="Animation_7utnq"]
resource_name = "camera_rotation"
length = 24.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera Rotator:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.1, 24),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector3(0, 0, 0), Vector3(3.48787e-16, 6.28319, 3.48787e-16)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_do3k3"]
_data = {
"camera_rotation": SubResource("Animation_7utnq")
}
[node name="Camera Effects Scene" type="Node3D"]
script = ExtResource("1_ct3xk")
[node name="Camera Rotator" type="Node3D" parent="."]
transform = Transform3D(0.983115, -3.94809e-16, -0.182989, 3.38571e-16, 1, -3.38571e-16, 0.182989, 2.709e-16, 0.983115, 0, 0, 0)
[node name="Camera3D" type="Camera3D" parent="Camera Rotator"]
2023-12-14 04:47:08 +08:00
transform = Transform3D(0.707107, -0.40558, 0.579228, 0, 0.819152, 0.573577, -0.707107, -0.40558, 0.579228, 29.8522, 29.8536, 29.8522)
2023-12-14 02:56:18 +08:00
environment = SubResource("Environment_tln01")
projection = 1
current = true
2023-12-14 04:47:08 +08:00
fov = 13.5
2023-12-15 14:07:20 +08:00
size = 15.0
2023-12-14 04:47:08 +08:00
2023-12-14 02:56:18 +08:00
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, 0, 2, 0)
2023-12-14 04:47:08 +08:00
light_energy = 2.0
2023-12-14 02:56:18 +08:00
2023-12-15 14:07:20 +08:00
[node name="Halloween Village" parent="." instance=ExtResource("2_8870h")]
2023-12-15 05:38:34 +08:00
[node name="Effects" type="CanvasLayer" parent="."]
unique_name_in_owner = true
2023-12-15 05:38:34 +08:00
[node name="Chromatic Aberration" parent="Effects" instance=ExtResource("7_uoado")]
2023-12-15 05:38:34 +08:00
[node name="Pixelate" parent="Effects" instance=ExtResource("8_fshcg")]
visible = false
2023-12-15 05:38:34 +08:00
[node name="Vignette" parent="Effects" instance=ExtResource("9_q1phu")]
2023-12-14 06:03:37 +08:00
visible = false
2023-12-15 05:38:34 +08:00
[node name="Sepia" parent="Effects" instance=ExtResource("10_rqewe")]
2023-12-14 06:03:37 +08:00
visible = false
2023-12-15 05:38:34 +08:00
[node name="Grain Noise" parent="Effects" instance=ExtResource("11_3qobw")]
2023-12-14 15:33:49 +08:00
visible = false
2023-12-15 05:38:34 +08:00
[node name="Hexagon Mosaic" parent="Effects" instance=ExtResource("12_uvrob")]
visible = false
2023-12-14 23:58:33 +08:00
2023-12-15 05:38:34 +08:00
[node name="Camera Shake" parent="Effects" instance=ExtResource("14_qhoe5")]
2023-12-15 00:25:36 +08:00
visible = false
2023-12-15 06:00:04 +08:00
[node name="Blur" parent="Effects" instance=ExtResource("15_kmr3r")]
2023-12-15 06:19:07 +08:00
visible = false
[node name="Fish Eye" parent="Effects" instance=ExtResource("16_nmfpv")]
2023-12-15 14:07:20 +08:00
visible = false
2023-12-15 05:38:34 +08:00
2023-12-15 16:06:36 +08:00
[node name="Under Water" parent="Effects" instance=ExtResource("12_76kh0")]
visible = false
2023-12-15 19:25:28 +08:00
[node name="Mirage" parent="Effects" instance=ExtResource("13_rc6we")]
visible = false
2023-12-15 16:06:36 +08:00
2023-12-15 21:13:44 +08:00
[node name="Color Correction" parent="Effects" instance=ExtResource("14_71y06")]
visible = false
2023-12-16 06:58:06 +08:00
[node name="Monocolor" parent="Effects" instance=ExtResource("15_e7wly")]
visible = false
2023-12-14 23:58:33 +08:00
[node name="CanvasLayer UI" type="CanvasLayer" parent="."]
2023-12-16 06:58:06 +08:00
[node name="BottomBar" type="MarginContainer" parent="CanvasLayer UI"]
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 598.0
offset_right = 1152.0
offset_bottom = 648.0
grow_horizontal = 2
grow_vertical = 0
size_flags_vertical = 8
theme_override_constants/margin_bottom = 10
[node name="LabelVisibleEffects" type="RichTextLabel" parent="CanvasLayer UI/BottomBar"]
unique_name_in_owner = true
custom_minimum_size = Vector2(2.08165e-12, 40)
layout_mode = 2
theme_override_colors/default_color = Color(0, 0, 0, 1)
theme_override_font_sizes/normal_font_size = 24
bbcode_enabled = true
text = "[center]Chromatic Aberration"
2023-12-14 23:58:33 +08:00
[node name="SideBar" type="HBoxContainer" parent="CanvasLayer UI"]
anchors_preset = 9
anchor_bottom = 1.0
grow_vertical = 2
[node name="SideBar Menu" type="MarginContainer" parent="CanvasLayer UI/SideBar"]
layout_mode = 2
[node name="Panel" type="Panel" parent="CanvasLayer UI/SideBar/SideBar Menu"]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_24bae")
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer UI/SideBar/SideBar Menu"]
2023-12-15 05:38:34 +08:00
custom_minimum_size = Vector2(300, 0)
2023-12-14 23:58:33 +08:00
layout_mode = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer"]
layout_mode = 2
[node name="ButtonRotatingCamera" type="CheckButton" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 24
button_pressed = true
text = "Rotating Camera"
2023-12-16 06:58:06 +08:00
[node name="ScrollContainer" type="ScrollContainer" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer"]
custom_minimum_size = Vector2(265, 0)
layout_mode = 2
[node name="Button No Effect" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 05:38:34 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "No Effect"
2023-12-16 06:58:06 +08:00
[node name="ButtonChromaticAberration" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-14 23:58:33 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-14 23:58:33 +08:00
text = "Chromatic Aberration"
2023-12-16 06:58:06 +08:00
[node name="ButtonPixelate" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-14 23:58:33 +08:00
unique_name_in_owner = true
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-14 23:58:33 +08:00
text = "Pixelate"
2023-12-16 06:58:06 +08:00
[node name="ButtonVignette" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-14 23:58:33 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-14 23:58:33 +08:00
text = "Vignette"
2023-12-16 06:58:06 +08:00
[node name="ButtonSepia" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-14 23:58:33 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-14 23:58:33 +08:00
text = "Sepia"
2023-12-16 06:58:06 +08:00
[node name="ButtonGrainNoise" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-14 23:58:33 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-14 23:58:33 +08:00
text = "Grain Noise"
2023-12-16 06:58:06 +08:00
[node name="ButtonHexagonMosaic" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-14 23:58:33 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-14 23:58:33 +08:00
text = "Hexagon Mosaic"
2023-12-16 06:58:06 +08:00
[node name="ButtonCameraShake" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 00:25:36 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-12-15 05:38:34 +08:00
toggle_mode = true
button_group = ExtResource("16_r0ag1")
2023-12-15 00:25:36 +08:00
text = "Camera Shake"
2023-12-16 06:58:06 +08:00
[node name="ButtonBlur" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 06:00:04 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "Blur"
2023-12-16 06:58:06 +08:00
[node name="Button Fish Eye" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 06:19:07 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "Fish Eye"
2023-12-16 06:58:06 +08:00
[node name="Button Under Water" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 16:06:36 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "Under Water"
2023-12-16 06:58:06 +08:00
[node name="Button Mirage" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 19:25:28 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "Mirage"
2023-12-16 06:58:06 +08:00
[node name="Button Color Correction" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
2023-12-15 21:13:44 +08:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "Color Correction"
2023-12-16 06:58:06 +08:00
[node name="Button Monocolor" type="Button" parent="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 24
toggle_mode = true
button_group = ExtResource("16_r0ag1")
text = "Monocolor"
2023-12-14 23:58:33 +08:00
[node name="ToggleButton" type="TextureButton" parent="CanvasLayer UI/SideBar"]
custom_minimum_size = Vector2(64, 2.08165e-12)
layout_mode = 2
texture_normal = ExtResource("14_ydbvf")
ignore_texture_size = true
stretch_mode = 4
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_do3k3")
}
[connection signal="pressed" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ButtonRotatingCamera" to="." method="toggleCameraRotating"]
2023-12-16 06:58:06 +08:00
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Button No Effect" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonChromaticAberration" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonPixelate" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonVignette" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonSepia" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonGrainNoise" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonHexagonMosaic" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonCameraShake" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/ButtonBlur" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Button Fish Eye" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Button Under Water" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Button Mirage" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Button Color Correction" to="." method="updateVisibleEffects"]
[connection signal="toggled" from="CanvasLayer UI/SideBar/SideBar Menu/MarginContainer/VBoxContainer/ScrollContainer/VBoxContainer/Button Monocolor" to="." method="updateVisibleEffects"]
2023-12-14 23:58:33 +08:00
[connection signal="pressed" from="CanvasLayer UI/SideBar/ToggleButton" to="." method="toggleSideBar"]