Where Is Shaderfile for my map

Having a problem with a shader or texture
Post Reply
User avatar
DeRiisen
Posts: 15
Joined: Fri Jan 20, 2012 6:28 am

Where Is Shaderfile for my map

Post 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

User avatar
DagF
Posts: 277
Joined: Thu Aug 18, 2011 8:40 am
Location: Norway
Contact:

Re: Where Is Shaderfile for my map

Post 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
Image

User avatar
DeRiisen
Posts: 15
Joined: Fri Jan 20, 2012 6:28 am

Re: Where Is Shaderfile for my map

Post by DeRiisen »

thanks alot i really appreciate it, you help me out a lot!

User avatar
DeRiisen
Posts: 15
Joined: Fri Jan 20, 2012 6:28 am

Re: Where Is Shaderfile for my map

Post 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 Image

User avatar
DagF
Posts: 277
Joined: Thu Aug 18, 2011 8:40 am
Location: Norway
Contact:

Re: Where Is Shaderfile for my map

Post 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
}
}
Image

User avatar
DeRiisen
Posts: 15
Joined: Fri Jan 20, 2012 6:28 am

Re: Where Is Shaderfile for my map

Post by DeRiisen »

thanks it fixed it up! :D :D :D :D

Post Reply