1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/** * @file luminanceF.glsl * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * $/LicenseInfo$ */ uniform sampler2DRect diffuseMap; varying vec2 vary_fragcoord; void main() { gl_FragColor = texture2DRect(diffuseMap, vary_fragcoord.xy); }