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
Total black shader in FTEQW
-
- Posts: 1395
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Total black shader in FTEQW
Meadow Fun!! - my first commercial game, made with FTEQW game engine
-
- Posts: 1395
- 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
}
}
Meadow Fun!! - my first commercial game, made with FTEQW game engine
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
-
- Posts: 1395
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
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
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.
-
- Posts: 1395
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
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