Jump to content

Getting colour of pixels in a texture


Ending Credits
 Share

Recommended Posts

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?

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...