TBOI pixel effect shader

QUICK TUTORIAL:

 

apply this shader to a ColorRect, which it will be ready to use :3

-you can use to do something similar to TBOI transition

USE:

pixel size: Sets the size of the pixels (can be set to any decimal number)

 

 

Shader code
shader_type canvas_item;
render_mode unshaded;
uniform float pixel_size;

uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
    
    vec2 uv = SCREEN_UV;

    
    uv = floor(uv * pixel_size) / pixel_size;

    
    COLOR = texture(SCREEN_TEXTURE, uv);
}
Tags
pixel
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

More from miwls

distorction pixelperfect

Related shaders

Sub-Pixel Accurate Pixel-Sprite Filtering

2D shader: Out of body ghost effect (Pixel Art)

Pixel Text Shader

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments