Blender V2.61 - r43446
Variables

RAS_Sepia2DFilter.h File Reference

Go to the source code of this file.

Variables

const char * SepiaFragmentShader

Detailed Description

Definition in file RAS_Sepia2DFilter.h.


Variable Documentation

const char* SepiaFragmentShader
Initial value:
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 * vec3(1.2, 1.0, 0.8), texcolor.a);
}
)

Definition at line 35 of file RAS_Sepia2DFilter.h.