Page 1 of 1

Shader noob

Posted: Wed Sep 28, 2005 4:19 pm
by Survivor
How do i get rid of these bright spots?

[lvlshot]http://i2.photobucket.com/albums/y50/Drietand/mapping/shot0000.jpg[/lvlshot]

Shader

Code: Select all

textures/mar2/topledge
{
	qer_editorimage textures/mar2/ledgetop.tga
	q3map_surfacelight 300
	{
		map $lightmap
		rgbGen identity
	}
	{ 
		map textures/mar2/ledgebottom.tga
		rgbGen identity
		blendfunc GL_DST_COLOR GL_ZERO
	}
	{	
		map textures/mar2/ledgetop.tga
		blendfunc GL_ONE GL_ONE	
		blendfunc GL_SRC_ALPHA GL_ONE
		rgbgen wave sin 0.9 0.4 0 0.2
	}
}

Posted: Wed Sep 28, 2005 4:33 pm
by Plan B
Specify a smaller lightsubdivide value (default = 128, I think).

So in your shader, under q3map_surfacelight, add q3map_lightsubdivide 32, for instance.


You're quite sure you want these *metal* walkways to emit light, though?

Posted: Wed Sep 28, 2005 4:36 pm
by Survivor
yep glowing