Re: Stealth Wireframe... [message #362033 is a reply to message #362028] |
Mon, 08 December 2008 19:04 |
|
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.....
|
|
|