Lil Killa Posted January 25, 2004 Posted January 25, 2004 I have some glass that I want to make less transparant but don't know how or if it is possible. I checked out the shader manual and didn't see anything. EDIT: Could this effect also be done ussing a .png since you can set the transparancy in the image editor?
Druid Bremen Posted January 25, 2004 Posted January 25, 2004 Should be the .png file, I suppose. I never heard of any shader command making a shader less transparent.
Leslie Judge Posted January 25, 2004 Posted January 25, 2004 You want to have a darker glass? Like a sunglass? If it's a clear glass then you can use a simple black color (even without an alpha channel) with the proper shader code to make it transparent as much as you want. If it's not clear, than yes, you can play with the alpha channel of the pic (tga or png). Just check the shader code to see what you have to do: increase or decrease the alpha values.
Lil Killa Posted January 26, 2004 Author Posted January 26, 2004 So if I used an alpha channel making a grey chanel instead of a white or black one would make the the glass less/more transparent?
wedge2211 Posted January 26, 2004 Posted January 26, 2004 Yeah. Which way is more/less transparent depends on the blendfunc used. If it's completely transparent right now, and the alpha channel is mostly white, then darken it, if vice versa, then lighten it.
Torchy Posted January 29, 2004 Posted January 29, 2004 u can set a shaders transparency by adding "alphagen const .5" eg. that would make it 50% transparent
Lil Killa Posted January 30, 2004 Author Posted January 30, 2004 Originally posted by Torchy u can set a shaders transparency by adding "alphagen const .5" eg. that would make it 50% transparent heh thanks I'll have to try all this tuff out once I get back to working on my project again.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.