Fog and alpha masking
Hi folks,
cannot find a solution for my GL problem, but I guess some of you know the trick:
I use textures with alpha channel. Black (alpha =0) is transparent. I made some textures with a alpha channel filled with white (alpha=255), which is opaque. And there are a few "holes" in it with black. It correctly masks and looks great in GL. But when I turn on the GL fog, you can see the holes, because the alpha value seems to be incremented by fog.
Now my question is if there is a solution to have correct alpha masking and fog together?
Thanks in advance,
-Tobi
cannot find a solution for my GL problem, but I guess some of you know the trick:
I use textures with alpha channel. Black (alpha =0) is transparent. I made some textures with a alpha channel filled with white (alpha=255), which is opaque. And there are a few "holes" in it with black. It correctly masks and looks great in GL. But when I turn on the GL fog, you can see the holes, because the alpha value seems to be incremented by fog.
Now my question is if there is a solution to have correct alpha masking and fog together?
Thanks in advance,
-Tobi
Make sure you set the fog alpha to zero (or is it one?)... anyway, it gets used...
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| OpenGL ES Texture Masking | airfire | 5 | 11,461 |
Nov 14, 2012 09:36 AM Last Post: toanNguyen |
|
| OpenGL ES Texture Masking | dalasjoe sin | 0 | 3,142 |
Apr 13, 2012 12:17 AM Last Post: dalasjoe sin |
|
| Masking without a stencil buffer? | Bachus | 12 | 10,743 |
Sep 2, 2010 02:42 PM Last Post: Skorche |
|
| Alpha Masking Problem | bonanza | 5 | 3,254 |
Jun 29, 2008 11:58 AM Last Post: maximile |
|
| Masking | Jake | 12 | 4,461 |
Jun 29, 2005 02:04 PM Last Post: TomorrowPlusX |
|

