Hi all.
I’ve been trying to work out how to make a texture based semi transparent fence… ie the texture has transparent bits instead of actual brushwork. In the example GoldRush.map they show up as semi transparent in the editor. I can’t get this effect to work. Any help would be appriciated!
How do I make a texture based fence with transparent bits?
You need a texture with an alpha channel, and a shader which uses it with an appropriate alpha test or blend function to give the effect that you need. To have an alpha, the texture must be a .tga, not a .jpg.
The shader manual should cover these things fairly well, and the gtkradiant manual probably says a bit about them too. You can also look at the shaders which come with the game. Most of the ones using an alpha channel should show up in the ‘alpha’ entry of the textures list.
Note that for something to be translucentin the editor (rather than in game) you must have qer_trans in the shader.
Just to add…
The .tga file needs to be 32bit to retain the alpha channel.
In the alpha channel; white is opaque black is transparent.
Thanks guys!
All that information will come in handy when I attempt to draw my own alpha textures later on.
Thanks again :drink: