Skip to content

Instantly share code, notes, and snippets.

View yaosamo's full-sized avatar
🎹
Design and curiosity

Yaric Sam yaosamo

🎹
Design and curiosity
View GitHub Profile
@yaosamo
yaosamo / crt
Created March 9, 2026 18:56
CRT shader for godot
shader_type canvas_item;
//uniform vec2 res;
uniform vec2 curvature;
uniform vec2 pixel_size = vec2(3.0, 6.0);
uniform float _saturation: hint_range(0, 4)= 1.0;
uniform float _brightness: hint_range(0.01, 10.0) = 1.0;
uniform float _contrast: hint_range(0.01, 3.0) = 1.0;
uniform float bleed_brightness: hint_range(0.01, 3.0) = 1.0;
uniform float bleed_strength: hint_range(0.001, 3.0) = 1.0;
uniform float bleed_radius: hint_range(0.001, 3.0) = 1.0;
@keyframes hello {
0% {
opacity: 0;
transform: translateY(-5px);
}
100% {
opacity: 1;
transform: translateY(0px);
}
}