Jump to content

Home

lighting


epikon

Recommended Posts

To create the effect you mention you need to create a shader with your chosen textures and add a glow parameter to the blending stage with glow texture and possibly an optional flare effect.

 

A possible shader with the glow parameter highlighted could look like following:

 

textures/yourmap/yourlight
{
q3map_flare	gfx/misc/flare
   {
       map $lightmap
   }
   {
       map textures/yourmap/yourlight
       blendFunc GL_DST_COLOR GL_ZERO
   }
   {
       map textures/yourmap/yourlight_glow
       blendFunc GL_ONE GL_ONE
       [color=red]glow[/color] 
       rgbGen identity
   }
}

Link to comment
Share on other sites

Heres what I did, if your using the textures in the flares directory:

 

Cover the whole brush with nodraw, then (keep in mind, that you will only be able to see the flare on one side, the side you put it on) then put the flare texture you want on the side you want. If you put it on two sides, it will look like there are 2 flares (and also, sometimes you can see certain flars through walls.. keep that in mind.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...