Total black shader in FTEQW
Moderator: InsideQC Admins
6 posts
• Page 1 of 1
Total black shader in FTEQW
Hy guys there's the chance to create in FTE a shader that, once lit by a dynamic light, it stays pure black. I don't know if I put it plain: I only want that the surface with this shader applied is rendered black(or better, not rendered at all). Is it possible? Does it need an engine modification?
Thanksss
Thanksss
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Re: Total black shader in FTEQW
what about this?
surfaceparm nodraw2 it's not usable because it's like applying common/caulk to a wall. it will mess up the view
- Code: Select all
textures/common/pureblack
{
surfaceparm nodlight
surfaceparm noimpact
surfaceparm nomarks
{
map textures/common/pureblack.tga
}
}
surfaceparm nodraw2 it's not usable because it's like applying common/caulk to a wall. it will mess up the view
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Re: Total black shader in FTEQW
set gl_specular_fallback to 0 to avoid the engine using some lame specular map when specular is enabled, so that your diffuse texture is the ONLY one shown.
if you're making your own content you should probably set this in your default.cfg
if you're making your own content you should probably set this in your default.cfg
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
Re: Total black shader in FTEQW
if I set gl_specular_fallback to 0, every surface that has a specular texture will be rendered as only diffuse? If so, I don't want it, because, for some surfaces (like metal) I need specular textures.
If, instead, that should disable a default specular map, no matter the material encounters, it's ok
If, instead, that should disable a default specular map, no matter the material encounters, it's ok
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Re: Total black shader in FTEQW
its just the fallback texture. hence the name of it, when its 0 you only get specular on surfaces with actual specular textures. the fallback is really just so that walls without specular surfaces don't look stupid next to ones that do.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
Re: Total black shader in FTEQW
ah ok understood. Thanks Spike. Actually, that shader I posted it seems good. If you mix it with static meshes the effect is quite impressive, so yay me!
Anyway, if someone has another trick, please share it
Anyway, if someone has another trick, please share it
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest