This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform float brightness=0.8; | |
uniform float contrast=1.5; | |
uniform float saturation=1.8; | |
void fragment() { | |
vec3 c = textureLod(SCREEN_TEXTURE,SCREEN_UV,0.0).rgb; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform float AMPLITUDE = .1; | |
uniform float SPEED = 5.0; | |
vec4 rgbShift( in vec2 p , in vec4 shift, in sampler2D tex) { | |
vec2 rs = vec2(shift.x,-shift.y); | |
vec2 gs = vec2(shift.y,-shift.z); | |
vec2 bs = vec2(shift.z,-shift.x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
void fragment() { | |
vec4 left = texture(SCREEN_TEXTURE, SCREEN_UV); | |
vec4 right = texture(SCREEN_TEXTURE, SCREEN_UV + vec2(0.005, 0.001)); | |
vec3 color = vec3(left.r, right.gb); | |
color = clamp(color, 0.0, 1.0); | |
COLOR = vec4(color, 1.0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
// change these values to 0.0 to turn off individual effects | |
const float vertJerkOpt = 1.0; | |
const float vertMovementOpt = 1.0; | |
const float bottomStaticOpt = 1.0; | |
const float scalinesOpt = 1.0; | |
const float rgbOffsetOpt = .5; | |
const float horzFuzzOpt = 1.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform sampler2D noise_tex; | |
// set the colors in shader params | |
uniform vec4 color_blend : hint_color; | |
uniform vec4 color_blend_2 : hint_color; | |
uniform float PI = 3.1415; | |
void fragment(){ | |
vec2 move = vec2(sin(TIME + UV.y * PI) * 0.001, TIME * 0.01); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform sampler2D base_mask: texture; | |
uniform vec2 size; | |
uniform vec2 scale; | |
uniform vec2 position; | |
uniform vec2 region; | |
vec2 uv(vec2 uv) { | |
vec2 s = vec2(size.x / scale.x, size.x / scale.y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
render_mode blend_mix; | |
uniform float squash_power = 0.0; | |
uniform float squash_position = 0.0; | |
void fragment() { | |
vec2 uv = SCREEN_UV; | |
float PI = 3.14159; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform bool apply = true; | |
uniform float amount = 1.0; | |
uniform sampler2D offset_texture : hint_white; | |
vec4 hash42(vec2 p){ | |
vec4 p4 = fract(vec4(p.xyxy) * vec4(443.8975,397.2973, 491.1871, 470.7827)); | |
p4 += dot(p4.wzxy, p4 + 19.19); | |
return fract(vec4(p4.x * p4.y, p4.x * p4.z, p4.y * p4.w, p4.x * p4.w)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
float Less(float x, float value) { | |
return 1.0 - step(value, x); | |
} | |
// Will return a value of 1 if the 'x' is >= 'lower' && < 'upper' | |
float Between(float x, float lower, float upper) { | |
return step(lower, x) * (1.0 - step(upper, x)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
uniform float precision; | |
uniform float hue; | |
const mat3 rgb2yiq = mat3(vec3(0.299, 0.587, 0.114), vec3(0.595716, -0.274453, -0.321263), vec3(0.211456, -0.522591, 0.311135)); | |
const mat3 yiq2rgb = mat3(vec3(1.0, 0.9563, 0.6210), vec3(1.0, -0.2721, -0.6474), vec3(1.0, -1.1070, 1.7046)); | |
void fragment() { | |
vec3 yColor = rgb2yiq * texture(SCREEN_TEXTURE, SCREEN_UV).rgb; |