Simple CRT Bulge

Support me: https://www.paypal.me/vinrato

Shader code
shader_type canvas_item;
uniform float intensity: hint_range(-1.0, 1.0, 0.001) = 0.065;
uniform sampler2D ST : hint_screen_texture, filter_nearest;

void fragment() {
	float map = distance(SCREEN_UV, vec2(0.5));
	COLOR = texture(ST, vec2(
		SCREEN_UV.x - (map - 0.5) * intensity * (0.5 - SCREEN_UV.x),
		SCREEN_UV.y - (map - 0.5) * intensity * (0.5 - SCREEN_UV.y))
	);
}
Tags
barrel, bulge, CRT, distortion, monitor, retro, simple, uv
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 blitpxl

Anamorphic Lens Flare

Minimal CRT Shader

Related shaders

Very simple CRT shader

Simple spatial CRT effect

Minimal CRT Shader

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments