Page 1 of 1
Where Is Shaderfile for my map
Posted: Mon Jan 30, 2012 7:25 am
by DeRiisen
hi guys i'm still having some trouble with shaders i cant find my shaderfile for my map do i create manually or is it somewhere where i can see ive check in scripts
Re: Where Is Shaderfile for my map
Posted: Mon Jan 30, 2012 7:38 am
by DagF
You have to make the shaderfile yourselfe.
open notepad write
"//shaderfile for "mapname""
Save it in your script folder named "mapname".shader and save as all types.
A shaderfile is just a .txt file with anohter fileextention really.
You will also have to edit/make a file named shaderlist.txt
In there you have to type the name of your shaderfile 3 times
Like this:
mapname
//mapname
//mapname
Re: Where Is Shaderfile for my map
Posted: Mon Jan 30, 2012 7:54 am
by DeRiisen
thanks alot i really appreciate it, you help me out a lot!
Re: Where Is Shaderfile for my map
Posted: Mon Jan 30, 2012 8:55 am
by DeRiisen
ok i have got my shader functions working (thankyou) but im getting that bring red and blue stripy no texture now as my walls. here is a pic of my shaderfile and path

Re: Where Is Shaderfile for my map
Posted: Mon Jan 30, 2012 9:29 am
by DagF
You have to add ":q3map" after the first line of the nodamage shaders
like this:
Code: Select all
textures/mapname/texture:q3map
{
surfaceparm nodamage
}
Or you can define the texture like this
Code: Select all
textures/mapname/texture
{
surfaceparm nodamage
{
map textures/mapname/texture.tga
}
}
Re: Where Is Shaderfile for my map
Posted: Mon Jan 30, 2012 1:02 pm
by DeRiisen