Lil Killa Posted January 25, 2004 Share 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? Link to comment Share on other sites More sharing options...
LordP Posted January 25, 2004 Share Posted January 25, 2004 Bump. Link to comment Share on other sites More sharing options...
Druid Bremen Posted January 25, 2004 Share Posted January 25, 2004 Should be the .png file, I suppose. I never heard of any shader command making a shader less transparent. Link to comment Share on other sites More sharing options...
Leslie Judge Posted January 25, 2004 Share 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. Link to comment Share on other sites More sharing options...
Lil Killa Posted January 26, 2004 Author Share 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? Link to comment Share on other sites More sharing options...
wedge2211 Posted January 26, 2004 Share 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. Link to comment Share on other sites More sharing options...
Lil Killa Posted January 29, 2004 Author Share Posted January 29, 2004 OK.. thanks Wedge and LJ Link to comment Share on other sites More sharing options...
Torchy Posted January 29, 2004 Share Posted January 29, 2004 u can set a shaders transparency by adding "alphagen const .5" eg. that would make it 50% transparent Link to comment Share on other sites More sharing options...
Lil Killa Posted January 30, 2004 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.