Standard shot:
With my shader:
If anyone's interested:
http://members.optusnet.com.au/ksaho/dumb/gamma.zip
Seting up the kernel idea in the vertex shader was an idea I got from ShadX in Pete's OGL forum from ShadX's HQ2X filter. It really does save performance having it decalred in the vertex shader.
What my shader does:
Gets the current pixel.
Extracts intensity from each pixel.
Gets average intensity.
Blends the average intensity with the original pixel's intensity.
Puts the blended intesnity through an e^(x) function, obviously subtracts one from the result to ensure that the image won't be white.
It scales the intensity before it subtracts 1 from it.
Converts final colour + new intensity from YIQ back into RGB.
I'm particularly proud of this as I've done it purely from what little knowledge of image processing I have. You guys may have your PhDs but I don't even have an undergraduate degree as of yet.
My implementation maybe weak and a poor representation of HDR but please do keep in mind that I'm still learning.
I would like some technical feedback as well as all other feedback you guys can give.
Thanks.
With my shader:
If anyone's interested:
http://members.optusnet.com.au/ksaho/dumb/gamma.zip
Seting up the kernel idea in the vertex shader was an idea I got from ShadX in Pete's OGL forum from ShadX's HQ2X filter. It really does save performance having it decalred in the vertex shader.
What my shader does:
Gets the current pixel.
Extracts intensity from each pixel.
Gets average intensity.
Blends the average intensity with the original pixel's intensity.
Puts the blended intesnity through an e^(x) function, obviously subtracts one from the result to ensure that the image won't be white.
It scales the intensity before it subtracts 1 from it.
Converts final colour + new intensity from YIQ back into RGB.
I'm particularly proud of this as I've done it purely from what little knowledge of image processing I have. You guys may have your PhDs but I don't even have an undergraduate degree as of yet.
My implementation maybe weak and a poor representation of HDR but please do keep in mind that I'm still learning.
I would like some technical feedback as well as all other feedback you guys can give.
Thanks.