screen_shaders.tscn 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. [node name="Burano" type="TextureRect" parent="Pictures"]
  73. margin_right = 40.0
  74. margin_bottom = 40.0
  75. size_flags_horizontal = 2
  76. size_flags_vertical = 2
  77. texture = ExtResource( 2 )
  78. [node name="Roby" type="TextureRect" parent="Pictures"]
  79. visible = false
  80. margin_right = 40.0
  81. margin_bottom = 40.0
  82. size_flags_horizontal = 2
  83. size_flags_vertical = 2
  84. texture = ExtResource( 3 )
  85. [node name="Mountains" type="TextureRect" parent="Pictures"]
  86. visible = false
  87. margin_right = 40.0
  88. margin_bottom = 40.0
  89. size_flags_horizontal = 2
  90. size_flags_vertical = 2
  91. texture = ExtResource( 4 )
  92. [node name="Forest" type="TextureRect" parent="Pictures"]
  93. visible = false
  94. margin_right = 40.0
  95. margin_bottom = 40.0
  96. size_flags_horizontal = 2
  97. size_flags_vertical = 2
  98. texture = ExtResource( 5 )
  99. [node name="Effects" type="Control" parent="."]
  100. anchor_right = 1.0
  101. anchor_bottom = 1.0
  102. size_flags_horizontal = 2
  103. size_flags_vertical = 2
  104. [node name="Disabled" type="Control" parent="Effects"]
  105. visible = false
  106. margin_right = 40.0
  107. margin_bottom = 40.0
  108. size_flags_horizontal = 2
  109. size_flags_vertical = 2
  110. [node name="Vignette" type="TextureRect" parent="Effects"]
  111. visible = false
  112. material = SubResource( 1 )
  113. anchor_right = 1.0
  114. anchor_bottom = 1.0
  115. size_flags_horizontal = 2
  116. size_flags_vertical = 2
  117. texture = ExtResource( 8 )
  118. expand = true
  119. [node name="Blur" type="TextureRect" parent="Effects"]
  120. visible = false
  121. material = SubResource( 2 )
  122. anchor_right = 1.0
  123. anchor_bottom = 1.0
  124. size_flags_horizontal = 2
  125. size_flags_vertical = 2
  126. texture = ExtResource( 8 )
  127. expand = true
  128. [node name="Pixelize" type="TextureRect" parent="Effects"]
  129. visible = false
  130. material = SubResource( 3 )
  131. anchor_right = 1.0
  132. anchor_bottom = 1.0
  133. size_flags_horizontal = 2
  134. size_flags_vertical = 2
  135. texture = ExtResource( 8 )
  136. expand = true
  137. [node name="Whirl" type="TextureRect" parent="Effects"]
  138. visible = false
  139. material = SubResource( 4 )
  140. anchor_right = 1.0
  141. anchor_bottom = 1.0
  142. size_flags_horizontal = 2
  143. size_flags_vertical = 2
  144. texture = ExtResource( 8 )
  145. expand = true
  146. [node name="Sepia" type="TextureRect" parent="Effects"]
  147. visible = false
  148. material = SubResource( 5 )
  149. anchor_right = 1.0
  150. anchor_bottom = 1.0
  151. margin_right = 14.0
  152. margin_bottom = -2.0
  153. size_flags_horizontal = 2
  154. size_flags_vertical = 2
  155. texture = ExtResource( 8 )
  156. expand = true
  157. [node name="Negative" type="TextureRect" parent="Effects"]
  158. visible = false
  159. material = SubResource( 6 )
  160. anchor_right = 1.0
  161. anchor_bottom = 1.0
  162. size_flags_horizontal = 2
  163. size_flags_vertical = 2
  164. texture = ExtResource( 8 )
  165. expand = true
  166. [node name="Contrasted" type="TextureRect" parent="Effects"]
  167. visible = false
  168. material = SubResource( 7 )
  169. anchor_right = 1.0
  170. anchor_bottom = 1.0
  171. size_flags_horizontal = 2
  172. size_flags_vertical = 2
  173. texture = ExtResource( 8 )
  174. expand = true
  175. [node name="Normalized" type="TextureRect" parent="Effects"]
  176. visible = false
  177. material = SubResource( 8 )
  178. anchor_right = 1.0
  179. anchor_bottom = 1.0
  180. size_flags_horizontal = 2
  181. size_flags_vertical = 2
  182. texture = ExtResource( 8 )
  183. expand = true
  184. [node name="BCS" type="TextureRect" parent="Effects"]
  185. visible = false
  186. material = SubResource( 9 )
  187. anchor_right = 1.0
  188. anchor_bottom = 1.0
  189. margin_top = 3.0
  190. margin_bottom = -3.0
  191. size_flags_horizontal = 2
  192. size_flags_vertical = 2
  193. texture = ExtResource( 8 )
  194. expand = true
  195. [node name="Mirage" type="TextureRect" parent="Effects"]
  196. visible = false
  197. material = SubResource( 10 )
  198. anchor_right = 1.0
  199. anchor_bottom = 1.0
  200. size_flags_horizontal = 2
  201. size_flags_vertical = 2
  202. texture = ExtResource( 8 )
  203. expand = true
  204. [node name="OldFilm" type="TextureRect" parent="Effects"]
  205. visible = false
  206. material = SubResource( 11 )
  207. anchor_right = 1.0
  208. anchor_bottom = 1.0
  209. margin_left = -3.0
  210. margin_right = 3.0
  211. size_flags_horizontal = 2
  212. size_flags_vertical = 2
  213. texture = ExtResource( 8 )
  214. expand = true
  215. [node name="Picture" type="OptionButton" parent="."]
  216. margin_left = 8.0
  217. margin_top = 7.0
  218. margin_right = 131.0
  219. margin_bottom = 28.0
  220. size_flags_horizontal = 2
  221. size_flags_vertical = 2
  222. [node name="Effect" type="OptionButton" parent="."]
  223. margin_left = 137.0
  224. margin_top = 7.0
  225. margin_right = 260.0
  226. margin_bottom = 28.0
  227. size_flags_horizontal = 2
  228. size_flags_vertical = 2
  229. [connection signal="item_selected" from="Picture" to="." method="_on_picture_item_selected"]
  230. [connection signal="item_selected" from="Effect" to="." method="_on_effect_item_selected"]