Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Stealth Wireframe...
Re: Stealth Wireframe... [message #362028 is a reply to message #361981] Mon, 08 December 2008 19:00 Go to previous messageGo to previous message
pvtschlag is currently offline  pvtschlag
Messages: 122
Registered: April 2004
Karma:
Recruit
Saberhawk posted how to do this awhile back.

At the top of DefaultShaderPluginClass::OnRender in shaders.cpp add

Quote:

if ((render_state->Textures[0] != NULL) && (strcmp(render_state->Textures[0]->Name,"stealth_effect.tga") == 0))
{
StateManager->SetRenderState(D3DRS_FILLMODE,D3DFILL_WIREFRAME);
}
else
{
StateManager->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
}


-Lee
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Neon Sign
Next Topic: Is there any way?
Goto Forum:
  


Current Time: Sun Sep 15 11:22:25 MST 2024

Total time taken to generate the page: 0.00904 seconds