summaryrefslogtreecommitdiff
path: root/Assets/Shaders/Scanlines.gdshader
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2023-02-08 18:39:42 +0100
committerSophia Pearson <codergal89@gmail.com>2023-02-08 18:39:42 +0100
commit755e33b6ad786e21558574626959dbcb4678a5c2 (patch)
tree2138e124d4771f7de79c6fc91bd2cafed341a0e6 /Assets/Shaders/Scanlines.gdshader
parentd6bb13fff8d2aa484dbb2c117ee0fd7dee0738f1 (diff)
downloadtexty-develop.tar.xz
texty-develop.zip
assets: update shaders to new APIdevelop
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;