Sign in to follow this  
thekiwimaddog

Alpha Texture Cords

Recommended Posts

thekiwimaddog    155
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
Buckeye    10747
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
Buckeye    10747
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this