PDA

View Full Version : copy float color buffer to texture



jcabeleira
07-27-2004, 12:57 AM
it's a simple question: if i have a floating color buffer, can i use glCopyTexImage2D to copy the contents of the color buffer to a floating point texture without losing the floating point range?

lubby
08-09-2004, 09:02 AM
no, you want to use glTexSubImage2D() for this.

08-09-2004, 03:15 PM
jcabeleira is right. CopyTexImage/CopyTexSubImage is the way to go. but remember that if your texture isnt floating point then the values will be clamped. you could use a floating point RTT if supported to render directly.

:)