summaryrefslogtreecommitdiff
path: root/Assets/Shaders/Scanlines.gdshader
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Shaders/Scanlines.gdshader')
-rw-r--r--Assets/Shaders/Scanlines.gdshader2
1 files changed, 2 insertions, 0 deletions
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;