fix hidden check to use also alpha value
Merge pull request #516 from ivan-golub/advanced_hidden_check

Extend hidden check to use also alpha value