Blender V2.61 - r43446
|
Go to the source code of this file.
Variables | |
const char * | GrayScaleFragmentShader |
Definition in file RAS_GrayScale2DFilter.h.
const char* GrayScaleFragmentShader |
STRINGIFY( uniform sampler2D bgl_RenderedTexture; void main(void) { vec4 texcolor = texture2D(bgl_RenderedTexture, gl_TexCoord[0].st); float gray = dot(texcolor.rgb, vec3(0.299, 0.587, 0.114)); gl_FragColor = vec4(gray, gray, gray, texcolor.a); } )
Definition at line 35 of file RAS_GrayScale2DFilter.h.