Trying to get ambience on purely transparent polygons
Posted: Tue Apr 11, 2006 12:59 pm
Not sure if this is possible, because i failed so far doing it, but maybe someone has an idea:
I have a model with material type EMT_TRANSPARENT_ALPHA_CHANNEL. My textures have pixels where the r,g,b compontent is set to 0, so only the alpha component should be used. I'd like it to be shown with the color of the current ambient light, but slightly transparent (depending on the value of the alpha channel). Transparence itself does worked and so did ambience on non-transparent areas, but i couldn't get it to use the ambient color at transparent positions. Has someone of you done something similar already and can help me?
I have a model with material type EMT_TRANSPARENT_ALPHA_CHANNEL. My textures have pixels where the r,g,b compontent is set to 0, so only the alpha component should be used. I'd like it to be shown with the color of the current ambient light, but slightly transparent (depending on the value of the alpha channel). Transparence itself does worked and so did ambience on non-transparent areas, but i couldn't get it to use the ambient color at transparent positions. Has someone of you done something similar already and can help me?