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