invisible light shader


(ACROBAT) #1

Anyone have an invisible light shader?

Basically a shader that acts as a light entity


(-SSF-Sage) #2

[QUOTE=ACROBAT;192562]Anyone have an invisible light shader?

Basically a shader that acts as a light entity[/QUOTE]

Perhaps you could add a surfacelight cmd to nodraw’s shader. Or then possibly just make an alpha texture (full transparency) and shader and add surfacelight to it. The last one atleast should work.


(zenith-ply) #3

If you want a spec shape or hi-light, you can make a funct_explosive patch from a light texture and give it a health and mass of zero with nosound breakable by touch. Course you have to have it facing away from the players to run through it or trigger it to explode at the beginning of the map runtime.


(ACROBAT) #4

Got one

textures/duelroom/invisilight_shader
{
qer_editorimage textures/duelroom/invisilight_image
surfaceparm nomarks
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm trans
surfaceparm nolightmap
q3map_lightRGB 1 1 1
q3map_nolightmap
q3map_surfacelight 400
{
map $whiteimage
rgbGen const ( 0.000000 0.000000 0.000000 )
blendFunc GL_ONE GL_ONE
}
}


(obsidian) #5

I spent the last hour searching my hard drive looking for this and almost gave up just before I found it (wrote it back in 2004). Try this:


// Non-drawing light emitting surface light for use as lightboxes
textures/obsidian_common/lightbox
{
	q3map_lightRGB 1 1 1
	q3map_surfacelight 5000

	surfaceparm nolightmap
	surfaceparm nonsolid
	surfaceparm trans

	qer_editorimage textures/obsidian_common/FFFFFF.tga
	{
		map $whiteimage
		alphaFunc GE128
		alphaGen const 0
	}
}