Files
godot-demo-projects/2d/screen_space_shaders/screen_shaders.tscn
2019-07-31 13:15:42 -03:00

265 lines
7.1 KiB
Plaintext

[gd_scene load_steps=31 format=2]
[ext_resource path="res://screen_shaders.gd" type="Script" id=1]
[ext_resource path="res://art/burano.jpg" type="Texture" id=2]
[ext_resource path="res://art/platformer.jpg" type="Texture" id=3]
[ext_resource path="res://art/mountains.jpg" type="Texture" id=4]
[ext_resource path="res://art/forest.jpg" type="Texture" id=5]
[ext_resource path="res://shaders/vignette.shader" type="Shader" id=6]
[ext_resource path="res://art/vignette.png" type="Texture" id=7]
[ext_resource path="res://art/white.png" type="Texture" id=8]
[ext_resource path="res://shaders/blur.shader" type="Shader" id=9]
[ext_resource path="res://shaders/pixelize.shader" type="Shader" id=10]
[ext_resource path="res://shaders/whirl.shader" type="Shader" id=11]
[ext_resource path="res://shaders/sepia.shader" type="Shader" id=12]
[ext_resource path="res://shaders/negative.shader" type="Shader" id=13]
[ext_resource path="res://shaders/contrasted.shader" type="Shader" id=14]
[ext_resource path="res://shaders/normalized.shader" type="Shader" id=15]
[ext_resource path="res://shaders/BCS.shader" type="Shader" id=16]
[ext_resource path="res://shaders/mirage.shader" type="Shader" id=17]
[ext_resource path="res://shaders/old_film.shader" type="Shader" id=18]
[ext_resource path="res://art/filmgrain.png" type="Texture" id=19]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 6 )
shader_param/vignette = ExtResource( 7 )
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 9 )
shader_param/amount = 4.0
[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 10 )
shader_param/size_x = 0.008
shader_param/size_y = 0.008
[sub_resource type="ShaderMaterial" id=4]
shader = ExtResource( 11 )
shader_param/rotation = 3.0
[sub_resource type="ShaderMaterial" id=5]
shader = ExtResource( 12 )
shader_param/base = Color( 0.54451, 0.408353, 0.403137, 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_param/brightness = 0.8
shader_param/contrast = 1.5
shader_param/saturation = 1.8
[sub_resource type="ShaderMaterial" id=10]
shader = ExtResource( 17 )
shader_param/frequency = 60.0
shader_param/depth = 0.005
[sub_resource type="ShaderMaterial" id=11]
shader = ExtResource( 18 )
shader_param/base = Color( 0.450274, 0.361255, 0.335059, 1 )
shader_param/grain_strength = 0.3
shader_param/fps = 12
shader_param/stretch = 0.5
shader_param/flashing = 0.01
shader_param/grain = ExtResource( 19 )
shader_param/vignette = ExtResource( 7 )
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
script = ExtResource( 1 )
[node name="pictures" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="burano" type="TextureRect" parent="pictures"]
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 2 )
[node name="roby" type="TextureRect" parent="pictures"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 3 )
[node name="mountains" type="TextureRect" parent="pictures"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 4 )
[node name="forest" type="TextureRect" parent="pictures"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 5 )
[node name="effects" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="disabled" type="Control" parent="effects"]
visible = false
margin_right = 40.0
margin_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="vignette" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 1 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="blur" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 2 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="pixelize" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 3 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="whirl" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 4 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="sepia" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 5 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 14.0
margin_bottom = -2.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="negative" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 6 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="contrasted" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 7 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="normalized" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 8 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="BCS" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 9 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 3.0
margin_bottom = -3.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="mirage" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 10 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="old_film" type="TextureRect" parent="effects"]
visible = false
material = SubResource( 11 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -3.0
margin_right = 3.0
size_flags_horizontal = 2
size_flags_vertical = 2
texture = ExtResource( 8 )
expand = true
[node name="picture" type="OptionButton" parent="."]
margin_left = 8.0
margin_top = 7.0
margin_right = 131.0
margin_bottom = 28.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="effect" type="OptionButton" parent="."]
margin_left = 137.0
margin_top = 7.0
margin_right = 260.0
margin_bottom = 28.0
size_flags_horizontal = 2
size_flags_vertical = 2
[connection signal="item_selected" from="picture" to="." method="_on_picture_item_selected"]
[connection signal="item_selected" from="effect" to="." method="_on_effect_item_selected"]