Original Post
Basically I want to add together all of the pixels in a texture and divide them by the number of pixels to get the average color. Two reasons I want to do this. First I want to do this for HDR lighting effects. Second I want to do this to check if a texture is simi transparent so I can render it after I render all opaque objects. I assume this would be done in a shader but I'm not sure how to write it?