screen_shaders.tscn 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. [gd_scene load_steps=31 format=3 uid="uid://dyk2fhwqwi2u0"]
  2. [ext_resource type="Script" path="res://screen_shaders.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://bxfl16c7nqg0t" path="res://art/burano.jpg" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://cjycbveqawf6o" path="res://art/platformer.jpg" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://bj5ysvx4sbbw0" path="res://art/mountains.jpg" id="4"]
  6. [ext_resource type="Texture2D" uid="uid://dmposqqlg6e2m" path="res://art/forest.jpg" id="5"]
  7. [ext_resource type="Shader" path="res://shaders/vignette.gdshader" id="6"]
  8. [ext_resource type="Texture2D" uid="uid://c7uiamx2smpx5" path="res://art/vignette.png" id="7"]
  9. [ext_resource type="Texture2D" uid="uid://dxb6wr1r452am" path="res://art/white.png" id="8"]
  10. [ext_resource type="Shader" path="res://shaders/blur.gdshader" id="9"]
  11. [ext_resource type="Shader" path="res://shaders/pixelize.gdshader" id="10"]
  12. [ext_resource type="Shader" path="res://shaders/whirl.gdshader" id="11"]
  13. [ext_resource type="Shader" path="res://shaders/sepia.gdshader" id="12"]
  14. [ext_resource type="Shader" path="res://shaders/negative.gdshader" id="13"]
  15. [ext_resource type="Shader" path="res://shaders/contrasted.gdshader" id="14"]
  16. [ext_resource type="Shader" path="res://shaders/normalized.gdshader" id="15"]
  17. [ext_resource type="Shader" path="res://shaders/BCS.gdshader" id="16"]
  18. [ext_resource type="Shader" path="res://shaders/mirage.gdshader" id="17"]
  19. [ext_resource type="Shader" path="res://shaders/old_film.gdshader" id="18"]
  20. [ext_resource type="Texture2D" uid="uid://c5jxxypesp0k5" path="res://art/filmgrain.png" id="19_mg7oc"]
  21. [sub_resource type="ShaderMaterial" id="1"]
  22. shader = ExtResource("6")
  23. shader_parameter/vignette = ExtResource("7")
  24. [sub_resource type="ShaderMaterial" id="2"]
  25. shader = ExtResource("9")
  26. shader_parameter/amount = 4.0
  27. [sub_resource type="ShaderMaterial" id="3"]
  28. shader = ExtResource("10")
  29. shader_parameter/size_x = 0.008
  30. shader_parameter/size_y = 0.008
  31. [sub_resource type="ShaderMaterial" id="4"]
  32. shader = ExtResource("11")
  33. shader_parameter/rotation = 3.0
  34. [sub_resource type="ShaderMaterial" id="5"]
  35. shader = ExtResource("12")
  36. shader_parameter/base = Color(0.941176, 0.647059, 0.356863, 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_parameter/brightness = 0.8
  46. shader_parameter/contrast = 1.5
  47. shader_parameter/saturation = 1.8
  48. [sub_resource type="ShaderMaterial" id="10"]
  49. shader = ExtResource("17")
  50. shader_parameter/frequency = 60.0
  51. shader_parameter/depth = 0.005
  52. [sub_resource type="ShaderMaterial" id="11"]
  53. shader = ExtResource("18")
  54. shader_parameter/base = Color(0.941176, 0.647059, 0.356863, 1)
  55. shader_parameter/grain_strength = 0.5
  56. shader_parameter/fps = 15.0
  57. shader_parameter/stretch = 0.5
  58. shader_parameter/flashing = 0.1
  59. shader_parameter/grain = ExtResource("19_mg7oc")
  60. shader_parameter/vignette = ExtResource("7")
  61. [node name="ScreenShaders" type="Control"]
  62. layout_mode = 3
  63. anchors_preset = 15
  64. anchor_right = 1.0
  65. anchor_bottom = 1.0
  66. grow_horizontal = 2
  67. grow_vertical = 2
  68. size_flags_horizontal = 2
  69. size_flags_vertical = 2
  70. script = ExtResource("1")
  71. [node name="Pictures" type="Control" parent="."]
  72. layout_mode = 1
  73. anchors_preset = 15
  74. anchor_right = 1.0
  75. anchor_bottom = 1.0
  76. grow_horizontal = 2
  77. grow_vertical = 2
  78. size_flags_horizontal = 2
  79. size_flags_vertical = 2
  80. [node name="Burano" type="TextureRect" parent="Pictures"]
  81. layout_mode = 0
  82. offset_right = 40.0
  83. offset_bottom = 40.0
  84. size_flags_horizontal = 2
  85. size_flags_vertical = 2
  86. texture = ExtResource("2")
  87. [node name="Roby" type="TextureRect" parent="Pictures"]
  88. visible = false
  89. layout_mode = 0
  90. offset_right = 40.0
  91. offset_bottom = 40.0
  92. size_flags_horizontal = 2
  93. size_flags_vertical = 2
  94. texture = ExtResource("3")
  95. [node name="Mountains" type="TextureRect" parent="Pictures"]
  96. visible = false
  97. layout_mode = 0
  98. offset_right = 40.0
  99. offset_bottom = 40.0
  100. size_flags_horizontal = 2
  101. size_flags_vertical = 2
  102. texture = ExtResource("4")
  103. [node name="Forest" type="TextureRect" parent="Pictures"]
  104. visible = false
  105. layout_mode = 0
  106. offset_right = 40.0
  107. offset_bottom = 40.0
  108. size_flags_horizontal = 2
  109. size_flags_vertical = 2
  110. texture = ExtResource("5")
  111. [node name="Effects" type="Control" parent="."]
  112. layout_mode = 1
  113. anchors_preset = 15
  114. anchor_right = 1.0
  115. anchor_bottom = 1.0
  116. grow_horizontal = 2
  117. grow_vertical = 2
  118. size_flags_horizontal = 2
  119. size_flags_vertical = 2
  120. [node name="Disabled" type="Control" parent="Effects"]
  121. visible = false
  122. layout_mode = 1
  123. anchors_preset = 0
  124. offset_right = 40.0
  125. offset_bottom = 40.0
  126. size_flags_horizontal = 2
  127. size_flags_vertical = 2
  128. [node name="Vignette" type="TextureRect" parent="Effects"]
  129. visible = false
  130. material = SubResource("1")
  131. layout_mode = 1
  132. anchors_preset = 15
  133. anchor_right = 1.0
  134. anchor_bottom = 1.0
  135. grow_horizontal = 2
  136. grow_vertical = 2
  137. size_flags_horizontal = 2
  138. size_flags_vertical = 2
  139. texture = ExtResource("8")
  140. [node name="Blur" type="TextureRect" parent="Effects"]
  141. visible = false
  142. material = SubResource("2")
  143. layout_mode = 1
  144. anchors_preset = 15
  145. anchor_right = 1.0
  146. anchor_bottom = 1.0
  147. grow_horizontal = 2
  148. grow_vertical = 2
  149. size_flags_horizontal = 2
  150. size_flags_vertical = 2
  151. texture = ExtResource("8")
  152. [node name="Pixelize" type="TextureRect" parent="Effects"]
  153. visible = false
  154. material = SubResource("3")
  155. layout_mode = 1
  156. anchors_preset = 15
  157. anchor_right = 1.0
  158. anchor_bottom = 1.0
  159. grow_horizontal = 2
  160. grow_vertical = 2
  161. size_flags_horizontal = 2
  162. size_flags_vertical = 2
  163. texture = ExtResource("8")
  164. [node name="Whirl" type="TextureRect" parent="Effects"]
  165. visible = false
  166. material = SubResource("4")
  167. layout_mode = 1
  168. anchors_preset = 15
  169. anchor_right = 1.0
  170. anchor_bottom = 1.0
  171. grow_horizontal = 2
  172. grow_vertical = 2
  173. size_flags_horizontal = 2
  174. size_flags_vertical = 2
  175. texture = ExtResource("8")
  176. [node name="Sepia" type="TextureRect" parent="Effects"]
  177. visible = false
  178. material = SubResource("5")
  179. layout_mode = 1
  180. anchors_preset = 15
  181. anchor_right = 1.0
  182. anchor_bottom = 1.0
  183. offset_right = 14.0
  184. offset_bottom = -2.0
  185. grow_horizontal = 2
  186. grow_vertical = 2
  187. size_flags_horizontal = 2
  188. size_flags_vertical = 2
  189. texture = ExtResource("8")
  190. [node name="Negative" type="TextureRect" parent="Effects"]
  191. visible = false
  192. material = SubResource("6")
  193. layout_mode = 1
  194. anchors_preset = 15
  195. anchor_right = 1.0
  196. anchor_bottom = 1.0
  197. grow_horizontal = 2
  198. grow_vertical = 2
  199. size_flags_horizontal = 2
  200. size_flags_vertical = 2
  201. texture = ExtResource("8")
  202. [node name="Contrasted" type="TextureRect" parent="Effects"]
  203. visible = false
  204. material = SubResource("7")
  205. layout_mode = 1
  206. anchors_preset = 15
  207. anchor_right = 1.0
  208. anchor_bottom = 1.0
  209. grow_horizontal = 2
  210. grow_vertical = 2
  211. size_flags_horizontal = 2
  212. size_flags_vertical = 2
  213. texture = ExtResource("8")
  214. [node name="Normalized" type="TextureRect" parent="Effects"]
  215. visible = false
  216. material = SubResource("8")
  217. layout_mode = 1
  218. anchors_preset = 15
  219. anchor_right = 1.0
  220. anchor_bottom = 1.0
  221. grow_horizontal = 2
  222. grow_vertical = 2
  223. size_flags_horizontal = 2
  224. size_flags_vertical = 2
  225. texture = ExtResource("8")
  226. [node name="BCS" type="TextureRect" parent="Effects"]
  227. visible = false
  228. material = SubResource("9")
  229. layout_mode = 1
  230. anchors_preset = 15
  231. anchor_right = 1.0
  232. anchor_bottom = 1.0
  233. offset_top = 3.0
  234. offset_bottom = -3.0
  235. grow_horizontal = 2
  236. grow_vertical = 2
  237. size_flags_horizontal = 2
  238. size_flags_vertical = 2
  239. texture = ExtResource("8")
  240. [node name="Mirage" type="TextureRect" parent="Effects"]
  241. visible = false
  242. material = SubResource("10")
  243. layout_mode = 1
  244. anchors_preset = 15
  245. anchor_right = 1.0
  246. anchor_bottom = 1.0
  247. grow_horizontal = 2
  248. grow_vertical = 2
  249. size_flags_horizontal = 2
  250. size_flags_vertical = 2
  251. texture = ExtResource("8")
  252. [node name="OldFilm" type="TextureRect" parent="Effects"]
  253. visible = false
  254. material = SubResource("11")
  255. layout_mode = 1
  256. anchors_preset = 15
  257. anchor_right = 1.0
  258. anchor_bottom = 1.0
  259. offset_left = -3.0
  260. offset_right = 3.0
  261. grow_horizontal = 2
  262. grow_vertical = 2
  263. size_flags_horizontal = 2
  264. size_flags_vertical = 2
  265. texture = ExtResource("8")
  266. [node name="Picture" type="OptionButton" parent="."]
  267. layout_mode = 0
  268. offset_left = 8.0
  269. offset_top = 7.0
  270. offset_right = 184.0
  271. offset_bottom = 38.0
  272. size_flags_horizontal = 2
  273. size_flags_vertical = 2
  274. metadata/_edit_layout_mode = 0
  275. metadata/_edit_use_custom_anchors = false
  276. [node name="Effect" type="OptionButton" parent="."]
  277. layout_mode = 0
  278. offset_left = 189.0
  279. offset_top = 7.0
  280. offset_right = 312.0
  281. offset_bottom = 38.0
  282. size_flags_horizontal = 2
  283. size_flags_vertical = 2
  284. metadata/_edit_layout_mode = 0
  285. metadata/_edit_use_custom_anchors = false
  286. [connection signal="item_selected" from="Picture" to="." method="_on_picture_item_selected"]
  287. [connection signal="item_selected" from="Effect" to="." method="_on_effect_item_selected"]