I’m attempting to make a self-lit light-emitting shader using just a flat color (like a light bulb sort of). So I whip up a little test map and check, but it’s not illuminated, even though it casts light. I know I’m doing something wrong (I’m not too good at shaders), but what?
Here’s the code:
textures/radgallery/green
{
qer_editorimage textures/gallery/green.tga
q3map_surfacelight 1000
q3map_lightsubdivide 32
{
map $lightmap
rgbGen identity
}
{
map textures/gallery/green.tga
}
}
And here’s how it turns out:
(BTW, if you can’t see the images, use a filtering proxy like the Proxomitron - http://proxomitron.org - to block browser refer detects, then you’ll see 'em. Otherwise, copy and paste into the address bar).
Bad

http://duralisis.tripod.com/badshader.jpg
Here’s how I want it though (cheap mockup)

http://duralisis.tripod.com/mockup.jpg
And the texture itself

http://duralisis.tripod.com/green.jpg
So how I do make it work?
I think the default is about .15 and 26 units or so.