Surfacelight problem


(Jeremy) #1

As it can be seen on the screenie, I am trying to make a blue light line, by using surfacelight shader, but it also creates a point light in front of the brush, which completely destroys the idea.

Is there any way to have surfacelight without the pointlight source being automatically created in front of the surface? (in radiant it is just 1 face of the brush textured with surfacelight texture, and without any additional lights)

the shader I am using :

textures/blueline3000
{
surfaceparm nomarks
q3map_surfacelight 3000
q3map_lightimage textures/blue.blend.jpg
qer_editorimage textures/blue.jpg
{
map $lightmap
rgbGen identity
}
{
map textures/blue.jpg
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map textures/blue.blend.jpg
blendfunc GL_ONE GL_ONE
}
}

Thank you.


(Wezelkrozum) #2

try it by deleting the line: q3map_surfacelight 3000


(murka) #3

blendfunc add (or GL_ONE GL_ONE as you put it) should be enough as surfacelight only creates a light in the middle of the texture.

you could also remove the lightmap stage so it will be at normal lightness.