v_weapon shader not working
Posted: Mon Feb 27, 2012 7:55 am
So i've been (trying) to mess with shaders and so far no luck at all. I searched for hours for documentation or examples, mostly 404's or megaupload links. All i want is a simple reflection and/or refraction on my v_weapon like v_weapon in this video:
http://www.youtube.com/watch?feature=pl ... A6nJOCdJrM
But i can't seem to get it to work
My weapon path is: id1/progs/v_nail.mdl
I also have progs/v_nail.mdl_0.tga and progs/v_nail.mdl_0_norm.tga
I have also enabled r_water
Here is my shader:
Is there anything else i have to have enabled? I tried Full Lighting setting as well.
http://www.youtube.com/watch?feature=pl ... A6nJOCdJrM
But i can't seem to get it to work
My weapon path is: id1/progs/v_nail.mdl
I also have progs/v_nail.mdl_0.tga and progs/v_nail.mdl_0_norm.tga
I have also enabled r_water
Here is my shader:
Code: Select all
progs/v_nail.mdl_0
{
{
map progs/v_nail.mdl_0.tga
rgbGen lightingDiffuse
}
dp_reflect 2 1 1 1 0.8
}