Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Stealth Wireframe...
Re: Stealth Wireframe... [message #362033 is a reply to message #362028] Mon, 08 December 2008 19:04 Go to previous messageGo to previous message
MGamer is currently offline  MGamer
Messages: 412
Registered: January 2008
Karma:
Commander
pvtschlag wrote on Mon, 08 December 2008 20:00

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);
}


maybe its an stupid question but... i need to have shaders enabled to use this?


rawr.....
 
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: Thu Oct 17 00:44:44 MST 2024

Total time taken to generate the page: 0.00920 seconds