screen_shaders.tscn 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. [gd_scene load_steps=31 format=2]
  2. [ext_resource path="res://screen_shaders.gd" type="Script" id=1]
  3. [ext_resource path="res://art/burano.jpg" type="Texture" id=2]
  4. [ext_resource path="res://art/platformer.jpg" type="Texture" id=3]
  5. [ext_resource path="res://art/mountains.jpg" type="Texture" id=4]
  6. [ext_resource path="res://art/forest.jpg" type="Texture" id=5]
  7. [ext_resource path="res://shaders/vignette.shader" type="Shader" id=6]
  8. [ext_resource path="res://art/vignette.png" type="Texture" id=7]
  9. [ext_resource path="res://art/white.png" type="Texture" id=8]
  10. [ext_resource path="res://shaders/blur.shader" type="Shader" id=9]
  11. [ext_resource path="res://shaders/pixelize.shader" type="Shader" id=10]
  12. [ext_resource path="res://shaders/whirl.shader" type="Shader" id=11]
  13. [ext_resource path="res://shaders/sepia.shader" type="Shader" id=12]
  14. [ext_resource path="res://shaders/negative.shader" type="Shader" id=13]
  15. [ext_resource path="res://shaders/contrasted.shader" type="Shader" id=14]
  16. [ext_resource path="res://shaders/normalized.shader" type="Shader" id=15]
  17. [ext_resource path="res://shaders/BCS.shader" type="Shader" id=16]
  18. [ext_resource path="res://shaders/mirage.shader" type="Shader" id=17]
  19. [ext_resource path="res://shaders/old_film.shader" type="Shader" id=18]
  20. [ext_resource path="res://art/filmgrain.png" type="Texture" id=19]
  21. [sub_resource type="ShaderMaterial" id=1]
  22. shader = ExtResource( 6 )
  23. shader_param/vignette = ExtResource( 7 )
  24. [sub_resource type="ShaderMaterial" id=2]
  25. shader = ExtResource( 9 )
  26. shader_param/amount = 4.0
  27. [sub_resource type="ShaderMaterial" id=3]
  28. shader = ExtResource( 10 )
  29. shader_param/size_x = 0.008
  30. shader_param/size_y = 0.008
  31. [sub_resource type="ShaderMaterial" id=4]
  32. shader = ExtResource( 11 )
  33. shader_param/rotation = 3.0
  34. [sub_resource type="ShaderMaterial" id=5]
  35. shader = ExtResource( 12 )
  36. shader_param/base = Color( 0.54451, 0.408353, 0.403137, 1 )
  37. [sub_resource type="ShaderMaterial" id=6]
  38. shader = ExtResource( 13 )
  39. [sub_resource type="ShaderMaterial" id=7]
  40. shader = ExtResource( 14 )
  41. [sub_resource type="ShaderMaterial" id=8]
  42. shader = ExtResource( 15 )
  43. [sub_resource type="ShaderMaterial" id=9]
  44. shader = ExtResource( 16 )
  45. shader_param/brightness = 0.8
  46. shader_param/contrast = 1.5
  47. shader_param/saturation = 1.8
  48. [sub_resource type="ShaderMaterial" id=10]
  49. shader = ExtResource( 17 )
  50. shader_param/frequency = 60.0
  51. shader_param/depth = 0.005
  52. [sub_resource type="ShaderMaterial" id=11]
  53. shader = ExtResource( 18 )
  54. shader_param/base = Color( 0.450274, 0.361255, 0.335059, 1 )
  55. shader_param/grain_strength = 0.3
  56. shader_param/fps = 12
  57. shader_param/stretch = 0.5
  58. shader_param/flashing = 0.01
  59. shader_param/grain = ExtResource( 19 )
  60. shader_param/vignette = ExtResource( 7 )
  61. [node name="ScreenShaders" type="Control"]
  62. anchor_right = 1.0
  63. anchor_bottom = 1.0
  64. size_flags_horizontal = 2
  65. size_flags_vertical = 2
  66. script = ExtResource( 1 )
  67. [node name="Pictures" type="Control" parent="."]
  68. anchor_right = 1.0
  69. anchor_bottom = 1.0
  70. size_flags_horizontal = 2
  71. size_flags_vertical = 2
  72. __meta__ = {
  73. "_edit_use_anchors_": false
  74. }
  75. [node name="Burano" type="TextureRect" parent="Pictures"]
  76. margin_right = 40.0
  77. margin_bottom = 40.0
  78. size_flags_horizontal = 2
  79. size_flags_vertical = 2
  80. texture = ExtResource( 2 )
  81. [node name="Roby" type="TextureRect" parent="Pictures"]
  82. visible = false
  83. margin_right = 40.0
  84. margin_bottom = 40.0
  85. size_flags_horizontal = 2
  86. size_flags_vertical = 2
  87. texture = ExtResource( 3 )
  88. [node name="Mountains" type="TextureRect" parent="Pictures"]
  89. visible = false
  90. margin_right = 40.0
  91. margin_bottom = 40.0
  92. size_flags_horizontal = 2
  93. size_flags_vertical = 2
  94. texture = ExtResource( 4 )
  95. [node name="Forest" type="TextureRect" parent="Pictures"]
  96. visible = false
  97. margin_right = 40.0
  98. margin_bottom = 40.0
  99. size_flags_horizontal = 2
  100. size_flags_vertical = 2
  101. texture = ExtResource( 5 )
  102. [node name="Effects" type="Control" parent="."]
  103. anchor_right = 1.0
  104. anchor_bottom = 1.0
  105. size_flags_horizontal = 2
  106. size_flags_vertical = 2
  107. [node name="Disabled" type="Control" parent="Effects"]
  108. visible = false
  109. margin_right = 40.0
  110. margin_bottom = 40.0
  111. size_flags_horizontal = 2
  112. size_flags_vertical = 2
  113. [node name="Vignette" type="TextureRect" parent="Effects"]
  114. visible = false
  115. material = SubResource( 1 )
  116. anchor_right = 1.0
  117. anchor_bottom = 1.0
  118. size_flags_horizontal = 2
  119. size_flags_vertical = 2
  120. texture = ExtResource( 8 )
  121. expand = true
  122. [node name="Blur" type="TextureRect" parent="Effects"]
  123. visible = false
  124. material = SubResource( 2 )
  125. anchor_right = 1.0
  126. anchor_bottom = 1.0
  127. size_flags_horizontal = 2
  128. size_flags_vertical = 2
  129. texture = ExtResource( 8 )
  130. expand = true
  131. [node name="Pixelize" type="TextureRect" parent="Effects"]
  132. visible = false
  133. material = SubResource( 3 )
  134. anchor_right = 1.0
  135. anchor_bottom = 1.0
  136. size_flags_horizontal = 2
  137. size_flags_vertical = 2
  138. texture = ExtResource( 8 )
  139. expand = true
  140. [node name="Whirl" type="TextureRect" parent="Effects"]
  141. visible = false
  142. material = SubResource( 4 )
  143. anchor_right = 1.0
  144. anchor_bottom = 1.0
  145. size_flags_horizontal = 2
  146. size_flags_vertical = 2
  147. texture = ExtResource( 8 )
  148. expand = true
  149. [node name="Sepia" type="TextureRect" parent="Effects"]
  150. visible = false
  151. material = SubResource( 5 )
  152. anchor_right = 1.0
  153. anchor_bottom = 1.0
  154. margin_right = 14.0
  155. margin_bottom = -2.0
  156. size_flags_horizontal = 2
  157. size_flags_vertical = 2
  158. texture = ExtResource( 8 )
  159. expand = true
  160. [node name="Negative" type="TextureRect" parent="Effects"]
  161. visible = false
  162. material = SubResource( 6 )
  163. anchor_right = 1.0
  164. anchor_bottom = 1.0
  165. size_flags_horizontal = 2
  166. size_flags_vertical = 2
  167. texture = ExtResource( 8 )
  168. expand = true
  169. [node name="Contrasted" type="TextureRect" parent="Effects"]
  170. visible = false
  171. material = SubResource( 7 )
  172. anchor_right = 1.0
  173. anchor_bottom = 1.0
  174. size_flags_horizontal = 2
  175. size_flags_vertical = 2
  176. texture = ExtResource( 8 )
  177. expand = true
  178. [node name="Normalized" type="TextureRect" parent="Effects"]
  179. visible = false
  180. material = SubResource( 8 )
  181. anchor_right = 1.0
  182. anchor_bottom = 1.0
  183. size_flags_horizontal = 2
  184. size_flags_vertical = 2
  185. texture = ExtResource( 8 )
  186. expand = true
  187. [node name="BCS" type="TextureRect" parent="Effects"]
  188. visible = false
  189. material = SubResource( 9 )
  190. anchor_right = 1.0
  191. anchor_bottom = 1.0
  192. margin_top = 3.0
  193. margin_bottom = -3.0
  194. size_flags_horizontal = 2
  195. size_flags_vertical = 2
  196. texture = ExtResource( 8 )
  197. expand = true
  198. [node name="Mirage" type="TextureRect" parent="Effects"]
  199. visible = false
  200. material = SubResource( 10 )
  201. anchor_right = 1.0
  202. anchor_bottom = 1.0
  203. size_flags_horizontal = 2
  204. size_flags_vertical = 2
  205. texture = ExtResource( 8 )
  206. expand = true
  207. [node name="OldFilm" type="TextureRect" parent="Effects"]
  208. visible = false
  209. material = SubResource( 11 )
  210. anchor_right = 1.0
  211. anchor_bottom = 1.0
  212. margin_left = -3.0
  213. margin_right = 3.0
  214. size_flags_horizontal = 2
  215. size_flags_vertical = 2
  216. texture = ExtResource( 8 )
  217. expand = true
  218. [node name="Picture" type="OptionButton" parent="."]
  219. margin_left = 8.0
  220. margin_top = 7.0
  221. margin_right = 131.0
  222. margin_bottom = 28.0
  223. size_flags_horizontal = 2
  224. size_flags_vertical = 2
  225. [node name="Effect" type="OptionButton" parent="."]
  226. margin_left = 137.0
  227. margin_top = 7.0
  228. margin_right = 260.0
  229. margin_bottom = 28.0
  230. size_flags_horizontal = 2
  231. size_flags_vertical = 2
  232. [connection signal="item_selected" from="Picture" to="." method="_on_picture_item_selected"]
  233. [connection signal="item_selected" from="Effect" to="." method="_on_effect_item_selected"]