increase shader brightness

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

increase shader brightness

Post by Killerdude »

I am trying to understand all the blending & stuff that you can do with shaders. My custom texture uses animMap with alphashadows to make a lightning bolt dance around like on a static generator. However, the alpha mask made the bolt darker. Is there an easy blend function to give the outside edges of the bolt a 'glow'? I have looked into coronas and surfacelight, neither are the effect I was hoping for.

Here is my shader so far ...

Code: Select all

textures/midnightlaunch/bolt2
 { 	qer_editorimage textures/midnightlaunch/bolt2.tga
	qer_keyword masked
	surfaceparm alphashadow
	surfaceparm nonsolid
	cull none
	nopicmip
	nomipmaps
	{
		animMap 10 textures/midnightlaunch/bolt1.tga textures/midnightlaunch/bolt2.tga textures/midnightlaunch/bolt3.tga textures/midnightlaunch/bolt1.tga textures/midnightlaunch/bolt4.tga textures/midnightlaunch/bolt5.tga
		depthWrite
		alphaFunc GE128
        	nextbundle
		map $lightmap
	}
 }
Any suggestions are welcome.
Thanks
[Rome wasn't mapped in a day!]
Killerdude
Sergeant Major
Posts: 110
Joined: Fri May 11, 2007 12:16 am

Post by Killerdude »

Well half my problem was I accidentally deleted the lights within the room. Still if there is a blend function to give a glow, please let me know.
[Rome wasn't mapped in a day!]
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Try adding a "rgbGen identity" line to the stage.

You may find the Quake 3 shader bible useful.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply