You can't set more than one material to override per render pass. What
you can do instead is make multiple skins on the model, then set the
m_nSkin accordingly. Here's how to setup the model:
http://developer.valvesoftware.com/wiki/Multiple_Skins_for_a_Single_Model

On 12/31/06, Joel R. <[EMAIL PROTECTED]> wrote:
--
[ Picked text/plain from multipart/alternative ]
I built myself a Shader that I wanted to toggle on the model using .vmt's
that use my custom shader.  I was successful using ForceOverrideMaterial to
change one material of the model but it overwrote the other skin of the
model with the material I set.  Other Methods like
pMaterial->SetShaderAndParams( keys ); doesn't work because it sets all
objects globally using the same .vmt to use the said shader+params.

My shader is basically like an overlay, but I used a pixel shader to do the
color stuff I wanted.  I've heard about screen overlays, but what about
model overlays?  Anyways, if someone knows how to change .vmt files or
shader type on "ONE" model to its "multiple" skins, I'd really appreciate
the help. Thanks.
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to