screen_shaders.tscn 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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 = 1
  82. anchors_preset = 15
  83. anchor_right = 1.0
  84. anchor_bottom = 1.0
  85. grow_horizontal = 2
  86. grow_vertical = 2
  87. size_flags_horizontal = 2
  88. size_flags_vertical = 2
  89. texture = ExtResource("2")
  90. stretch_mode = 6
  91. [node name="Roby" type="TextureRect" parent="Pictures"]
  92. visible = false
  93. layout_mode = 1
  94. anchors_preset = 15
  95. anchor_right = 1.0
  96. anchor_bottom = 1.0
  97. grow_horizontal = 2
  98. grow_vertical = 2
  99. size_flags_horizontal = 2
  100. size_flags_vertical = 2
  101. texture = ExtResource("3")
  102. stretch_mode = 6
  103. [node name="Mountains" type="TextureRect" parent="Pictures"]
  104. visible = false
  105. layout_mode = 1
  106. anchors_preset = 15
  107. anchor_right = 1.0
  108. anchor_bottom = 1.0
  109. grow_horizontal = 2
  110. grow_vertical = 2
  111. size_flags_horizontal = 2
  112. size_flags_vertical = 2
  113. texture = ExtResource("4")
  114. stretch_mode = 6
  115. [node name="Forest" type="TextureRect" parent="Pictures"]
  116. visible = false
  117. layout_mode = 1
  118. anchors_preset = 15
  119. anchor_right = 1.0
  120. anchor_bottom = 1.0
  121. grow_horizontal = 2
  122. grow_vertical = 2
  123. size_flags_horizontal = 2
  124. size_flags_vertical = 2
  125. texture = ExtResource("5")
  126. stretch_mode = 6
  127. [node name="Effects" type="Control" parent="."]
  128. layout_mode = 1
  129. anchors_preset = 15
  130. anchor_right = 1.0
  131. anchor_bottom = 1.0
  132. grow_horizontal = 2
  133. grow_vertical = 2
  134. size_flags_horizontal = 2
  135. size_flags_vertical = 2
  136. [node name="Disabled" type="Control" parent="Effects"]
  137. visible = false
  138. layout_mode = 1
  139. anchors_preset = 0
  140. offset_right = 40.0
  141. offset_bottom = 40.0
  142. size_flags_horizontal = 2
  143. size_flags_vertical = 2
  144. [node name="Vignette" type="TextureRect" parent="Effects"]
  145. visible = false
  146. material = SubResource("1")
  147. layout_mode = 1
  148. anchors_preset = 15
  149. anchor_right = 1.0
  150. anchor_bottom = 1.0
  151. grow_horizontal = 2
  152. grow_vertical = 2
  153. size_flags_horizontal = 2
  154. size_flags_vertical = 2
  155. texture = ExtResource("8")
  156. [node name="Blur" type="TextureRect" parent="Effects"]
  157. visible = false
  158. material = SubResource("2")
  159. layout_mode = 1
  160. anchors_preset = 15
  161. anchor_right = 1.0
  162. anchor_bottom = 1.0
  163. grow_horizontal = 2
  164. grow_vertical = 2
  165. size_flags_horizontal = 2
  166. size_flags_vertical = 2
  167. texture = ExtResource("8")
  168. [node name="Pixelize" type="TextureRect" parent="Effects"]
  169. visible = false
  170. material = SubResource("3")
  171. layout_mode = 1
  172. anchors_preset = 15
  173. anchor_right = 1.0
  174. anchor_bottom = 1.0
  175. grow_horizontal = 2
  176. grow_vertical = 2
  177. size_flags_horizontal = 2
  178. size_flags_vertical = 2
  179. texture = ExtResource("8")
  180. [node name="Whirl" type="TextureRect" parent="Effects"]
  181. visible = false
  182. material = SubResource("4")
  183. layout_mode = 1
  184. anchors_preset = 15
  185. anchor_right = 1.0
  186. anchor_bottom = 1.0
  187. grow_horizontal = 2
  188. grow_vertical = 2
  189. size_flags_horizontal = 2
  190. size_flags_vertical = 2
  191. texture = ExtResource("8")
  192. [node name="Sepia" type="TextureRect" parent="Effects"]
  193. visible = false
  194. material = SubResource("5")
  195. layout_mode = 1
  196. anchors_preset = 15
  197. anchor_right = 1.0
  198. anchor_bottom = 1.0
  199. offset_right = 14.0
  200. offset_bottom = -2.0
  201. grow_horizontal = 2
  202. grow_vertical = 2
  203. size_flags_horizontal = 2
  204. size_flags_vertical = 2
  205. texture = ExtResource("8")
  206. [node name="Negative" type="TextureRect" parent="Effects"]
  207. visible = false
  208. material = SubResource("6")
  209. layout_mode = 1
  210. anchors_preset = 15
  211. anchor_right = 1.0
  212. anchor_bottom = 1.0
  213. grow_horizontal = 2
  214. grow_vertical = 2
  215. size_flags_horizontal = 2
  216. size_flags_vertical = 2
  217. texture = ExtResource("8")
  218. [node name="Contrasted" type="TextureRect" parent="Effects"]
  219. visible = false
  220. material = SubResource("7")
  221. layout_mode = 1
  222. anchors_preset = 15
  223. anchor_right = 1.0
  224. anchor_bottom = 1.0
  225. grow_horizontal = 2
  226. grow_vertical = 2
  227. size_flags_horizontal = 2
  228. size_flags_vertical = 2
  229. texture = ExtResource("8")
  230. [node name="Normalized" type="TextureRect" parent="Effects"]
  231. visible = false
  232. material = SubResource("8")
  233. layout_mode = 1
  234. anchors_preset = 15
  235. anchor_right = 1.0
  236. anchor_bottom = 1.0
  237. grow_horizontal = 2
  238. grow_vertical = 2
  239. size_flags_horizontal = 2
  240. size_flags_vertical = 2
  241. texture = ExtResource("8")
  242. [node name="BCS" type="TextureRect" parent="Effects"]
  243. visible = false
  244. material = SubResource("9")
  245. layout_mode = 1
  246. anchors_preset = 15
  247. anchor_right = 1.0
  248. anchor_bottom = 1.0
  249. offset_top = 3.0
  250. offset_bottom = -3.0
  251. grow_horizontal = 2
  252. grow_vertical = 2
  253. size_flags_horizontal = 2
  254. size_flags_vertical = 2
  255. texture = ExtResource("8")
  256. [node name="Mirage" type="TextureRect" parent="Effects"]
  257. visible = false
  258. material = SubResource("10")
  259. layout_mode = 1
  260. anchors_preset = 15
  261. anchor_right = 1.0
  262. anchor_bottom = 1.0
  263. grow_horizontal = 2
  264. grow_vertical = 2
  265. size_flags_horizontal = 2
  266. size_flags_vertical = 2
  267. texture = ExtResource("8")
  268. [node name="OldFilm" type="TextureRect" parent="Effects"]
  269. visible = false
  270. material = SubResource("11")
  271. layout_mode = 1
  272. anchors_preset = 15
  273. anchor_right = 1.0
  274. anchor_bottom = 1.0
  275. offset_left = -3.0
  276. offset_right = 3.0
  277. grow_horizontal = 2
  278. grow_vertical = 2
  279. size_flags_horizontal = 2
  280. size_flags_vertical = 2
  281. texture = ExtResource("8")
  282. [node name="Picture" type="OptionButton" parent="."]
  283. layout_mode = 0
  284. offset_left = 8.0
  285. offset_top = 7.0
  286. offset_right = 184.0
  287. offset_bottom = 38.0
  288. size_flags_horizontal = 2
  289. size_flags_vertical = 2
  290. metadata/_edit_layout_mode = 0
  291. metadata/_edit_use_custom_anchors = false
  292. [node name="Effect" type="OptionButton" parent="."]
  293. layout_mode = 0
  294. offset_left = 189.0
  295. offset_top = 7.0
  296. offset_right = 312.0
  297. offset_bottom = 38.0
  298. size_flags_horizontal = 2
  299. size_flags_vertical = 2
  300. metadata/_edit_layout_mode = 0
  301. metadata/_edit_use_custom_anchors = false
  302. [connection signal="item_selected" from="Picture" to="." method="_on_picture_item_selected"]
  303. [connection signal="item_selected" from="Effect" to="." method="_on_effect_item_selected"]