[Gtkradiant] problem with shader

Forest Hale lordhavoc at ghdigital.com
Tue Apr 29 18:49:31 CDT 2008


Dirk wrote:
> i want a shader that does just make a red surface
> 
> textures/test/red
> {
>    {
>    map $whiteimage
>    rgbGen const ( 1.0 0.0 0.0 )
>    blendFunc add
>    }
>    {
>    map $lightmap
>    rgbGen identity
>    blendFunc filter
>    }
> }
> 
> ...but why is it transparent?
> 
> Can anyone help? or point me to a place where someone can help? I have
> had a look at the Q3A shader manual.. but this is the best I can come up
> with after having read it...

Your first pass has a blendFunc, therefore it is transparent.

-- 
LordHavoc
Author of DarkPlaces Quake1 engine and mod
http://icculus.org/twilight/darkplaces/
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass




More information about the Gtkradiant mailing list