increase shader brightness
Posted: Thu Apr 16, 2009 1:55 am
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 ...
Any suggestions are welcome.
Thanks
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
}
}Thanks