Ending Credits Posted March 9, 2010 Share Posted March 9, 2010 Basically I want to optimize the HDR routine by passing a float giving the luminance rather than having to calculate it for every pixel drawn (which requires it to look up ever pixel of the same texture each time). Is there any way to read the average colour or colors of individual pixels of a texture using leadwerks or OpenGl commands? Quote AMD Phenom 9850 (X4 2.5GHz) | 1066MHz CL5 GEIL Black Dragon (800MHz) | Powercolor ATI 4870 1GB | DFI 790FXB-M2RSH | 24" 1920x1200 | Windows Vista 64-bit Ultimate Link to comment Share on other sites More sharing options...
Masterxilo Posted March 9, 2010 Share Posted March 9, 2010 glReadPixels might work. Quote Hurricane-Eye Entertainment - Site, blog. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.