Snoweffects and landmines


(Cronium) #1

Hi again :wink:
This time i have problem with my snowshader. It doesn’t make that lovely snowspray effect and i can’t lay mines… Help!

I have read that i must use a string called surfaceparm, but it won’t work…

Here’s my shader:
textures/Btest/terrain_0
{
surfaceparm nolightmap
surfaceparm snowsteps
surfaceparm landmine
q3map_novertexshadows
q3map_forcesunlight
{
map /textures/snow_var01.tga
rgbGen vertex
tcmod scale 0.500 0.427
}
}

textures/Btest/terrain.vertex
{
surfaceparm nolightmap
surfaceparm snowsteps
surfaceparm landmine
q3map_novertexshadows
q3map_forcesunlight
{
map /textures/snow_var01.tga
rgbGen vertex
tcmod scale 0.500 0.427
}
}


(Rummie) #2

Add this to your shader:


textures/snow_var01.tga 
{
     qer_editorimage textures/snow_var01.tga
     surfaceparm snowsteps 
     surfaceparm landmine 
     {
          map /textures/snow_var01.tga
     }
}


(Moonkey) #3

Make sure you have the name of your terrain shader added to shaderlist.txt

I had the same problem when I changed the name of my terrain and forgot to update the shaderlist :slight_smile:


(Cronium) #4

Thanks it works! :drink: