View Full Version : copy float color buffer to texture
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?
08-09-2004, 09:02 AM
no, you want to use glTexSubImage2D() for this.
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.