Jump to content

Home

trans?


Lil Killa

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Posted
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...