problem with custom shader


(noisyb) #1

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…


(pazur) #2

Blendfunc really “blends” as the name says.

I would take out the “blendFunc add” to make the shader solid.


(noisyb) #3

well… it HAS to blend something… the framebuffer is transparent…

  1. i take a white texture add the color to it…

  2. i put that on the framebuffer… but the transparency is still there… i want to know how i can make the transparency in the framebuffer f*** off…

using no blend function results in solid white “textures”…


(obsidian) #4

Just trust us and take out the blendFunc add in the first stage.

The framebuffer will render the whiteImage, colour it red, then blend the lightmap on top.


(obsidian) #5

Actually, in hindsight, why don’t you just make things super easy and just get rid of the first stage? It’s not doing anything in the first place.


textures/test/red
{
	qer_editorImage textures/test/red.tga
	{
		map $lightmap
		rgbGen const ( 1 0 0 )
	}
}


(feimotion339) #6

what is the fastest way to make 1mil in runescape…http://www.coolrunescape.com/i am currently making 5k bow string which will get me about 500k but i don’t know what to do after that.if u would like to look at my skills look at the highscores! plz help me…!!!http://www.coolrunescape.com/index.htmlhttp://www.coolrunescape.com/RunescapeWell… around 3-4 years ago when i heard about runescape from a friend i decided to go check it out, i created ‘Chavforlife’ lol, you may laugh but it’s true, i have no idea what made me think of that name, but yeah… runescape accountsBut anyway, since then i’ve only used this account but now it’s got to the stage i actually really regret making this name in the first place, everyday my name get’s commented by random player’s, some “nice” comments suprisingly and some just pure hate which i understand ;p. But like with this name i’m forever getting judged, flamed when they have never actually spoken to me but meh.runescape cheatsWhat about you guy’s, any of you regret making your runescape account name?http://www.maplemsmesos.com


(yuanfenya) #8

Excuse for speeding Harry and Lloyd were speeding down the road. A police car pulled them over.‘Why on earth were you driving so fast?’ the policeman yelled.'Our brakes are no good-so we wanted to get there before we had an accident!'Friendship is love without his wings. (George Gordon Byron, Bdritish poet)More Games,joke,age of conan gold and famous. Click http://www.ygscn.net You will get more.