godot-demo-projects/2d/screen_space_shaders/screen_shaders.tscn

322 lines
8.6 KiB
Plaintext

[gd_scene load_steps=31 format=3 uid="uid://dyk2fhwqwi2u0"]
[ext_resource type="Script" path="res://screen_shaders.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://bxfl16c7nqg0t" path="res://art/burano.jpg" id="2"]
[ext_resource type="Texture2D" uid="uid://cjycbveqawf6o" path="res://art/platformer.jpg" id="3"]
[ext_resource type="Texture2D" uid="uid://bj5ysvx4sbbw0" path="res://art/mountains.jpg" id="4"]
[ext_resource type="Texture2D" uid="uid://dmposqqlg6e2m" path="res://art/forest.jpg" id="5"]
[ext_resource type="Shader" path="res://shaders/vignette.gdshader" id="6"]
[ext_resource type="Texture2D" uid="uid://c7uiamx2smpx5" path="res://art/vignette.png" id="7"]
[ext_resource type="Texture2D" uid="uid://dxb6wr1r452am" path="res://art/white.png" id="8"]
[ext_resource type="Shader" path="res://shaders/blur.gdshader" id="9"]
[ext_resource type="Shader" path="res://shaders/pixelize.gdshader" id="10"]
[ext_resource type="Shader" path="res://shaders/whirl.gdshader" id="11"]
[ext_resource type="Shader" path="res://shaders/sepia.gdshader" id="12"]
[ext_resource type="Shader" path="res://shaders/negative.gdshader" id="13"]
[ext_resource type="Shader" path="res://shaders/contrasted.gdshader" id="14"]
[ext_resource type="Shader" path="res://shaders/normalized.gdshader" id="15"]
[ext_resource type="Shader" path="res://shaders/BCS.gdshader" id="16"]
[ext_resource type="Shader" path="res://shaders/mirage.gdshader" id="17"]
[ext_resource type="Shader" path="res://shaders/old_film.gdshader" id="18"]
[ext_resource type="Texture2D" uid="uid://c5jxxypesp0k5" path="res://art/filmgrain.png" id="19_mg7oc"]
[sub_resource type="ShaderMaterial" id="1"]
shader = ExtResource("6")
shader_parameter/vignette = ExtResource("7")
[sub_resource type="ShaderMaterial" id="2"]
shader = ExtResource("9")
shader_parameter/amount = 4.0
[sub_resource type="ShaderMaterial" id="3"]
shader = ExtResource("10")
shader_parameter/size_x = 0.008
shader_parameter/size_y = 0.008
[sub_resource type="ShaderMaterial" id="4"]
shader = ExtResource("11")
shader_parameter/rotation = 3.0
[sub_resource type="ShaderMaterial" id="5"]
shader = ExtResource("12")
shader_parameter/base = Color(0.941176, 0.647059, 0.356863, 1)
[sub_resource type="ShaderMaterial" id="6"]
shader = ExtResource("13")
[sub_resource type="ShaderMaterial" id="7"]
shader = ExtResource("14")
[sub_resource type="ShaderMaterial" id="8"]
shader = ExtResource("15")
[sub_resource type="ShaderMaterial" id="9"]
shader = ExtResource("16")
shader_parameter/brightness = 0.8
shader_parameter/contrast = 1.5
shader_parameter/saturation = 1.8
[sub_resource type="ShaderMaterial" id="10"]
shader = ExtResource("17")
shader_parameter/frequency = 60.0
shader_parameter/depth = 0.005
[sub_resource type="ShaderMaterial" id="11"]
shader = ExtResource("18")
shader_parameter/base = Color(0.941176, 0.647059, 0.356863, 1)
shader_parameter/grain_strength = 0.5
shader_parameter/fps = 15.0
shader_parameter/stretch = 0.5
shader_parameter/flashing = 0.1
shader_parameter/grain = ExtResource("19_mg7oc")
shader_parameter/vignette = ExtResource("7")
[node name="ScreenShaders" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
script = ExtResource("1")
[node name="Pictures" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Burano" type="TextureRect" parent="Pictures"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("2")
[node name="Roby" type="TextureRect" parent="Pictures"]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("3")
[node name="Mountains" type="TextureRect" parent="Pictures"]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("4")
[node name="Forest" type="TextureRect" parent="Pictures"]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("5")
[node name="Effects" type="Control" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Disabled" type="Control" parent="Effects"]
visible = false
layout_mode = 1
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Vignette" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("1")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Blur" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("2")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Pixelize" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("3")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Whirl" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("4")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Sepia" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("5")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 14.0
offset_bottom = -2.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Negative" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("6")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Contrasted" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("7")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Normalized" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("8")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="BCS" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("9")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = 3.0
offset_bottom = -3.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Mirage" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("10")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="OldFilm" type="TextureRect" parent="Effects"]
visible = false
material = SubResource("11")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -3.0
offset_right = 3.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource("8")
[node name="Picture" type="OptionButton" parent="."]
layout_mode = 0
offset_left = 8.0
offset_top = 7.0
offset_right = 184.0
offset_bottom = 38.0
size_flags_horizontal = 2
size_flags_vertical = 2
metadata/_edit_layout_mode = 0
metadata/_edit_use_custom_anchors = false
[node name="Effect" type="OptionButton" parent="."]
layout_mode = 0
offset_left = 189.0
offset_top = 7.0
offset_right = 312.0
offset_bottom = 38.0
size_flags_horizontal = 2
size_flags_vertical = 2
metadata/_edit_layout_mode = 0
metadata/_edit_use_custom_anchors = false
[connection signal="item_selected" from="Picture" to="." method="_on_picture_item_selected"]
[connection signal="item_selected" from="Effect" to="." method="_on_effect_item_selected"]