[Gtkradiant] problem with shader

Dirk noisyb at gmx.net
Mon Apr 28 15:04:35 CDT 2008


without the blendfunc's it's all bright white.. the rgbGen const is 
ignored..

i know i could just use a red texture... :)

Tim Aerdts wrote:
> Hi Dirk,
> 
> It is the blendFunc lines that control the transparency.
> Try removing them, and you do not need a shader to make the surface red, you
> can just use a red texture :)
> 
> Greetings Fragger
> 
> On Mon, Apr 28, 2008 at 6:24 PM, Dirk <noisyb at gmx.net> 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...
>>
>>
>> _______________________________________________
>> Gtkradiant mailing list
>> Gtkradiant at zerowing.idsoftware.com
>> http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant
>>
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Gtkradiant mailing list
> Gtkradiant at zerowing.idsoftware.com
> http://zerowing.idsoftware.com/cgi-bin/mailman/listinfo/gtkradiant




More information about the Gtkradiant mailing list