• Get texture name from Texture ID, or a way to use Texture ID to create a materia
    4 replies, posted
I have some textures that don't have an alpha channel when drawn using surface.SetTexture, however if I use one of them and make a material using CreateMaterial with an alpha channel, it works just fine. Problem is I need the texture's name. It needs to work for lots of different textures, so making a table that links the two manually is out of the question. Looked all around the wiki, searched forums didn't find a useful answer. Any help?
You can use just one material and change its $basetexture every time you want to draw.
How do I set its $basetexture if I only have the textureID?
Sorry, I misread your post earlier. It's tricky, and I don't know... but how did you get to that situation in the first place? Where do you get the TextureID from?
Weapon Select Icons.
Sorry, you need to Log In to post a reply to this thread.