Home » Renegade Discussions » Mod Forum » Jonwil/scripts
Re: Jonwil/scripts [message #316794 is a reply to message #316756] |
Tue, 12 February 2008 19:08 |
|
saberhawk
Messages: 1068 Registered: January 2006 Location: ::1
Karma:
|
General (1 Star) |
|
|
Oh if only it wasn't just 8 lines of code and actually impressive.
Edit: Here, have a diff
Toggle Spoiler
--- shaders.cpp 2007-08-15 17:11:06.000000000 -0700
+++ shaders.cpp 2008-02-12 18:20:42.545462000 -0800
@@ -215,6 +215,15 @@
HRESULT DefaultShaderPluginClass::OnRender(unsigned int primitive_type, unsigned short start_index, unsigned short polygon_count, unsigned short min_vertex_index, unsigned short vertex_count)
{
+ 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);
+ }
+
if (ShaderHooks && !pluginsRequired)
{
if (ShaderCheckMaterial)
[Updated on: Tue, 12 February 2008 19:25] Report message to a moderator
|
|
|
|
|
Jonwil/scripts
By: JohnDoe on Mon, 11 February 2008 17:28
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: Ryu on Mon, 11 February 2008 20:43
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: LR01 on Tue, 12 February 2008 09:52
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: JohnDoe on Tue, 12 February 2008 06:37
|
|
|
Re: Jonwil/scripts
By: LR01 on Tue, 12 February 2008 09:50
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: Renx on Tue, 12 February 2008 14:52
|
|
|
Re: Jonwil/scripts
By: Scrin on Tue, 12 February 2008 15:17
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: Scrin on Wed, 13 February 2008 00:44
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: Scrin on Wed, 13 February 2008 01:18
|
|
|
Re: Jonwil/scripts
By: Renx on Wed, 13 February 2008 05:12
|
|
|
Re: Jonwil/scripts
By: Ethenal on Wed, 13 February 2008 15:45
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: cnc95fan on Tue, 12 February 2008 16:46
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: Sir Kane on Wed, 13 February 2008 04:11
|
|
|
Re: Jonwil/scripts
By: Ryu on Wed, 13 February 2008 04:59
|
|
|
Re: Jonwil/scripts
By: LR01 on Thu, 14 February 2008 00:55
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: JohnDoe on Tue, 12 February 2008 18:41
|
|
|
Re: Jonwil/scripts
By: Ethenal on Tue, 12 February 2008 19:11
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: BlueThen on Tue, 12 February 2008 20:03
|
|
|
Re: Jonwil/scripts
|
|
|
Re: Jonwil/scripts
By: Dover on Tue, 12 February 2008 20:56
|
|
|
Re: Jonwil/scripts
By: Cunin on Tue, 12 February 2008 23:55
|
|
|
Re: Jonwil/scripts
By: Sir Kane on Wed, 13 February 2008 03:51
|
|
|
Re: Jonwil/scripts
By: reborn on Wed, 13 February 2008 03:54
|
|
|
Re: Jonwil/scripts
By: Sir Kane on Wed, 13 February 2008 04:00
|
|
|
Re: Jonwil/scripts
|
Goto Forum:
Current Time: Sat Jan 04 06:35:10 MST 2025
Total time taken to generate the page: 0.01076 seconds
|