Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F633612
fs_menu_ps.txt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
869 B
Referenced Files
None
Subscribers
None
fs_menu_ps.txt
View Options
#version 120
uniform sampler2D screen;
varying vec2 uv;
const float blurStep = 0.001;
const vec3 gray = vec3(0.50, 0.50, 0.50);
const float desaturateLevel = 0.6;
void main()
{
//Blur the pixel
vec4 color = texture2D(screen, uv);
color += texture2D(screen, uv + vec2(-blurStep, -blurStep));
color += texture2D(screen, uv + vec2(0, -blurStep));
color += texture2D(screen, uv + vec2(+blurStep, -blurStep));
color += texture2D(screen, uv + vec2(-blurStep, 0));
color += texture2D(screen, uv + vec2(+blurStep, 0));
color += texture2D(screen, uv + vec2(-blurStep, +blurStep));
color += texture2D(screen, uv + vec2(0, +blurStep));
color += texture2D(screen, uv + vec2(+blurStep, +blurStep));
color /= 9.0;
//Desaturate the pixel
color.rgb = mix(vec3(dot(gray, color.rgb)), color.rgb, desaturateLevel);
gl_FragColor = color;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 5:18 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
131718
Default Alt Text
fs_menu_ps.txt (869 B)
Attached To
Mode
R80 StarRuler2-Source
Attached
Detach File
Event Timeline