Jump to content
  • Advertisement
Sign in to follow this  
thekiwimaddog

Alpha Texture Cords

This topic is 3050 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 Everyone! Does anyone have any advice on how to setup a texture where I can somehow roll the texture coordinates without effecting the alpha channel coordinates?? So that the textures alpha channel remains static but the actual texture is scrolling. Any advice would be greatly appreciated. Many Thanks David

Share this post


Link to post
Share on other sites
Advertisement
You can add a second texcoord to the vertex declaration. Use one for the 3-value color (which increments to scroll), the second for the alpha.

Share this post


Link to post
Share on other sites
You'd have to use a pixel shader to do that, I believe. You'd sample the same texture at 2 different points and combine values for the output color. Unfortunately, I'm not very familiar with the fixed function pipeline (if that's what you're using), so I don't know if that can be used.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!