java2d Compositing -> OpenGL fragment shaders
----- Original Message -----
From: "Michele Puccini"
Sent: Wednesday, February 21, 2007 7:41 PM
Subject: java2d Compositing -> OpenGL fragment shaders
A little followup..
the fragment shader code of my previous email was bloody wrong as the docs
"Notice that the fragment shader has no access to the frame buffer. This
implies that operations such as blending occur only after the fragment
shader has run."
The big mistake is that I was thinking of reading the framebuffer contents
with gl_FragColor.. :(
Mmmh.. maybe I could implement my blending by binding a pbuffer object to a
texture (or even a FBO) and then access the dest pixels from there, right ?
But, anyway, the idea of using shaders in the java2d/opengl codepath could
still be valid.
> ClassX Development Italy Via Francesca, 368/I I-56030 S.M. a Monte (PI) <
> Tel.(+39)-0587-705153 Fax.(+39)-0587-705153 WEB: http://www.classx.it <
To unsubscribe, send email to email@example.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
firstname.lastname@example.org and include in the body of the message "help".