----- Original Message ----- From: "Michele Puccini" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 say: "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. Cheers, Mik ============================================================================
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 PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
