Shaders

no what i wanted to do was use the alpha of one texture as a mask for the other texture, basically this…

if pixel from tex1 visible then use entire pixel from tex2

tex2 is basically going to be a background of anything i see fit to put on it, scroller, starfield, color bars, anything, probably moving in someway without a ton of graphic animation, i just needed to be able to use a shader to do it

Many thanks, once done i’ll upload a you-tube so you can see

I know… just try the code I posted in my previous comment, you will see…

yours gives me this

I need this

In addition, using shaders like this allows me to have animation within animation, a bouncing ball with a fully random starfield or scrolling banner etc
the only reason i need the original alpha is to “cookie cut” another texture that i could mess with
Thanks

You probably meant ‘declare’ when you said ‘use’.
This has come up before… I think it’s a MojoShader bug, or maybe it’s a bug in how 2mgfx interprets MojoShader reflection data. Either way, it’s a bug.

Then there is something wrong with alpha of your texture for text, well, doesnt matter.

this is what i was wanting to do, can also do starfields, scrolling backgrounds etc

and this it the texture being used by the shader

Yes, this fixed my problem getting the tutorials to work. Thanks!