scripting shaders


(BaronBlabla) #1

how to make a targa (.TGA) picture/texture/file into a shader…???

I have made the script with the same name as the texture directory I created…
now I want to make a door have metalsteps…
I typed in:

textures/(created directory)/door_axis_metal1 (TAB)surfaceparm metalsteps

but it doesn’t turn out to be a shader…


(nUllSkillZ) #2

shader manual


(BigBadWolf) #3

textures/directory/door_axis_metal1
{
      surfaceparm metalsteps
}


This will work as long as the textures is in
/directory/door_axis_metal1
and carrys the same name door_axis_metal1

Otherwise look at shader manual


(murka) #4

always use a syntax xD
wolfs syntax is

blabla
{
blabla
{
blabla
}
}


(BaronBlabla) #5

{ off course, I knew I forgot something… :}


(BaronBlabla) #6

used this but still doesn’t work…


(Jecoliah) #7

textures/mission_critical_zone/logs1
{
qer_editorimage textures/mission_critical_zone/logs1.jpg
surfaceparm woodsteps
implicitmap textures/mission_critical_zone/logs1.jpg
}

This is an example of one of my shaders to just set the surfaceparm, works on my maps.

Of course change to metalsteps and the path to your texture folder and texture.

Jec


(BaronBlabla) #8

[quote=“BaronBlabla”]

used this but still doesn’t work…[/quote]

sorry, it does work… I forgot to put the directory name into the shaderlist.txt file