I need a shader that fades my texture in after a certain distance like the landmines which can be seen from covert ops if they have enough xp.
i have seen the opposite of that done by a shader, it was in the map quakejumps. (it faded out if you were near enough to it)
the command for fadeing by distance seems to be
alphagen portal “value_for_distance”
but i dont know how the shader for fading in have to look like, or if it is even possible to do smth like that.
the best would be if i could use the shader from the game which is used for the mines, but i cant find it.It also could be that it isnt done by shader, but by the engine in a different way… :S
does it need any preconditions to work?