You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
258 B
Plaintext

9 months ago
shader_type canvas_item;
uniform sampler2D screenTexture : hint_screen_texture;
void fragment() {
vec2 screen_size = vec2(640,360);
vec2 uv = UV;
uv = floor(uv * screen_size / 0.2) * 0.2 / screen_size;
8 months ago
9 months ago
COLOR = texture(screenTexture, uv);
}