I want to create a shader that is drawn above all other shaders in game. I tried the function sort <value>, but it didn't work. Maybe anyone knows an answer.
Have a look in the shader manual for polygonoffset
sorry, but i don't no how to use the command polygonoffset. Something like that:?
textures/test/test
{
polygonoffset <value>
{
map textures/test/test
}
}
http://shaderlab.com/q3map2/shader_manual/ch2.html#polygonoffset)
I'm not really sure myself, hence the advice in looking at the manual, but you shouldn't need a value - just put the word in there - before your stages.
This should render the texture a pixel or so above the surface - it's not noticable in game.
Well, that is not what i search for.
I want the texture to be renderer before ANY other texture in the game even if it is 100 m behind the texture in the front