Adding transparency function and explicitly enabling perspective mode