Fog and alpha masking

Post: #1
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,

Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
Make sure you set the fog alpha to zero (or is it one?)... anyway, it gets used...
Quote this message in a reply
Post: #3
Thanks! That worked. Fog alpha = 0
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL ES Texture Masking airfire 6 23,028 Mar 17, 2014 07:07 PM
Last Post: baioses
  OpenGL ES Texture Masking dalasjoe sin 0 5,315 Apr 13, 2012 12:17 AM
Last Post: dalasjoe sin
  Masking without a stencil buffer? Bachus 12 22,415 Sep 2, 2010 02:42 PM
Last Post: Skorche
  Alpha Masking Problem bonanza 5 6,009 Jun 29, 2008 11:58 AM
Last Post: maximile
  Masking Jake 12 7,853 Jun 29, 2005 02:04 PM
Last Post: TomorrowPlusX