Please tell me how to use a custom effect pass

Topics: Developer Forum, Project Management Forum, User Forum
Apr 14, 2007 at 11:31 AM
I can use a custom effect,
but I don't find How to use Custom Effect Pass...

For example,

technique ModelShader
pass P0
VertexShader = compile vs20 VS();
PixelShader = compile ps20 PS();

pass P1
VertexShader = compile vs20 VS_2();
PixelShader = compile ps20 PS_2();

I want to use "pass p1".
But I can't find how to use...

Please tell me....
Apr 14, 2007 at 5:09 PM
Edited Apr 14, 2007 at 5:13 PM
Good question. For now, it seems you have to make a new ModelAnimator class yourself, using the source code as a guideline, because I don't give the base class access to the matrix palette and world parameters. The only method you'd have to change is the Draw() method.

Thanks for the question :), this is a feature I hadn't foreseen and will make it available for next release.
Apr 14, 2007 at 5:24 PM
Thank you !
I am going to develop my game with your useful tools !!