title: Fragment Shader - Average Luminosity
body: <p>Does any body know how to find average luminosity for a texture in a fragment shader? I have access to both RGB and YUV textures the Y component in YUV is an array and I want to get an average number from this array.</p>