Original Post
Hi everybody,
When rendering into the color buffer, is it possible to draw the pixels dependent on the existing content of the color buffer?
What I need is the following rendering logic: When drawing a pixel, draw it only if it is "brighter" than the existing one. (Let's be given a definition of a measure that allows a comparison of pixel intensities, for instance the eucledian norm of the rgb vector).
glLogicOp is not what I need, am I right?
Or do I have to apply custom shader programs?
Thanks for any suggestion and help.
[Edited by - strivingJuno on August 17, 2010 7:28:55 PM]
When rendering into the color buffer, is it possible to draw the pixels dependent on the existing content of the color buffer?
What I need is the following rendering logic: When drawing a pixel, draw it only if it is "brighter" than the existing one. (Let's be given a definition of a measure that allows a comparison of pixel intensities, for instance the eucledian norm of the rgb vector).
glLogicOp is not what I need, am I right?
Or do I have to apply custom shader programs?
Thanks for any suggestion and help.
[Edited by - strivingJuno on August 17, 2010 7:28:55 PM]