Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629586
desaturate_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
313 B
Referenced Files
None
Subscribers
None
desaturate_ps.txt
View Options
varying vec2 uv;
uniform sampler2D texture;
uniform float level;
const vec3 gray = vec3(0.30, 0.59, 0.11);
void main() {
vec4 color = texture2D(texture, uv);
gl_FragColor.rgb = mix(vec3(dot(gray, color.rgb * gl_Color.rgb)), color.rgb * gl_Color.rgb, level);
gl_FragColor.a = color.a * gl_Color.a;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 7:16 AM (3 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
140976
Default Alt Text
desaturate_ps.txt (313 B)
Attached To
Mode
R80 StarRuler2-Source
Attached
Detach File
Event Timeline