diff options
Diffstat (limited to 'Assets/Shaders')
| -rw-r--r-- | Assets/Shaders/Bloom.gdshader | 2 | ||||
| -rw-r--r-- | Assets/Shaders/Scanlines.gdshader | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Assets/Shaders/Bloom.gdshader b/Assets/Shaders/Bloom.gdshader index cf28bfb..8dc47ef 100644 --- a/Assets/Shaders/Bloom.gdshader +++ b/Assets/Shaders/Bloom.gdshader @@ -1,5 +1,7 @@ shader_type canvas_item; +uniform sampler2D SCREEN_TEXTURE: hint_screen_texture, filter_linear_mipmap; + void fragment() { vec4 color = texture(SCREEN_TEXTURE, SCREEN_UV); vec2 uv = SCREEN_UV - 0.5; diff --git a/Assets/Shaders/Scanlines.gdshader b/Assets/Shaders/Scanlines.gdshader index 4ed746c..2658af0 100644 --- a/Assets/Shaders/Scanlines.gdshader +++ b/Assets/Shaders/Scanlines.gdshader @@ -3,6 +3,8 @@ shader_type canvas_item; uniform float count: hint_range(240, 480, 2) = 320; uniform float opacity: hint_range(0.0, 1.0, 0.01) = 0.3; +uniform sampler2D SCREEN_TEXTURE: hint_screen_texture, filter_linear_mipmap; + void fragment() { vec3 color = texture(SCREEN_TEXTURE, SCREEN_UV).rgb; vec2 uv = SCREEN_UV; |
