Match the lighting/alpha logic in the sw transform.
Merge pull request #601 from unknownbrackets/hw-transform

Match the lighting/alpha logic in the sw transform