Kalle Texture cross fade - lighting possible?

I came across Kalle’s texture fade shader TexCtrlFade.fx, and was suitably impressed.

So simplistic and beautiful effect.

however… I was wondering, and I think this is probably asking to much - or it might at least require rewriting the shader - is it possible to get lighting to effect the shader such as Phong.

Now I might again be getting my concepts confused, but Previously I was rendering my mesh onto a PhongPoint fx. Now essentially what Kalle has done with his textCtlFade is to replace that object in the rendering chain, so to speak. I can’t render the object with phongPoint light and then patch into Kalle’s fader object can I?

Or is it possible to render a shader as a texture? and then go into Kalle’s patch?

Thanks for you help
Tim

Have a look at dxtexture and the bottom right pin of your DX9 renderer.

Hope that helps.

stu

I came across Kalle’s texture fade shader TexCtrlFade.fx, and was suitably impressed.

So simplistic and beautiful effect.

however… I was wondering, and I think this is probably asking to much - or it might at least require rewriting the shader - is it possible to get lighting to effect the shader such as Phong.

Now I might again be getting my concepts confused, but Previously I was rendering my mesh onto a PhongPoint fx. Now essentially what Kalle has done with his textCtlFade is to replace that object in the rendering chain, so to speak. I can’t render the object with phongPoint light and then patch into Kalle’s fader object can I?

Or is it possible to render a shader as a texture? and then go into Kalle’s patch?

Thanks for you help
Tim

maybe you also like this…
:)

PhongPoint2Tex.zip (6.0 kB)

hmm, i know for sure that i like this. thanks, kalle!

Hey Awesome, thanks

Tim