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