• Advertisement
Sign in to follow this  

Texture Pixel Data

This topic is 4174 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I need to access individual pixel data for a texture so it can be altered during runtime. Is this possible? I.e. I want to start with a plain white texture, and based on events that occur during runtime, I want to increase the colour for certain pixels of the texture. Any ideas? Cheers

Share this post


Link to post
Share on other sites
Advertisement
This sounds like a perfect opportunity to use a fragment shader. Inside your fragment shader you could determine if a given element of your texture is the color you want to be changing. You could pass in a variable from the application (not sure how this is done in HLSL) to determine if it's time to change this particular element of the texture.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement