Topic: No lightmap information in shader.
I need some help with my shader. I think I'm doing something terribly wrong, because it isn't working.
I wanted to have a scrolling texture of sand and by searching the forums I discovered the tcMod scroll function.
It scrolls just fine but as is obvious in the image below the lightmap information is lost for some reason and the texture is "fullbright".
The image to the far left is what my shader looks like in-game. To the far right I've used a regular texture to show how I want it to look like. And in the middle is the far left image again but with r_lightmap set to 1.
I did some googling and found something called "map $lightmap" which by the sound of it should be exactly what I was looking for. But my implementation of it didn't produce any results.
I've also failed to get surfaceparm noimpact and nonsolid to work. I thought I had figured out how shaders worked but it's apparent that I'm doing everything wrong.
This shader business is clearly above my head. Could someone with more knowledge in these matters take a look at my sorry excuse for code? ![]()
textures/ladelulaku/sandscroll
{
qer_editorimage textures/ladelulaku/sandscroll.tga
surfaceparm nonsolid
surfaceparm noimpact
q3map_novertexshadows
q3map_notjunc
{
map $lightmap
}
{
map $dlight
blendfunc add
}
{
map textures/ladelulaku/sandscroll.tga
blendfunc blend
tcMod scroll 0 -0.7
}
}