Skip to content

Instantly share code, notes, and snippets.

@jimmyjonezz
Created June 29, 2020 16:04
Show Gist options
  • Save jimmyjonezz/ae1974f6780ddb0800808d277a3619f3 to your computer and use it in GitHub Desktop.
Save jimmyjonezz/ae1974f6780ddb0800808d277a3619f3 to your computer and use it in GitHub Desktop.
Lowres screen shader for #godotengine
shader_type canvas_item;
uniform float size_x = 0.002;
uniform float size_y = 0.0035;
void fragment() {
vec2 uv = SCREEN_UV;
uv -= mod(uv, vec2(size_x, size_y));
COLOR.rgb = textureLod(SCREEN_TEXTURE, uv, 0.0).rgb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment